linux_wiki:list_create_delete_partitions_on_mbr_and_gpt_disks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 to 4 primary partitions and 2TB max usable size. 
 +    * Use fdisk or parted. 
 +  * Disks with GPT lift both of these restrictions. 
 +    * Use gdisk or parted.
  
 ---- ----
Line 14: Line 17:
 </code> </code>
  
 +\\
 Create MBR partitions Create MBR partitions
 <code bash> <code bash>
Line 26: Line 30:
 </code> </code>
  
 +\\
 Change partition type Change partition type
 <code bash> <code bash>
Line 35: Line 40:
 </code> </code>
  
 +\\
 Delete MBR partitions Delete MBR partitions
 <code bash> <code bash>
Line 53: Line 59:
 </code> </code>
  
 +\\
 Create GPT partitions Create GPT partitions
 <code bash> <code bash>
Line 64: Line 71:
 </code> </code>
  
 +\\
 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
 +</code>
 +
 +----
 +
 +==== 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.
 +</code>
 +
 +\\
 +Instead of rebooting, inform the kernel that changes have been made on the disk:
 +<code bash>
 +partprobe /dev/xvdf
 </code> </code>
  
 ---- ----
  
  • linux_wiki/list_create_delete_partitions_on_mbr_and_gpt_disks.1456799452.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)