From owner-freebsd-questions Wed Apr 19 04:26:46 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id EAA16638 for questions-outgoing; Wed, 19 Apr 1995 04:26:46 -0700 Received: from sed.cs.fsu.edu (sed.cs.fsu.edu [128.186.121.157]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id EAA16632 for ; Wed, 19 Apr 1995 04:26:43 -0700 Received: by sed.cs.fsu.edu (8.6.9/56) id HAA15046; Wed, 19 Apr 1995 07:26:35 -0400 Message-Id: <199504191126.HAA15046@sed.cs.fsu.edu> Subject: Booting from Second Drive (again!) To: freebsd-questions@FreeBSD.org Date: Wed, 19 Apr 1995 07:26:34 -0400 (EDT) From: bynum@NU.CS.FSU.EDU (Mark J. Bynum) Reply-to: bynum@NU.CS.FSU.EDU X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1539 Sender: questions-owner@FreeBSD.org Precedence: bulk I have gone through the following steps to boot from my second drive (the first an IDE, the second a SCSI which is my FreeBSD drive): 1. I put an entry in my disktab file for the SCSI drive: qm540s|Quantum Lightning 540S:\ :dt=SCSI:ty=winchester:se#512:nt#64:ns#2048:nc#525: \ :pa#40960:oa#0:ta=4.2BSD:ba#8192:fa#1024: \ :pb#81920:ob#40960:tb=swap: \ :pc#1075649:oc#0: \ :pd#1075649:od#0: \ :pe#952320:oe#122880:te=4.2BSD:be#8192:fe#1024: 2. I changed /usr/src/sys/i386/biosboot/boot.c in the following place: from: loadstart: /***************************************************************\ * As a default set it to the first partition of the first * * floppy or hard drive * \***************************************************************/ part = unit = 0; to: loadstart: part = 0; unit = 1; 3. Did a make, and make install in that directory. 4. Lastly, I labeled the disk using the following command: disklabel -w -B -b /usr/mdec/sdboot -s /usr/mdec/bootsd sd0 qm540s After rebooting, the system would just go into an eternal reboot cycle. What I could do is at the boot prompt type "hd(1,a)/kernel" and it would boot up correctly. Seeing that after doing a make install, only sdboot and bootsd where copied into /usr/mdec I tried changing the code in boot.c back to "part=unit=0" but it did not work either. It said this time that it could not find the root filesystem sd1. That is correct in that there is no sd1, just sd0. Anybody, have a clue as to what I may be doing wrong? Thanks, Mark Bynum