And, the most usual choices are gpt and msdos (MBR). The mklabel command sets the partition table type. # parted -s /dev/sdb mkpart primary ext4 60% 100% # parted -s /dev/sdb mkpart primary ext4 40% 60% # parted -s /dev/sdb mkpart primary ext4 16GiB 40% # parted -s /dev/sdb mkpart primary linux-swap 1048576s 16GiB # parted -s /dev/sdb mkpart primary fat32 0% 512MiB ![]() Let’s see now, how to use parted tool for the partitioning of disks: # parted -s /dev/sdb mklabel gpt Additionally, we can chain multiple commands in the command-line mode. For instance, we’ve now used s (sector) and chs (cylinder-head-sector). With the unit command, we can change the units that are used to report sizes and start/end marks. Furthermore, the disk size (by default) is reported in bytes. We can see that the partition table is MBR ( msdos). ![]() Here, we’ve used the print command to show information about the sda drive. ![]() Number Start End Size Type File system Flags Sector size (logical/physical): 512B/512B Welcome to GNU Parted! Type 'help' to view a list of commands.
0 Comments
Leave a Reply. |