Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jul 1996 19:40:40 GMT
From:      James Raynard <fhackers@jraynard.demon.co.uk>
To:        freebsd-hackers@freebsd.org
Subject:   Disklabel problems
Message-ID:  <199607131940.TAA02373@jraynard.demon.co.uk>

next in thread | raw e-mail | index | archive | help
Here's a problem from freebsd-questions which no-one seems able to
find a satisfactory answer to:-

The following steps allegedly allow booting FreeBSD from a SCSI drive
when an IDE drive is also present, ie instead of having to type
'hd(1,a)/kernel' every time the system boots.

# cd /sys/i386/boot/biosboot
# vi boot.c
part = 0;
unit = 1;
maj = 1;
# make
# disklabel -B -b boot1 -s boot2 wd0

However, this results in the error message 
"disklabel: /dev/rwd0c: Undefined error: 0".

As far as I can see from the code, this message only occurs if
disklabel was unable to open the disk as a raw device, or if it could
not read the boot area.

This is on 2.1.0R; the command *is* being run as root, and wd0 is not
mounted anywhere. Suggestions?

-- 
James Raynard, Edinburgh, Scotland
james@jraynard.demon.co.uk
http://www.freebsd.org/~jraynard/



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