From owner-freebsd-hackers Thu Dec 12 15:07:20 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id PAA15961 for hackers-outgoing; Thu, 12 Dec 1996 15:07:20 -0800 (PST) Received: from zwei.siemens.at (zwei.siemens.at [193.81.246.12]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id PAA15919 for ; Thu, 12 Dec 1996 15:06:46 -0800 (PST) Received: from sol1.gud.siemens.co.at (root@[10.1.143.100]) by zwei.siemens.at (8.7.5/8.7.3) with SMTP id AAA18362 for ; Fri, 13 Dec 1996 00:06:15 +0100 (MET) Received: from ws2301.gud.siemens.co.at by sol1.gud.siemens.co.at with smtp (Smail3.1.28.1 #7 for ) id m0vYKCa-0001zcC; Fri, 13 Dec 96 00:06 MET Received: by ws2301.gud.siemens.co.at (1.37.109.16/1.37) id AA208211935; Fri, 13 Dec 1996 00:05:35 +0100 From: "Hr.Ladavac" Message-Id: <199612122305.AA208211935@ws2301.gud.siemens.co.at> Subject: Re: 2.1.5-R kernel root on sd0 fails To: joerg_wunsch@uriah.heep.sax.de Date: Fri, 13 Dec 1996 00:05:35 +0100 (MEZ) Cc: freebsd-hackers@freebsd.org, lada@ws2301.gud.siemens.co.at In-Reply-To: <199612122232.XAA13029@uriah.heep.sax.de> from "J Wunsch" at Dec 12, 96 11:32:48 pm X-Mailer: ELM [version 2.4 PL24 ME8a] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk E-mail message from J Wunsch contained: > As Hr.Ladavac wrote: > > > I added > > > > kernel root on sd0 swap on sd0 > > This should not be needed, unless you boot with the -r option. Well, it didn't work anyway. > > > to the config file, re-ran config and had a panic: cannot set sd1 > > root device. > > Ah, wait a minute... you had the IDE drive still enabled in the BIOS? > Then it's obvious: you gotta boot with > > 1:sd(0,a)/kernel Sure, I know that. But it requires manual intervention on *every* boot. > > Disabling the IDE drive in the BIOS is also an option (you could still > use it from BSD anyway). Not on this box (or the owner of the disk would hang me by the balls). She wants to have access to her files and does not like the idea of fiddling with the BIOS configuration. > > > I did manage it afterwards by hardcoding makedev(4,0) in autoconfig.c > > and swapgeneric.c as the rootdev, but this is not exactly the solution > ^^^^^^^^^^^^^ > > I sought for. > > swapgeneric.c is only used if you configure your kernel as > > config kernel swap generic Honestly speaking, I didn't really look into the link list; I just changed it as that was the only place I could find where rootdev and dumpdev are defined. I guess it needs to be linked in. OTOH, your statement implies that the kernel root device configuration option is actually broken. I'll take a look in the config sources, then. /Marino > > -- > cheers, J"org > > joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE > Never trust an operating system you don't have sources for. ;-) >