From owner-freebsd-hackers Mon Jul 15 15:37:52 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA23848 for hackers-outgoing; Mon, 15 Jul 1996 15:37:52 -0700 (PDT) Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA23831 for ; Mon, 15 Jul 1996 15:37:43 -0700 (PDT) Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net id av23294; 15 Jul 96 21:06 +0100 Received: from jraynard.demon.co.uk ([158.152.42.77]) by relay-3.mail.demon.net id ab03429; 14 Jul 96 0:46 +0100 Received: (from fhackers@localhost) by jraynard.demon.co.uk (8.6.12/8.6.12) id TAA02373; Sat, 13 Jul 1996 19:40:40 GMT Date: Sat, 13 Jul 1996 19:40:40 GMT Message-Id: <199607131940.TAA02373@jraynard.demon.co.uk> From: James Raynard To: freebsd-hackers@freebsd.org Subject: Disklabel problems Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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/