From owner-freebsd-current Sun Sep 20 07:22:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA01408 for freebsd-current-outgoing; Sun, 20 Sep 1998 07:22:38 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA01389 for ; Sun, 20 Sep 1998 07:22:26 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from gjallarhorn.ifi.uio.no (2602@gjallarhorn.ifi.uio.no [129.240.65.40]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id QAA26903; Sun, 20 Sep 1998 16:21:49 +0200 (MET DST) Received: (from dag-erli@localhost) by gjallarhorn.ifi.uio.no ; Sun, 20 Sep 1998 16:21:48 +0200 (MET DST) Mime-Version: 1.0 To: "William R. Somsky" Cc: freebsd-current@FreeBSD.ORG Subject: Re: aout-to-elf-build failure [2.2.7-STABLE -> 3.0-CURRENT] References: <19980918005638.A22744@gramarye> <19980918021205.A28767@gramarye> <19980919145745.A376@gramarye> Organization: University of Oslo, Department of Informatics X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-other-addresses: 'finger dag-erli@ifi.uio.no' for a list X-disclaimer-1: The views expressed in this article are mine alone, and do X-disclaimer-2: not necessarily coincide with those of any organisation or X-disclaimer-3: company with which I am or have been affiliated. X-Stop-Spam: http://www.cauce.org/ From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 20 Sep 1998 16:21:48 +0200 In-Reply-To: "William R. Somsky"'s message of "Sat, 19 Sep 1998 14:57:45 -0700" Message-ID: Lines: 44 X-Mailer: Gnus v5.5/Emacs 19.34 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id HAA01398 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "William R. Somsky" writes: > A check of "mount" showed that it had "sd0s2a" mounted as /, and although > that and "sd0a" currently pointed to the same thing, evidentally mount > didn't know this, and balked at the naming difference. (Um, what is the > exact required setup here?) No, sd0s2a and sd0a are not the same thing. They have different minor numbers, and that's what counts to mount(8): finrod@saers /dev$ ll sd0*a brw-r----- 1 root operator 4, 0 May 20 1997 sd0a brw-r----- 1 root operator 4, 0x00020000 Sep 20 16:17 sd0s1a brw-r----- 1 root operator 4, 0x00030000 Sep 20 16:17 sd0s2a brw-r----- 1 root operator 4, 0x00040000 Sep 20 16:17 sd0s3a > So, just update /etc/fstab and /dev, right? Well, it's not that easy, > since / is still mounted read-only, and I couldn't figure out how to > change it to read-write. (I think there's a way, isn't there? I just > couldn't remember at the time. Can someone remind me for future reference?) > So, out w/ the boot floppy and CD-rom: boot from floppy, fixit from CD, > mount the disk on /mnt and fix (/mnt)/etc/fstab and (after a failed > boot attempt) (/mnt)/dev. If you can successfully mount other file systems, create a temp directory on any local writable fs, get a fresh copy of MAKEDEV from /usr/src/etc/etc.i386, create a device node for your root fs and mount it: # cd /var/tmp # mkdir dev # cd dev # cp /usr/src/etc/etc.i386/MAKEDEV . # sh MAKEDEV da0s2a # mount da0s2a / Any local filesystem you can write to will do the job; disk, floppy, OD, MFS, whatever. Even better, if you have a live FreeBSD CD-ROM, you can use the device nodes on it provided you have a mount point for the CD-ROM (unless you've already mounted other file systems, /usr, /var and /mnt should be available) DES -- Dag-Erling Smørgrav - dag-erli@ifi.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message