{{tag>Boot Brouillon GPT}} # EFI Notes partitions EFI GPT vs MBR Voir : * gdisk * sgdisk Liens : * [[https://blog.filippo.io/converting-a-partition-image-to-a-bootable-disk-image/|Convert a partition image to a bootable disk image]] ## EFI/GPT Source : http://www.ibm.com/support/knowledgecenter/SS42VS_7.2.6/com.ibm.qradar.doc/t_offboard_iscsi_configure_volume.html Optional: To create a partition, use the GNU parted command : ~~~bash parted /dev/volume ~~~ ~~~ mklabel gpt ~~~ ~~~ Warning: The existing disk label on /dev/volume will be destroyed and all data on this disk will be lost. Do you want to continue? ~~~ ~~~ mkpart primary 0% 100% ~~~ ~~~ unit TB ~~~ ~~~ print print free ~~~ ~~~ quit ~~~ ~~~bash partprobe /dev/volume ~~~ Ou `addpart` / `delpart` ? ~~~bash cat /proc/partitions ~~~ To create an XFS file system, type the following command : ~~~bash mkfs.xfs -f /dev/partition ~~~ For an ext4 files system, type the following command : ~~~bash mkfs.ext4 /dev/partition ~~~ ~~~bash #parted /dev/sdb mklabel gpt mkpart P1 0% 100% parted /dev/sdb mklabel gpt mkpart primary ext4 0% 100% ~~~ ~~~bash parted /dev/sdb unit s print > sdb-pt.parted ~~~ ~~~bash parted -ms /dev/sdb print > sdb-pt.parted2 ~~~ `sdb.parted2` ~~~ BYT; /dev/sdb:322GB:scsi:512:512:gpt:EQLOGIC 100E-00:; 1:1049kB:322GB:322GB:ext4:primaire:; ~~~ ### Exemple ~~~bash parted /dev/sdb mklabel msdos mkpart p xfs 0% 100% ~~~