Originally Posted by
oldfred
Cylinders have not been used since drives went over 8GB. LBA or large block allocation is the standard since.
First, understand that most partitioning tools have moved to a policy of aligning partitions on 1 MiB (2048-sector) boundaries as a way of improving performance with some types of RAID arrays and some types of new hard disks (those with 4096-byte physical sectors). See article by srs5694:
http://www.ibm.com/developerworks/li...-sector-disks/
Post on 8-sector boundaries alignment by srs5694
http://ubuntuforums.org/showthread.php?t=1685666
it's 8-sector (4096-byte) alignment
http://ubuntuforums.org/showthread.php?t=1768635
Alignment issues on 4K drives
http://ubuntuforums.org/showthread.php?t=1635018
srs's to show 8 sector alignment
$ sudo parted /dev/sda unit s print
I am only using Linux on all new drives, so I use gpt which is a new partitioning scheme. 40 then is often the first sector, although 2048 is used as the standard. With gpt you have no space after the MBR to worry about but do need a bios_grub so there is a place for core.img.
Dear oldfred,
you done good!
Ref: http://www.ibm.com/developerworks/li...-sector-disks/
In principle, you can start the first partition with a sector number as low as 8 for proper alignment; however, it's best to start the first partition at 64 or higher to leave room for boot loader code
So I can start my partition at sector 8, my math was right. But only for a drive which wont have any OS.
Code:
$ sudo parted /dev/sdd
(parted) unit s
(parted) mklabel msdos
(parted) mkpart
Partition type? primary/extended? p
File system type? [ext2]?
Start? 8s
End? -1s
(parted) print
Model: WD Ext HDD 1021 (scsi)
Disk /dev/sdd: 1953519616s
Sector size (logical/physical): 512B/512B #NOT trusting this info...
Partition Table: msdos
Number Start End Size Type File system Flags
1 8s 1953519615s 1953519608s primary
$ sudo fdisk /dev/sdd
Command (m for help): u
Changing display/entry units to sectors
Command (m for help): p
Disk /dev/sdd: 1000.2 GB, 1000202043392 bytes
255 heads, 63 sectors/track, 121600 cylinders, total 1953519616 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x000d0b22
Device Boot Start End Blocks Id System
/dev/sdd1 8 1953519615 976759804 83 Linux
Command (m for help): v
7 unallocated sectors
Bookmarks