56
28
I had two drives partitioned the same and running two RAID partitions on each.
One died and I replaced it under warranty for the same model.
While trying to partition it, the first partition can only start on sector 2048, instead of 63 that was before. Drive have different geometry as previous and remaining ones. (Fewer heads/more cylinders)
Old drive:
$ sudo fdisk -c -u -l /dev/sdb
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000aa189
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 174080339 87040138+ 83 Linux
/dev/sdb2 174080340 182482334 4200997+ 82 Linux swap / Solaris
/dev/sdb3 182482335 3907024064 1862270865 fd Linux raid autodetect
Remanufactured drive received from warranty:
$ sudo fdisk -c -u -l /dev/sda
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d0b5d
Device Boot Start End Blocks Id System
/dev/sda1 2048 ...
Why is that?
Releated questions and answers: https://superuser.com/q/565577/19956, https://unix.stackexchange.com/q/81556/3054.
– pts – 2018-01-05T14:48:09.190Using newer disk drives, GPT is recommended which uses
2048
as start sector by default. The older disk was probably formatted with an older utility and using non-GPT partition table format.For partitioning newer "Advanced Format 4K" disks, use GPT
fdisk
Utilities.For RAID, be sure to use type
fd00 Linux RAID
and label your partitions appropriately.1The output does not indicate that this is an Advanced Format 4K drive:
Sector size (logical/physical): 512 bytes / 512 bytes
. – bwDraco – 2011-10-31T23:07:50.4071Why was this downvoted? – bwDraco – 2011-10-31T23:35:56.487
1I disagree with the downvote, I was also not aware of the track-alignment misconception and JdeBP's info is useful and relevant to a valid question. – Garrett – 2011-10-31T23:39:28.377