1 |
On Sun, Mar 4, 2012 at 6:06 PM, Pandu Poluan <pandu@××××××.info> wrote: |
2 |
> |
3 |
> On Mar 5, 2012 4:59 AM, "Grant" <emailgrant@×××××.com> wrote: |
4 |
>> |
5 |
>> |
6 |
>> All my drives says this from fdisk: |
7 |
>> |
8 |
>> Units = sectors of 1 * 512 = 512 bytes |
9 |
>> Sector size (logical/physical): 512 bytes / 512 bytes |
10 |
>> I/O size (minimum/optimal): 512 bytes / 512 bytes |
11 |
>> |
12 |
>> So it doesn't matter where the first partition starts? |
13 |
>> |
14 |
> |
15 |
> Older BIOSes don't understand that hard disks now can have 4KiB sectors, so |
16 |
> some of the "advanced format" hard disks report a sector size of 512B. But |
17 |
> behind the scenes, the hard disk maps the logical sector to a subsector of |
18 |
> the physical sector. |
19 |
> |
20 |
> The only sure fire way to find out if your hard disk uses 4KiB sectors is to |
21 |
> open your computer and eyeball the hard disk. All 4KiB hard disks that I |
22 |
> know of have statements on their surface that tell me so. |
23 |
> |
24 |
> Rgds, |
25 |
|
26 |
I think I must be kind of late to this conversation, but as background |
27 |
consider hdparm -i coupled with Google for the actual spec: |
28 |
|
29 |
c2stable ~ # hdparm -i /dev/sdg |
30 |
|
31 |
/dev/sdg: |
32 |
|
33 |
Model=WDC WD10EARS-00Z5B1, FwRev=80.00A80, SerialNo=WD-WCAVU0415076 |
34 |
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq } |
35 |
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=50 |
36 |
BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=off |
37 |
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=1953525168 |
38 |
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} |
39 |
PIO modes: pio0 pio3 pio4 |
40 |
DMA modes: mdma0 mdma1 mdma2 |
41 |
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6 |
42 |
AdvancedPM=no WriteCache=enabled |
43 |
Drive conforms to: Unspecified: ATA/ATAPI-1,2,3,4,5,6,7 |
44 |
|
45 |
* signifies the current active mode |
46 |
|
47 |
c2stable ~ # |
48 |
|
49 |
With the model number it takes only a minute to determine that this WD |
50 |
drive is a 4K sector drive. (Which is marked on the drive, as you |
51 |
state, but I'd have to remove it to find that out.) |
52 |
|
53 |
Now, in terms of performance, the only requirement (as I understand |
54 |
it) is that all drive partition be aligned to sector addresses |
55 |
divisible by 8. (512 * 8 = 4K) The reason 63 gives low performance is |
56 |
because it's not naturally aligned by 8. With older versions of fdisk |
57 |
if I started the first partition at 64 then the performance was fine |
58 |
and only one sector was wasted. |
59 |
|
60 |
M$, for whatever reason, decided to start at 2048, which is divisible |
61 |
by 8, reserving the area at the front of the drive for (I think) their |
62 |
boot loader and other M$-y things. My understanding of why fdisk now |
63 |
enforces this is simply to be more careful about not overwriting the |
64 |
M$ boot loaderif it's there. (But I could be very wrong about that!) |
65 |
Remember, it's possible to make a dual boot system using M$'s loader |
66 |
instead of grub, and important that fdisk doesn't mangle it when |
67 |
someone is using that tool. |
68 |
|
69 |
Just my views, |
70 |
Mark |