Skip to contentSkip to conversation

IDE disk information changed from 2.4 to 2.6

DISCUSSION Bartlomiej Zolnierkiewicz 2 participants 3 messages Nov 5, 2003 – Nov 11, 2003 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 11 lines · Flavio Bruno Leitner
Quoted 6 lines · Bartlomiej Zolnierkiewicz
Quoted 5 lines · Flavio Bruno Leitner

Using 2.4:
hda: 12594960 sectors (6449 MB) w/2048KiB Cache, CHS=784/255/63, UDMA (33)

Using 2.6:
hda: 12594960 sectors (6449 MB) w/2048KiB Cache, CHS=13328/15/63, UDMA (33)

The line with CHS=784/255/63 is LBA and CHS=13328/15/63 is NORMAL.

Where kernel check to see if is LBA or NORMAL? BIOS? Which line is correct?

Nowhere, kernel uses LBA whenever possible.

In 2.6.x it doesn't even read BIOS info (which is wrong IMO, it should do this but only as last resort - if partition can't be mounted).

Difference in CHS translation should matter only if you have some old DOS partitions created using CHS information. Then you can force geometry using boot parameter "hd?=". Unfortunately I've seen recently bugreport when 2.4.20 (?) works and 2.6.x fails even with forced geometry.

--bartlomiej

#2 lore raw
Quoted 2 lines · Bartlomiej Zolnierkiewicz

In 2.6.x it doesn't even read BIOS info (which is wrong IMO, it should do this but only as last resort - if partition can't be mounted).

How can reading information that is not used by any kernel help in mounting a partition?

Quoted 4 lines

Difference in CHS translation should matter only if you have some old DOS partitions created using CHS information. Then you can force geometry using boot parameter "hd?=". Unfortunately I've seen recently bugreport when 2.4.20 (?) works and 2.6.x fails even with forced geometry.

Fails? What do you mean?

(Are you referring to the problem of finding the last cylinder?)

Andries

#3 lore raw
Quoted 6 lines · Andries Brouwer
Quoted 2 lines · Bartlomiej Zolnierkiewicz

In 2.6.x it doesn't even read BIOS info (which is wrong IMO, it should do this but only as last resort - if partition can't be mounted).

How can reading information that is not used by any kernel help in mounting a partition?

You are of course right, only ibm.c and nec98.c use HDIO_GETGEO.

Quoted 6 lines
Quoted 4 lines

Difference in CHS translation should matter only if you have some old DOS partitions created using CHS information. Then you can force geometry using boot parameter "hd?=". Unfortunately I've seen recently bugreport when 2.4.20 (?) works and 2.6.x fails even with forced geometry.

Fails? What do you mean?

Sorry, it was "hd.c instead of ide.c" problem.

Quoted 1 line

(Are you referring to the problem of finding the last cylinder?)