Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux_wiki:list_create_delete_partitions_on_mbr_and_gpt_disks [2016/02/29 21:30] billdozor created |
linux_wiki:list_create_delete_partitions_on_mbr_and_gpt_disks [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
**General Information** | **General Information** | ||
- | About this page/how-to/script. | + | * Disks with a MBR (master boot record) are limited |
+ | * Use fdisk or parted. | ||
+ | * Disks with GPT lift both of these restrictions. | ||
+ | * Use gdisk or parted. | ||
---- | ---- | ||
Line 14: | Line 17: | ||
</ | </ | ||
+ | \\ | ||
Create MBR partitions | Create MBR partitions | ||
<code bash> | <code bash> | ||
Line 26: | Line 30: | ||
</ | </ | ||
+ | \\ | ||
Change partition type | Change partition type | ||
<code bash> | <code bash> | ||
Line 35: | Line 40: | ||
</ | </ | ||
+ | \\ | ||
Delete MBR partitions | Delete MBR partitions | ||
<code bash> | <code bash> | ||
Line 53: | Line 59: | ||
</ | </ | ||
+ | \\ | ||
Create GPT partitions | Create GPT partitions | ||
<code bash> | <code bash> | ||
Line 64: | Line 71: | ||
</ | </ | ||
+ | \\ | ||
Delete GPT partitions | Delete GPT partitions | ||
<code bash> | <code bash> | ||
Line 70: | Line 78: | ||
Partition number (if more than one):2 | Partition number (if more than one):2 | ||
w | w | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Re-read Partition Table ==== | ||
+ | |||
+ | Sometimes, after you create a new partition and write changes, you could see this message: | ||
+ | <code bash> | ||
+ | OK; writing new GUID partition table (GPT) to /dev/xvdf. | ||
+ | Warning: The kernel is still using the old partition table. | ||
+ | The new table will be used at the next reboot. | ||
+ | The operation has completed successfully. | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | Instead of rebooting, inform the kernel that changes have been made on the disk: | ||
+ | <code bash> | ||
+ | partprobe /dev/xvdf | ||
</ | </ | ||
---- | ---- | ||