Skip to contentSkip to conversation

: Partition table display bogus...

BUG 2.6.7 Jean Tourrilhes 2 participants 3 messages Jun 23, 2004 libata

lore
Share & tools
lore
#0 lore raw
	Hi,

	Would one of you guys would be kind enough to redirect this

e-mail to the right person ;-)

Playing with 2.6.7 on my laptop. I realised Lilo did not work
anymore. Look further, and the partition table was all screwed up. Looked further, and I realised the kernel doesn't recognise the geometry of my hard drive.
I did not try other 2.6.X kernel, on the other hand various
2.4.X kernel works on the box. Kernel are direct from kernel.org.

Below is the after/before. First is 2.6.7 (bogus), second is
2.4.23 (correct).

Thanks in advance...

Jean

-----------------------------------------------------------------
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 0000:00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later

    ide0: BM-DMA at 0x1820-0x1827, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x1828-0x182f, BIOS settings: hdc:DMA, hdd:pio

hda: IBM-DARA-206000, ATA DISK drive
Using anticipatory io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: CD-224E, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 9767520 sectors (5000 MB) w/418KiB Cache, CHS=10336/15/63, UDMA(33)
hda: hda1 hda2 hda3 hda4 < hda5 hda6 >
-----------------------------------------------------------------
Disk /dev/hda: 15 heads, 63 sectors, 10336 cylinders
Units = cylinders of 945 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1      1168    551848+  a0  IBM Thinkpad hibernation
Partition 1 does not end on cylinder boundary:
     phys=(72, 239, 63) should be (72, 14, 63)
/dev/hda2          1169      6176   2366280    b  Win95 FAT32
Partition 2 does not end on cylinder boundary:
     phys=(385, 239, 63) should be (385, 14, 63)
/dev/hda3   *      6177      8352   1028160   83  Linux
Partition 3 does not end on cylinder boundary:
     phys=(521, 239, 63) should be (521, 14, 63)
/dev/hda4          8353     10336    937440    5  Extended
Partition 4 does not end on cylinder boundary:
     phys=(645, 239, 63) should be (645, 14, 63)
/dev/hda5          8353      8624    128488+  82  Linux swap
/dev/hda6          8625     10336    808888+  83  Linux

-----------------------------------------------------------------
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later

    ide0: BM-DMA at 0x1820-0x1827, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x1828-0x182f, BIOS settings: hdc:DMA, hdd:pio

hda: IBM-DARA-206000, ATA DISK drive
blk: queue c0278820, I/O limit 4095Mb (mask 0xffffffff)
hdc: CD-224E, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 9767520 sectors (5001 MB) w/418KiB Cache, CHS=646/240/63, UDMA(33) Partition check:
hda: hda1 hda2 hda3 hda4 < hda5 hda6 >
-----------------------------------------------------------------
Disk /dev/hda: 240 heads, 63 sectors, 646 cylinders
Units = cylinders of 15120 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1        73    551848+  a0  IBM Thinkpad hibernation
/dev/hda2            74       386   2366280    b  Win95 FAT32
/dev/hda3   *       387       522   1028160   83  Linux
/dev/hda4           523       646    937440    5  Extended
/dev/hda5           523       539    128488+  82  Linux swap
/dev/hda6           540       646    808888+  83  Linux

-----------------------------------------------------------------

#1 lore raw
Quoted 2 lines · Jean Tourrilhes

Playing with 2.6.7 on my laptop. I realised Lilo did not work
anymore. Look further, and the partition table was all screwed up.

Not so pessimistic.

Old situation:

Quoted 1 line

hda: hda1 hda2 hda3 hda4 < hda5 hda6 >

New situation:

Quoted 1 line

hda: hda1 hda2 hda3 hda4 < hda5 hda6 >

Nothing wrong with that partition table.

Maybe you get unhappy because of the fdisk output, but that only shows that you have an old fdisk. Also there nothing wrong.

Ah - so the only wrong thing must be the fact that lilo stopped working. I suppose things will improve if you give it the "linear" (or "lba32") flag.

What changed is that the kernel no longer attempts at guessing a geometry. If such guessing is required, user space must do so itself.

Andries

#2 lore raw
Quoted 6 lines · Andries Brouwer
Quoted 2 lines · Jean Tourrilhes

Playing with 2.6.7 on my laptop. I realised Lilo did not work
anymore. Look further, and the partition table was all screwed up.

Not so pessimistic.

Sorry, I should have said "the partition table display".

Quoted 6 lines

Old situation:

Quoted 1 line

hda: hda1 hda2 hda3 hda4 < hda5 hda6 >

New situation:

Quoted 1 line

hda: hda1 hda2 hda3 hda4 < hda5 hda6 >

Nothing wrong with that partition table.

Yep.

Quoted 2 lines

Maybe you get unhappy because of the fdisk output, but that only shows that you have an old fdisk. Also there nothing wrong.

	Ok.
Quoted 2 lines

Ah - so the only wrong thing must be the fact that lilo stopped working. I suppose things will improve if you give it the "linear" (or "lba32") flag.

None of these helped. I guess I should update LILO as
well. I'll try to do that.

Quoted 4 lines

What changed is that the kernel no longer attempts at guessing a geometry. If such guessing is required, user space must do so itself.

Andries

Thanks very much for the quick answer, very helpful !

Jean