problems with fdisk & lilo under 2.2.0-preX

Richard Toy (richard@thetoys.globalnet.co.uk)
Tue, 12 Jan 1999 18:02:05 -0000


fdisk reports incorrect disk geometry.
lilo report Invalid partition table with 2.2.0-preX kernel.

If I run fdisk and print the partition table with the old kernel (2.0.34)
everything is as expected. However, with the pre6 kernel, fdisk reports all
kinds
of errors.

I think lilo is suffering from similar problems. If I try an run lilo under
the new
kernel after installing a patch for instance, lilo reports:
Device 0x0800:Invalid partition table, 1st entry
3D address: 1/1/0 (32)
Linear address: 32/1/0 (63)

The disk is a 4.3Gb SCSI and I use the linear option in the lilo.conf.

The disk is arranged as follows:

p1 DOS 12bit fat with system commander
p2 Extended partition containing linux
p3 Solaris partition (this contains the solaris slices but they
are not visible outside solaris)

Both operating systems boot and operate normally.

fdisk sees p3 as type 92.
Here is all the info:

++++++++++
OLD KERNEL
++++++++++

output from sh scripts/ver_linux
--------------------------------

-- Versions installed: (if some fields are empty or looks
-- unusual then possibly you have very old versions)
Linux moon 2.0.34 #1 Fri May 8 16:05:57 EDT 1998 i586 unknown
Kernel modules 2.1.85
Gnu C 2.7.2.3
Binutils 2.9.1.0.4
Linux C Library 2.0.7
Dynamic linker ldd (GNU libc) 2.0.7
Linux C++ Library 2.8.0
Procps 1.2.7
Mount 2.7l
Net-tools 1.33
Kbd 0.94
Sh-utils 1.16

output from fdisk
-----------------

Command (m for help): p

Disk /dev/sda: 255 heads, 63 sectors, 522 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Begin Start End Blocks Id System
/dev/sda1 1 1 2 16033+ 1 DOS 12-bit FAT
/dev/sda2 * 3 3 245 1951897+ 5 Extended
/dev/sda3 246 246 522 2224288 92 Unknown
Partition 3 does not end on cylinder boundary:
phys=(521, 232, 31) should be (521, 254, 63)
/dev/sda5 * 3 3 104 819283+ 83 Linux native
/dev/sda6 105 105 232 1028128+ 83 Linux native
/dev/sda7 233 233 245 104391 82 Linux swap

Command (m for help): v
Partition 3 does not end on cylinder boundary:
phys=(521, 232, 31) should be (521, 254, 63)
Partition 3: previous sectors 8384511 disagrees with total 8377747
1677 unallocated sectors

output from lilo
----------------

[root@moon]# lilo
Added linux.smp.new *
Added linux.smp.old
Added linux.old
Added dos

output from /proc/version
-------------------------

Linux version 2.0.34 (root@porky.redhat.com) (gcc version 2.7.2.3) #1 Fri
May 8 16:05:57 EDT 1998

output from /proc/cpuinfo
-------------------------

processor : 0
cpu : 586
model : 4
vendor_id : GenuineIntel
stepping : 3
fdiv_bug : no
hlt_bug : no
f00f_bug : yes
fpu : yes
fpu_exception : yes
cpuid : yes
wp : yes
flags : fpu vme de pse tsc msr mce cx8 apic mmx
bogomips : 298.19

output from /proc/modules
-------------------------

ne 2 1 (autoclean)
8390 2 [ne] 0 (autoclean)
st 6 0
aic7xxx 19 4

output from /proc/scsi/scsi
---------------------------

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: SEAGATE Model: ST34572W Rev: 0876
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: SEAGATE Model: ST32430N Rev: 0510
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 00
Vendor: TOSHIBA Model: CD-ROM XM-3401TA Rev: 0283
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 06 Lun: 00
Vendor: EXABYTE Model: EXB-8200 Rev: 4.24
Type: Sequential-Access ANSI SCSI revision: 01

++++++++++
NEW KERNEL
++++++++++

output from sh scripts/ver_linux
--------------------------------

-- Versions installed: (if some fields are empty or looks
-- unusual then possibly you have very old versions)
Linux moon 2.2.0-pre6 #1 SMP Sat Jan 9 17:45:22 GMT 1999 i586 unknown
Kernel modules 2.1.85
Gnu C 2.7.2.3
Binutils 2.9.1.0.4
Linux C Library 2.0.7
Dynamic linker ldd (GNU libc) 2.0.7
Linux C++ Library 2.8.0
Procps 1.2.7
Mount 2.7l
Net-tools 1.33
Kbd 0.94
Sh-utils 1.16

output from fdisk
-----------------
Command (m for help): p

Disk /dev/sda: 64 heads, 32 sectors, 4095 cylinders
Units = cylinders of 2048 * 512 bytes

Device Boot Begin Start End Blocks Id System
/dev/sda1 1 1 16 16033+ 1 DOS 12-bit FAT
Partition 1 does not end on cylinder boundary:
phys=(1, 254, 63) should be (1, 63, 32)
/dev/sda2 * 3 16 1922 1951897+ 5 Extended
Partition 2 does not end on cylinder boundary:
phys=(244, 254, 63) should be (244, 63, 32)
/dev/sda3 1270 1922 4094 2224288 92 Unknown
Partition 3 does not end on cylinder boundary:
phys=(521, 232, 31) should be (521, 63, 32)
/dev/sda5 * 3 16 816 819283+ 83 Linux native
/dev/sda6 105 816 1820 1028128+ 83 Linux native
/dev/sda7 1257 1820 1922 104391 82 Linux swap

Command (m for help): v
Partition 1 does not end on cylinder boundary:
phys=(1, 254, 63) should be (1, 63, 32)
Partition 1: head 255 greater than maximum 64
Partition 1: sector 63 greater than maximum 32
Partition 3 does not end on cylinder boundary:
phys=(521, 232, 31) should be (521, 63, 32)
Partition 3: head 233 greater than maximum 64
Partition 5: head 255 greater than maximum 64
Partition 5: sector 63 greater than maximum 32
Warning: partition 1 overlaps partition 5.
Partition 6: head 255 greater than maximum 64
Partition 6: sector 63 greater than maximum 32
Warning: partition 3 overlaps partition 6.
Warning: partition 5 overlaps partition 6.
Partition 7: head 255 greater than maximum 64
Partition 7: sector 63 greater than maximum 32
Warning: partition 3 overlaps partition 7.
Warning: partition 6 overlaps partition 7.
Logical partition 5 not entirely in partition 2
1130228 unallocated sectors

output from lilo
----------------

[root@moon]# lilo
Added linux.smp.new *
Added linux.smp.old
Added linux.old
Device 0x0800: Invalid partition table, 1st entry
3D address: 1/1/0 (32)
Linear address: 32/1/0 (63)

output from /proc/version
-------------------------

Linux version 2.2.0-pre6 (root@moon) (gcc version 2.7.2.3) #1 SMP Sat Jan 9
17:45:22 GMT 1999

output from /proc/cpuinfo
-------------------------

processor : 0
vendor_id : GenuineIntel
cpu family : 5
model : 4
model name : Pentium MMX
stepping : 3
cpu MHz : 199.436312
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : yes
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr mce cx8 apic mmx
bogomips : 398.13

processor : 1
vendor_id : GenuineIntel
cpu family : 5
model : 4
model name : Pentium MMX
stepping : 3
cpu MHz : 199.436312
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : yes
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr mce cx8 apic mmx
bogomips : 398.13

output from /proc/modules
-------------------------

ne 5964 1 (autoclean)
8390 6364 0 (autoclean) [ne]

output from /proc/scsi/scsi
---------------------------

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: SEAGATE Model: ST34572W Rev: 0876
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: SEAGATE Model: ST32430N Rev: 0510
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 00
Vendor: TOSHIBA Model: CD-ROM XM-3401TA Rev: 0283
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 06 Lun: 00
Vendor: EXABYTE Model: EXB-8200 Rev: 4.24
Type: Sequential-Access ANSI SCSI revision: 01

I have checked to make sure I have all the pre-requisites and apologise if I
have missed something obvious.

The disk also contains a Solaris 2.6 partition and I would like to access
this from Linux but I think the above problem will also affect this.

I use System Commander to control initial booting, boot Linux through LILO
installed in an extended partition and Solaris is in another partition.
It (Solaris) seems to have some kind of boot manager as well.

As for the rest of the Kernel is seems to be rock steady; keep up the
excellent work.

Regards
Richard Toy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/