From owner-freebsd-questions Mon Oct 27 05:00:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA18189 for questions-outgoing; Mon, 27 Oct 1997 05:00:13 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from mail.netcetera.dk (root@sleipner.netcetera.dk [194.192.97.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA18179 for ; Mon, 27 Oct 1997 05:00:08 -0800 (PST) (envelope-from leifn@swimsuit.roskildebc.dk) Received: (from uucp@localhost) by mail.netcetera.dk (8.8.7/8.8.7) with UUCP id NAA23754 for freebsd-questions@freebsd.org; Mon, 27 Oct 1997 13:56:41 +0100 Received: by swimsuit.roskildebc.dk (0.99.970109) id AA06999; 27 Oct 97 13:55:10 +0100 From: leifn@swimsuit.roskildebc.dk (Leif Neland) Date: 27 Oct 97 09:42:03 +0100 Subject: root_device read-only, and not in dev or fstab Message-ID: <250_9710271355@swimsuit.roskildebc.dk> Organization: Fidonet: UNIX-sysadm søger job To: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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