fdisk for flash partition choose which sector number?

Different flash disk seems have different default number.

pny 8GB
Disk /dev/sdb: 8086 MB, 8086618112 bytes
1 heads, 1 sectors/track, 15794176 cylinders, total 15794176 sectors

sandisk 8GB
Disk /dev/sdb: 7948 MB, 7948206080 bytes
1 heads, 62 sectors/track, 250384 cylinders, total 15523840 sectors

This number will have any impact on usage or performance?

Now I change it to 62 sectors/track.

本帖最後由 quintus 於 2010-5-8 20:32 編輯

As mentioned by Ted Ts'o in
http://thunk.org/tytso/blog/2009 ... s-erase-block-size/
However, with SSD’s (remember SSD’s?  This is a blog post about SSD’s…) you need to align partitions on at least 128k boundaries for maximum efficiency.   The best way to do this that I’ve found is to use 224 (32*7) heads and 56 (8*7) sectors/track.  This results in 12544 (or 256*49) sectors/cylinder, so that each cylinder is 49*128k.  You can do this by doing starting fdisk with the following options when first partitioning the SSD:

# fdisk -H 224 -S 56 /dev/sdb


Let us know if you see the difference.

TOP

try:
search: erase block size
sfdisk -gG /dev/sdX

performance-wise maybe the write performance.

TOP

or do not use partition, use the entire disk

even with fdisk H 224 S 56, pay attention to the first partition.

other than sfdisk, may try cfdisk -z /dev/sdX

good luck

TOP

本帖最後由 u2on 於 2010-5-9 08:45 編輯

In the past, I always use fdisk's default setting for number of head, sector and cylinder. After reading the article about boundary of cylinder, I will reset it as this principle.

Thanks for above input.

TOP