Carl Lowenstein
2010-07-13 15:00:04 UTC
Cylinders, heads, and sectors are completely fictititious for
solid-state flash drives. I have just been experimenting with a
couple of new 2GB drives.
Drive as received, /sbin/fdisk -l reports:
Disk /dev/sdg: 2003 MB, 2003795968 bytes
32 heads, 63 sectors/track, 1941 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Device Boot Start End Blocks Id System
/dev/sdg1 1 1941 1956496+ 6 FAT16
If I zero out another flash drive with dd if=/dev/zero of=/dev/sdf
bs=4M and then run fdisk(1) it offers to build a new partition table
with the following characteristics:
Disk /dev/sdf: 2003 MB, 2003795968 bytes
62 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 3844 * 512 = 1968128 bytes
The factory partition table gives 32 * 63 * 1941 = 3 913 056 blocks.
The fdisk-offered table gives 62 * 62 * 1018 = 3 913 192 blocks.
Is there any reason to choose either of these schemes? Would I be better off
chosing head and sector numbers that are powers of 2, like 32 heads and 32
sectors, with the resulting 3821 cylinders? Or even go all the way to 64 heads
and 1 sector and 61151 cylinders which exactly fits the reported drive capacity.
I don't know whether any of this affects the actual placement of data on the
drive, and whether it matters to the real geometry of the flash drive.
carl
solid-state flash drives. I have just been experimenting with a
couple of new 2GB drives.
Drive as received, /sbin/fdisk -l reports:
Disk /dev/sdg: 2003 MB, 2003795968 bytes
32 heads, 63 sectors/track, 1941 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Device Boot Start End Blocks Id System
/dev/sdg1 1 1941 1956496+ 6 FAT16
If I zero out another flash drive with dd if=/dev/zero of=/dev/sdf
bs=4M and then run fdisk(1) it offers to build a new partition table
with the following characteristics:
Disk /dev/sdf: 2003 MB, 2003795968 bytes
62 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 3844 * 512 = 1968128 bytes
The factory partition table gives 32 * 63 * 1941 = 3 913 056 blocks.
The fdisk-offered table gives 62 * 62 * 1018 = 3 913 192 blocks.
Is there any reason to choose either of these schemes? Would I be better off
chosing head and sector numbers that are powers of 2, like 32 heads and 32
sectors, with the resulting 3821 cylinders? Or even go all the way to 64 heads
and 1 sector and 61151 cylinders which exactly fits the reported drive capacity.
I don't know whether any of this affects the actual placement of data on the
drive, and whether it matters to the real geometry of the flash drive.
carl
--
? ? carl lowenstein? ? ? ?? marine physical lab? ?? u.c. san diego
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? ***@ucsd.edu
? ? carl lowenstein? ? ? ?? marine physical lab? ?? u.c. san diego
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? ***@ucsd.edu