[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Vilmos Soti <vilmos@vilmos.org>] Re: libfdisk doesn't get along with FreeBSD partitions



Can someone give consideration to this BSD / linux partitioning issue?

--- Begin Message ---
Hello,

On Wed, May 2 2000, Adam Di Carlo wrote:

>> Yes, I got it. Here is the interesting (?) part:
>> 
>> boot:
>> Loading Linux.................
>> Boot failed: Please change disks and press any key to continue
> 
> Oy.  Please file a bug, probably severity important, against
> syslinux.  Describe your hardware and BIOS as completely as possible.

The floppy disk was bad... I feel dumb at best. :-( I just used that disk
for booting a few days ago.

>>> Please followup on this because lack of freebsd compat seems like a
>>> serious bug to me.
> [...]
>> So it would royally screw up my disk... This happened to me when I
>> wanted to install Debian back in August or July. Now it seems the
>> Debian install kernel doesn't recognize the BSD partitions anymore
>> so there is no problem.
>> 
>> I didn't do the Debian install just checked if it is fine. According
>> what I read from dmesg and fdisk/cfdisk output, it seems the bug is
>> gone. Now I think the ticket can be closed.
> 
> Excellent.  Already done.

Oh Adam, it is not solved. It seems you have different kernels if
you boot from dos or from floppy. I already sent you the stuff when
I booted from DOS. At that time I didn't get the error. I double
checked it now, and that works (or it seems) correctly by not
recognizing the BSD stuff.

However, I downloaded the 2.1r5 and potato rescue.bin and root.bin
images, and both of them have the same error:

First for 2.1r5

################## Output of dmesg #################################
Memory: sized by int13 088h
Console: 16 point font, 400 scans
Console: colour VGA+ 80x25, 1 virtual console (max 63)
pcibios_init : BIOS32 Service Directory structure at 0x000fdb60
pcibios_init : BIOS32 Service Directory entry at 0xfdb70
pcibios_init : PCI BIOS revision 2.10 entry at 0xfdb91
Probing PCI hardware.
Calibrating delay loop.. ok - 179.40 BogoMIPS
Memory: 61880k/65536k available (1144k kernel code, 384k reserved, 1436k data)
Swansea University Computer Society NET3.035 for Linux 2.0
NET3: Unix domain sockets 0.13 for Linux NET3.035.
Swansea University Computer Society TCP/IP for NET3.034
IP Protocols: IGMP, ICMP, UDP, TCP
Checking 386/387 coupling... Ok, fpu using exception 16 error reporting.
Checking 'hlt' instruction... Ok.
Linux version 2.0.38 (root@lollypop) (gcc version 2.7.2.3) #2 Thu Dec 9 04:30:31 PST 1999
Starting kswapd v 1.4.2.2 
Real Time Clock Driver v1.09
Ramdisk driver initialized : 16 ramdisks of 4096K size
loop: registered device at major 7
ide: Intel 82371 (single FIFO) DMA Bus Mastering IDE 
    Controller on PCI bus 0 function 57
ide: timings == a307e377
    ide0: BM-DMA at 0xffa0-0xffa7
    ide1: BM-DMA at 0xffa8-0xffaf
hda: WDC AC23200L, 3098MB w/256kB Cache, CHS=787/128/63, (U)DMA
hdb: Maxtor 91303D6, 12427MB w/512kB Cache, CHS=1584/255/63, (U)DMA
hdc: Pioneer CD-ROM ATAPI Model DR-A14S 0104, ATAPI CDROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
md driver 0.36.3 MAX_MD_DEV=4, MAX_REAL=8
sym53c416.c: Version 1.0.0
DC390: 0 adapters found
ncr53c8xx: at PCI bus 0, device 12, function 0
ncr53c8xx: 53c815 detected with Symbios NVRAM
ncr53c815-0: rev=0x04, base=0xefffff00, io_port=0xec00, irq=11
ncr53c815-0: Symbios format NVRAM, ID 7, Fast-10, Parity Checking
ncr53c815-0: initial SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 03/8a/80/00/00/00
ncr53c815-0: final   SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 03/82/00/00/08/00
ncr53c815-0: requesting shared irq 11 (dev_id=0x94080)
ncr53c815-0: resetting, command processing suspended for 2 seconds
ncr53c815-0: restart (scsi reset).
ncr53c815-0: command processing resumed
Failed initialization of WD-7000 SCSI card!
aec671x_detect: 
scsi0 : ncr53c8xx - revision 3.1e
scsi : 1 host.
scsi : detected total.
Partition check:
 hda: hda1 hda2 hda3
 hdb: hdb1 hdb2 hdb3 < hdb5 hdb6 > hdb4 < hdb7 hdb8 hdb9 hdb10 hdb11 hdb12 >
RAMDISK: Compressed image found at block 0
VFS: Mounted root (minix filesystem).
hdc: media changed

####################################################################
Look for the hdb: hdb1 hdb2..., the fourth from bottom.

################### Output of cfdisk (cfdisk -P s /dev/hdb #########
Partition Table for /dev/hdb

            First    Last
 # Type     Sector   Sector   Offset  Length   Filesystem Type (ID)   Flags
-- ------- -------- --------- ------ --------- ---------------------- ---------
 1 Primary        0  2056319      63  2056320  OpenBSD (A6)           None (00)
 2 Primary  2056320  4112639       0  2056320  Unknown (A9)           None (00)
 3 Primary  4112640  6168959       0  2056320  BSD/386 (A5)           Boot (80)
 4 Primary  6168960 25350569       0 19181610  Extended (05)          None (00)
 5 Logical  6168960  8225279      63  2056320  Linux (83)             None (00)
 6 Logical  8225280 10281599      63  2056320  Linux (83)             None (00)
 7 Logical 10281600 12337919      63  2056320  DOS FAT16 (big) (06)   None (00)
 8 Logical 12337920 14394239      63  2056320  Linux (83)             None (00)
 9 Logical 14394240 24675839      63 10281600  Linux (83)             None (00)
10 Logical 24675840 25350569      63   674730  Linux Swap (82)        None (00)
   Logical 25350570 25446959       0    96390  Free Space             None (00)


################## Output of fdisk (fdisk -l) ##############################


Disk /dev/hda: 128 heads, 63 sectors, 787 cylinders
Units = cylinders of 8064 * 512 bytes

   Device Boot   Start      End   Blocks   Id  System
/dev/hda1            1      127   512032+  83  Linux native
/dev/hda2          128      388  1052352   83  Linux native
/dev/hda3   *      389      787  1608768    6  DOS 16-bit >=32M

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

   Device Boot   Start      End   Blocks   Id  System
/dev/hdb1            1      128  1028128+  a6  OpenBSD
/dev/hdb2          129      256  1028160   a9  Unknown
/dev/hdb3   *      257      384  1028160   a5  BSD/386
/dev/hdb4          385     1578  9590805    5  Extended
/dev/hdb5          385      512  1028128+  83  Linux native
/dev/hdb6          513      640  1028128+  83  Linux native
/dev/hdb7          641      768  1028128+   6  DOS 16-bit >=32M
/dev/hdb8          769      896  1028128+  83  Linux native
/dev/hdb9          897     1536  5140768+  83  Linux native
/dev/hdb10        1537     1578   337333+  82  Linux swap


####################################################################
Now the outputs for potato:

################# Output of dmesg ##################################

Linux version 2.2.15 (herbert@gondor) (gcc version 2.95.2 20000313 (Debian GNU/Linux)) #1 Fri Apr 21 16:13:04 EST 2000
Detected 180001406 Hz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 358.81 BogoMIPS
Memory: 62152k/65536k available (1740k kernel code, 416k reserved, 1088k data, 140k init)
Dentry hash table entries: 8192 (order 4, 64k)
Buffer cache hash table entries: 65536 (order 6, 256k)
Page cache hash table entries: 16384 (order 4, 64k)
VFS: Diskquotas version dquot_6.4.0 initialized
CPU: Intel Pentium Pro stepping 07
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
Checking for popad bug... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.35a (19990819) Richard Gooch (rgooch@atnf.csiro.au)
PCI: PCI BIOS revision 2.10 entry at 0xfdb91
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: 00:00 [8086/1237]: Passive release enable (00)
PIIX3: Enabling Passive Release
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
TCP: Hash tables configured (ehash 65536 bhash 65536)
Starting kswapd v 1.5 
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
apm: BIOS version 1.2 Flags 0x0b (Driver version 1.12)
apm: disabled on user request.
Real Time Clock Driver v1.09
RAM disk driver initialized:  16 RAM disks of 16384K size
loop: registered device at major 7
PIIX3: IDE controller on PCI bus 00 dev 39
PIIX3: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:pio, hdd:pio
hda: WDC AC23200L, ATA DISK drive
hdb: Maxtor 91303D6, ATA DISK drive
hdc: Pioneer CD-ROM ATAPI Model DR-A14S 0104, ATAPI CDROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: WDC AC23200L, 3098MB w/256kB Cache, CHS=787/128/63
hdb: Maxtor 91303D6, 12427MB w/512kB Cache, CHS=1584/255/63
hdc: ATAPI 32X CD-ROM drive, 128kB Cache
Uniform CDROM driver Revision: 2.56
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
md driver 0.36.6 MAX_MD_DEV=4, MAX_REAL=8
scsi: <fdomain> Detection failed (no card)
NCR53c406a: no available ports found
sym53c416.c: Version 1.0.0
sym53c8xx: at PCI bus 0, device 12, function 0
sym53c8xx: not initializing, device not supported
ncr53c8xx: at PCI bus 0, device 12, function 0
ncr53c8xx: 53c815 detected with Symbios NVRAM
ncr53c815-0: rev=0x04, base=0xefffff00, io_port=0xec00, irq=11
ncr53c815-0: Symbios format NVRAM, ID 7, Fast-10, Parity Checking
ncr53c815-0: initial SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 03/8a/80/00/00/00
ncr53c815-0: final   SCNTL3/DMODE/DCNTL/CTEST3/4/5 = (hex) 03/82/00/00/08/00
ncr53c815-0: resetting, command processing suspended for 2 seconds
ncr53c815-0: restart (scsi reset).
Failed initialization of WD-7000 SCSI card!
IBM MCA SCSI: No Microchannel-bus support present -> Aborting.
megaraid: v107 (December 22, 1999)
aec671x_detect: 
3w-xxxx: tw_findcards(): No cards found.
scsi0 : ncr53c8xx - version 3.2a-2
scsi : 1 host.
ncr53c815-0: command processing resumed
scsi : detected total.
Partition check:
 hda: hda1 hda2 hda3
 hdb: hdb1! hdb2! hdb3! hdb4 < hdb5 hdb6 hdb7 hdb8 hdb9 hdb10 > < hdb11 hdb12 hdb13 hdb14 >
VFS: Insert root floppy disk to be loaded into RAM disk and press ENTER
VFS: Disk change detected on device fd(2,0)
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 140k freed
Duplicate request for module `net-pf-1'
Duplicate request for module `net-pf-1'
NET4: Unix domain sockets 1.0 for Linux NET4.0.
VFS: Disk change detected on device ide1(22,0)

######################################################################
Again, look for the hdb line.

#################### Output of cfdisk ##################################
Partition Table for /dev/hdb

            First    Last
 # Type     Sector   Sector   Offset  Length   Filesystem Type (ID)   Flags
-- ------- -------- --------- ------ --------- ---------------------- ---------
 1 Primary        0  2056319      63  2056320  OpenBSD (A6)           None (00)
 2 Primary  2056320  4112639       0  2056320  Unknown (A9)           None (00)
 3 Primary  4112640  6168959       0  2056320  BSD/386 (A5)           Boot (80)
 4 Primary  6168960 25350569       0 19181610  Extended (05)          None (00)
 5 Logical  6168960  8225279      63  2056320  Linux (83)             None (00)
 6 Logical  8225280 10281599      63  2056320  Linux (83)             None (00)
 7 Logical 10281600 12337919      63  2056320  FAT16 (06)             None (00)
 8 Logical 12337920 14394239      63  2056320  Linux (83)             None (00)
 9 Logical 14394240 24675839      63 10281600  Linux (83)             None (00)
10 Logical 24675840 25350569      63   674730  Linux swap (82)        None (00)
   Logical 25350570 25446959       0    96390  Free Space             None (00)

############################ Output of fdisk #############################

Disk /dev/hda: 128 heads, 63 sectors, 787 cylinders
Units = cylinders of 8064 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1       127    512032+  83  Linux
/dev/hda2           128       388   1052352   83  Linux
/dev/hda3   *       389       787   1608768    6  FAT16

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

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1             1       128   1028128+  a6  OpenBSD
/dev/hdb2           129       256   1028160   a9  Unknown
/dev/hdb3   *       257       384   1028160   a5  BSD/386
/dev/hdb4           385      1578   9590805    5  Extended
/dev/hdb5           385       512   1028128+  83  Linux
/dev/hdb6           513       640   1028128+  83  Linux
/dev/hdb7           641       768   1028128+   6  FAT16
/dev/hdb8           769       896   1028128+  83  Linux
/dev/hdb9           897      1536   5140768+  83  Linux
/dev/hdb10         1537      1578    337333+  82  Linux swap


I think this is a very serious issue with Linux that the kernel and
hardware manipulating tools have different ideas about the hardware.
These things should be coordinated like in the BSD world. Do you
think that simply not compiling the BSD disklabel support into the
kernel would solve the problem? Or at least no inadvertent partition
thrashing would occur? To the least, the install script should
recognize this event and should warn the user.

Other. I will be leaving tomorrow on Friday at midnight (Pacific
Standard Time) for two weeks. I will be back on 21, Sunday. If you
have anybody in Vancouver, British Columbia, Canada, then I would
be more than happy to take the machine over so s/he could see the
whole stuff for him/herself. However, I would need to know that as
soon as possible.

Sorry for the bad news again, Vilmos



--- End Message ---
-- 
.....Adam Di Carlo....adam@onShore.com.....<URL:http://www.onShore.com/>

Reply to: