Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jan 1999 16:58:22 +0100 (CET)
From:      Blaz Zupan <blaz@gold.amis.net>
To:        freebsd-current@FreeBSD.ORG
Subject:   Kernel cannot mount root with new bootblocks
Message-ID:  <Pine.BSF.4.05.9901051646070.3860-100000@gold.amis.net>
In-Reply-To: <199901050511.VAA00479@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Here is my setup. I have two SCSI disks connected to an Adaptec 2940, the
first is a Quantum 540MB (SCSI ID 0), containing Windows 95, the second
is a NEC 1.5GB (SCSI ID 1) containing FreeBSD:

da0 at ahc0 bus 0 target 0 lun 0
da0: <QUANTUM LPS540S 5900> Fixed Direct Access SCSI-2 device 
da0: 10.0MB/s transfers (10.0MHz, offset 8)
da0: 516MB (1057616 512 byte sectors: 64H 32S/T 516C)
da1 at ahc0 bus 0 target 1 lun 0
da1: <NEC D3847 0307> Fixed Direct Access SCSI-2 device 
da1: 10.0MB/s transfers (10.0MHz, offset 15)
da1: 1547MB (3170160 512 byte sectors: 255H 63S/T 197C)

/home/blaz> df
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/da1s4a     31775    15447    13786    53%    /
/dev/da1s4f   1401271   923795   365375    72%    /usr
/dev/da1s4e     29727    24415     2934    89%    /var
/dev/da0s4     528208   162112   366096    31%    /dos/c
procfs              4        4        0   100%    /proc

Usually I have os-bs installed on the Quantum so that I can select between
Win95 and FreeBSD and this works just fine with the new FreeBSD bootloader
for quite some time now.

Then I decided to dump Win95 and put some other stuff in, so I needed to
boot off the FreeBSD disk directly, without using os-bs. I selected SCSI
ID 1 as the boot drive in the Adaptec BIOS. After the kernel boots, I get
a panic saying "cannot mount root".

I cannot seem to find the right "set currdev" command. When I boot the
usual way, currdev is set to disk2s4a, which I guess is right (i.e. it
works). When I select the FreeBSD disk as the boot disk, it tries to boot
from disk1s4a (which I guess is correct, as the FreeBSD disk is now BIOS
drive C:), but the kernel fails to mount root.

This is -current as of yesterday, with the latest boot code (installed
with "disklabel -B da1" and empty /boot/boot.conf). FreeBSD disk was
originally installed dangerously dedicated.

Suggestions on how to fix this will be much appreciated. 

Blaz Zupan, blaz@medinet.si, http://home.amis.net/blaz
Medinet d.o.o., Linhartova 21, 2000 Maribor, Slovenia


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9901051646070.3860-100000>