Skip to content

Instantly share code, notes, and snippets.

@mustmodify
Last active March 31, 2017 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustmodify/e12d0f0af247e2e601cdfad90b9f2f0b to your computer and use it in GitHub Desktop.
Save mustmodify/e12d0f0af247e2e601cdfad90b9f2f0b to your computer and use it in GitHub Desktop.
ubuntu@ip-172-31-26-94:~$ sudo parted /dev/xvfd
Error: Could not stat device /dev/xvfd - No such file or directory.
Retry/Cancel? ^C
ubuntu@ip-172-31-26-94:~$ sudo parted /dev/xvdf
Error: Could not stat device /dev/xvdf - No such file or directory.
Retry/Cancel? ^C
ubuntu@ip-172-31-26-94:~$ sudo parted /dev/xvda
GNU Parted 3.2
Using /dev/xvda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit s
(parted) print
Model: Xen Virtual Block Device (xvd)
Disk /dev/xvda: 209715200s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 16065s 16777182s 16761118s primary ext4 boot
(parted) rm 1
Warning: Partition /dev/xvda1 is being used. Are you sure you want to continue?
Yes/No? y
Error: Partition(s) 1 on /dev/xvda have been written, but we have been unable to
inform the kernel of the change, probably because it/they are in use. As a result,
the old partition(s) will remain in use. You should reboot now before making further
changes.
Ignore/Cancel? I
(parted) mkpart primary 16065s 100%
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? I
(parted) print
Model: Xen Virtual Block Device (xvd)
Disk /dev/xvda: 209715200s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 16065s 209715199s 209699135s primary lba
(parted) set 1 boot on
(parted) print
Model: Xen Virtual Block Device (xvd)
Disk /dev/xvda: 209715200s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 16065s 209715199s 209699135s primary boot, lba
(parted) set 1 lba off
(parted) print
Model: Xen Virtual Block Device (xvd)
Disk /dev/xvda: 209715200s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 16065s 209715199s 209699135s primary boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment