From owner-freebsd-questions Mon Oct 27 10:02:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA10513 for questions-outgoing; Mon, 27 Oct 1997 10:02:25 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA10355 for ; Mon, 27 Oct 1997 10:01:05 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id JAA29709; Mon, 27 Oct 1997 09:58:25 -0800 (PST) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd029705; Mon Oct 27 17:58:20 1997 Date: Mon, 27 Oct 1997 09:56:42 -0800 (PST) From: Julian Elischer To: Leif Neland cc: freebsd-questions@FreeBSD.ORG Subject: Re: root_device read-only, and not in dev or fstab In-Reply-To: <250_9710271355@swimsuit.roskildebc.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk boot from the boot floppy, choose the 'fixit disk' option put in the fixit disk mount the root part fix it On 27 Oct 1997, Leif Neland wrote: > I put a 3rd scsi drive in a machine running fbsd, and created root, swap, var and usr on it. Then I mounted the root on /newroot, the new var and usr also, and extracted the bin-distribution on these system. > > Then I compiled a kernel with root on /dev/sd2s1a, put this kernel and the scsi in a dos-machine (where it is also the 3rd drive), and booted FBSDBOOT -r -D arnold.ker > > I got to the single-user mode, with mount saying: > root_device: on / (local, readonly) > > I couldn't mount / rw, appearently because there wasn't a /etc/fstab, and no /dev/sd2s1a. And because of that, I couldn't create /etc/fstab and /dev/sd2s1a! Chicken and egg... > > So I put the scsi back[1] in machine 1, and created fstab and the proper devices. (It seems I also need to make /dev/rsd2s1a for fsck to work?) > > So now machine 2 works also. > > But was there another way of making the root writable, when it's not in /dev or fstab? > > [1] I don't believe in screws before the darn thing works, and even then often not... > > > Leif Neland > leifn@image.dk > > --- > |Fidonet: Leif Neland 2:234/49 > |Internet: leifn@image.dk > >