Monday 26 March 2018

Linux – Creating a Partition Size Larger Than 2TB using Parted Command

Linux – Creating a Partition Size Larger Than 2TB using Parted Command

Find Out Current Disk Size:
fdisk -l /dev/sdb
  • Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes
  • 255 heads, 63 sectors/track, 364801 cylinders
  • Units = cylinders of 16065 * 512 = 8225280 bytes
  • Sector size (logical/physical): 512 bytes / 512 bytes
  • I/O size (minimum/optimal): 512 bytes / 512 bytes
  • Disk identifier: 0x00000000
  • Disk /dev/sdb doesn’t contain a valid partition table


Linux – Create 3TB partition size:
To create a partition start GNU parted as follows:
  • # parted /dev/sdb
Output:
  • GNU Parted 2.3
  • Using /dev/sdb
  • Welcome to GNU Parted! Type ‘help’ to view a list of commands.
    (parted)
Creates a new GPT disklabel i.e. partition table:
  • (parted) mklabel gpt
Sample outputs:
  • Warning: The existing disk label on /dev/sdb will be destroyed and all
  • data on this disk will be lost. Do you want to continue?
  • Yes/No? yes
    (parted)

No comments:

Post a Comment