Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 1995 07:26:34 -0400 (EDT)
From:      bynum@NU.CS.FSU.EDU (Mark J. Bynum)
To:        freebsd-questions@FreeBSD.org
Subject:   Booting from Second Drive (again!)
Message-ID:  <199504191126.HAA15046@sed.cs.fsu.edu>

Next in thread | Raw E-Mail | Index | Archive | Help
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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?199504191126.HAA15046>