Linux disk larger than 2T using GPT partition method

  
                  In Linux, we can convert large-capacity disks to GPT format. Because the GPT format disk is equivalent to the original MBR disk, 4*16 bytes of the original partition table are reserved, leaving only the first 16 bytes. Others are similar to the extended partition. The real partition table is after 512 bytes. So there are no restrictions on the four primary partitions for the GPT disk table. To operate on the GPT disk partition table, we need to use the powerful parted command. Example: Common parted command # parted /dev/sdbGNU Parted 1.8.1Using /dev/sdbWelcome to GNU Parted! Type 'help' to view a list of commands.(parted) mklabel gpt Format MBR disk as GPT (parted) Mkpart primary 0 100 divides a primary partition with a starting position of 0 and a size of 100M. mkpart primary 100 200 divides a primary partition with a starting position of 100M and 100M. Parted mkpart primary 0 -1 divides all spaces into one Parted prints the current partition (parted) quit may also use some commands (parted) mklable msdos if you want to reverse. Convert GPT disk to MBR disk, after dividing the partition, use mkfs.ext3 To format #partprobe#mkfs.ext3 -F /dev/sdb1 in our practice: take redhat 5 as an example: parted /dev/sdb mklabel gpt. Convert to GPT. Parted /dev/sdb mkpart primary 0 1000000 Create a 1T partition. Mkfs -t ext3 /dev/sdb1mount /dev/sdb1 /mnt/b This is the partition b of the large disk in the mnt directory of the Linux system. Boot yourself to mount vi /etc/fstab/dev/sdb1 /mnt/b auto defaults 0 0
Copyright © Windows knowledge All Rights Reserved