Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Apr 1998 21:01:09 +0200 (CEST)
From:      paul.hernaus@nl.origin-it.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/6363: FreeBSD 2.2.6 Release tries to mount root fs from wrong disk
Message-ID:  <199804201901.VAA01089@itchy.mpn.cp.philips.com>

next in thread | raw e-mail | index | archive | help

>Number:         6363
>Category:       kern
>Synopsis:       Kernel tries to mount root fs from wrong disk and panics
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 20 12:10:01 PDT 1998
>Last-Modified:
>Originator:     Paul Hernaus
>Organization:
Origin
>Release:        FreeBSD 2.2.6-RELEASE i386
>Environment:

	Pentium 200MHz system, with 64MB RAM, and two hard disks
	(primary master and secondary master, with FreeBSD 2.2.6 Release
	installed on the latter), 1 cdrom player (primary slave).

>Description:

	After successfully loading the kernel from wd2 (secondary
	master) it tries to mount the root fs from wd1 (primary slave,
	doesn't exist on my system) and then of course panics.
	The kernel config file contains the following line:

	config          kernel  root on wd2

	The kernel should therefore know that the root fs is on wd2
	and not on wd1.

	
>How-To-Repeat:

	Configure your system as follows:
	2 IDE disks, primary and secondary master. 1 CDrom player,
	primary slave.

	Install FreeBSD 2.2.6 Release on
	the secondary master, labeled with autodefaults. My first disk
	contains Windows 95 (FAT 32). (Yes, I know, I should get rid
	of it, I will :)

	Install the boot manager on both disks
	(otherwise it is not possible to boot from the second disk).
	Install a customized kernel. I have used the config file
	at the end of this section.

	Reboot, et voila. Kernel panic while trying to mount root
	fs from wd1.


	machine		"i386"
	cpu		"I586_CPU"
	ident		IGLO
	maxusers	40
	options		INET			#InterNETworking
	options		FFS			#Berkeley Fast Filesystem
	options		NFS			#Network Filesystem
	options		MSDOSFS			#MSDOS Filesystem
	options		"CD9660"		#ISO 9660 Filesystem
	options		PROCFS			#Process filesystem
	options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
	options		BOUNCE_BUFFERS		#include support for DMA bounce buffers
	options		UCONSOLE		#Allow users to grab the console
	options		FAILSAFE		#Be conservative
	config		kernel	root on wd2
	controller	isa0
	controller	pci0
	controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
	disk		fd0	at fdc0 drive 0
	options		"CMD640"	# work around CMD640 chip deficiency
	controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr          
	disk		wd0	at wdc0 drive 0
	controller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr
	disk		wd2	at wdc1 drive 0
	options		ATAPI		#Enable ATAPI support for IDE bus
	options		ATAPI_STATIC	#Don't do it as an LKM
	device		wcd0		#IDE CD-ROM
	device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
	device		npx0	at isa? port "IO_NPX" flags 0x1 irq 13 vector npxintr
	device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
	device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
	device		sio2	at isa? disable port "IO_COM3" tty irq 5 vector siointr
	device		sio3	at isa? port "IO_COM4" tty irq 7 vector siointr
	device		lpt0	at isa? port? tty irq 7 vector lptintr
	device vx0
	controller	snd0
	device sb0	at isa? port 0x220 irq 5 drq 1 vector sbintr
	device sbxvi0	at isa? drq 5
	device sbmidi0	at isa? port 0x330
	device opl0	at isa? port 0x388
	pseudo-device	loop
	pseudo-device	ether
	pseudo-device	log
	pseudo-device	bpfilter	4
	pseudo-device	vn		1
	pseudo-device	tun		1
	pseudo-device	pty		128
	pseudo-device	gzip
	options		KTRACE
	options         SYSVSHM
	
>Fix:
		
		Work around:
		Put the following line in /boot.config:
		1:wd(2,a)/kernel


>Audit-Trail:
>Unformatted:

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804201901.VAA01089>