kernel insists on mounting wrong root disk

kernel insists on mounting wrong root disk

Post by bob prohask » Mon, 10 Aug 1998 04:00:00



Hi all,

My new 2.2.7 box insists on mounting the wrong root disk.
The kernel lives on sd(0,a), the bootloader finds it and
the hardware probe is successful, but when the probe is
complete the kernel then tries to mount sd(1,a) on /.
There is no sd(1,a) and panic ensues 8-)

It's an older Pentium 90, with a Neptune chipset. There is a
single IDE disk attached to the motherboard IDE controller, the
SCSI controller is an NCR 815 carrying sd0 and a NEC cdrom.
The IDE drive carries a win95 installation to which I'd like
to preserve access. The boot manager on wd0 starts the boot
manager of sd0, which then starts the kernel on sd0a; that
part works like a champ.

The installation was by FTP. Plug and Pray has been disabled to
keep the network card going, but turning it on didn't solve
the problem. The motherboard reports an autoconfiguration error
during POST, but that's been present forever and caused no trouble
recognizable with win95. Enabling PnP avoids the POST error but
causes the ethernet card's irq and base address to wander.

It's possible to make the system boot successfully by manually
entering

1:sd(0,a)kernel

at the boot: prompt, but the problem returns
at the next reboot. Why such a command would be needed is a puzzle,
the failure of the boot: -c command to "stick" compounds it.
In other respects the system seems to work fine.

I tried installing with the root disk at SCSI id 1, but that
mount failed too and I chalked it up to the special status of
id 0. Now I'm not so sure, and I'll admit so some uncertainty
about which (sd0 or sd1) device was treated as the root device
in that attempt. Building a new kernel with "root on sd0"
didn't help.

The present configuration seems reasonable and ought to work.
If anybody has a suggestion I'd very much appreciate it. At
this point the system is good only to the next power outage.

thanks for reading!

bob

 
 
 

kernel insists on mounting wrong root disk

Post by H. Ecke » Tue, 11 Aug 1998 04:00:00



Quote:> It's possible to make the system boot successfully by manually
> entering

> 1:sd(0,a)kernel

> at the boot: prompt, but the problem returns at the next reboot.

Great.  Boot this way and put that string into /boot.config;
next time the bootloader will take it automagically.

Quote:> Why such a command would be needed is a puzzle,

Well, the boot loader is unfortunately dependent on the BIOS to
load the kernel.

Quote:> the failure of the boot: -c command to "stick" compounds it.

The "boot -c" is triggering code inside the kernel which is
setting some flags and parameter inside the kernel file.

Quote:> Now I'm not so sure, and I'll admit so some uncertainty
> about which (sd0 or sd1) device was treated as the root device

Well, the disk with the lowest SCSI-id will become sd0.  The device
number is not directly related to the SCSI-id unless you hardwire
it in the kernel.

HTH,
                                Ripley
--
http://www.in-berlin.de/User/nostromo/
==
"You don't say what kind of CD drive or hard disks you have, but since it is
causing you trouble I'll assume it is IDE."  -- comp.unix.bsd.freebsd.misc

 
 
 

kernel insists on mounting wrong root disk

Post by bob prohask » Wed, 12 Aug 1998 04:00:00




> > It's possible to make the system boot successfully by manually
> > entering

> > 1:sd(0,a)kernel

> > at the boot: prompt, but the problem returns at the next reboot.
> Great.  Boot this way and put that string into /boot.config;
> next time the bootloader will take it automagically.
>                            Ripley

Thank you Ripley!! it  worked like a charm.

There is one other small puzzle. If I understand the prompts
correctly, at the boot: prompt I could in principle also enter
1:sd(0,a)kernel -r  to _force_ a reassignment of the default
boot disk, partition and filename. When I attempt this, the
system gets farther, successfully fscking all the partitions,
but failing to mount root saying the filesystem types don't match.

Any idea what' going on? It seems as if the bios and disk
disagree about something, but I don't know what.

thanks for your help!!!

bob

 
 
 

1. NetBSD - kernel uses wrong subnet on nfs root mount!

This is my 2nd try

The boot program gets the ip,gateway, and subnet mask correct (from bootp) but
when the kernel wants to mount the nfs root it uses a different subnet
mask than the booter, and doesn't get any info and times out :(

The client is 129.79.219.217 (which is correct) and the
nfs/bootp/bootparam/mopd server is 129.79.219.215.  The subnet should be
255.255.255.0 (as the booter gets correct).  When mounting the root,
however, tcpdump shows that it is sending packets to 129.79.255.255
instead of 129.79.219.255.  The packets are for sunrpc: udp 96, which
I assume is nfs mount or bootparam.  

HELP!  Can these parameters be set on the boot programs' command line?

Brian Wheeler

2. Getting started

3. Kernel mounts root to wrong device...

4. Strange behaviour of GUS + OSS driver

5. Boot disk won't mount hard disk as root filesystem

6. System loging.

7. Root is mounted -- how how you mount root to another drive?

8. Understanding the /proc system especially with regard to networking

9. trying to mount the wrong root

10. hep: panic: cannot mount root ! wrong geometry?...

11. Help: Kernel Panic:VFS: Unable to mount root, after rebuilding kernel

12. kernel panic:unable to mount root on fs (kernel-2.4.21)

13. Kernel Panic: Can't mount root - after building new kernel