I’m adding a disk to an ubuntu machine and creating a new partition which uses the whole disk.
GNU Parted 2.2 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Error: /dev/sdb: unrecognised disk label
So I make a new dos partition
(parted) mklabel New disk label type? msdos (parted) print Model: - (scsi) Disk /dev/sdb: 53.7GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags (parted) mkpart primary ext4 0 -1 Warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel?
You should align the first partition at block 64
(parted) mkpart primary ext4 64 -1
mkpart syntax is: mkpartfs part-type fs-type start-mb end-mb
so this just wastes the first 64 MB of space on the disk. Setting the start at 1 avoids the error message as well.
mkpart primary ext4 1 -1 (parted)
And your error free. Go forth and partition.
Thanks to Stefan.
This is why I put stuff on the internet.