From owner-freebsd-questions Mon Feb 25 3:55:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rod.inty.net (rod.inty.net [195.224.93.241]) by hub.freebsd.org (Postfix) with ESMTP id 9869D37B402 for ; Mon, 25 Feb 2002 03:55:40 -0800 (PST) Received: from inty.hq.inty.net (inty.hq.inty.net [213.38.150.150]) by rod.inty.net (8.11.3/8.11.3) with ESMTP id g1PBtQP79340 for ; Mon, 25 Feb 2002 11:55:28 GMT Received: from eddy.hq.inty.net ([10.0.1.7]) by inty.hq.inty.net (8.12.1/8.12.1) with ESMTP id g1PBtMKu068779 for ; Mon, 25 Feb 2002 11:55:22 GMT Date: Mon, 25 Feb 2002 11:55:22 +0000 (GMT) From: Stefan Kruger X-X-Sender: stefan@eddy.hq.inty.net To: freebsd-questions@freebsd.org Subject: Setting the root fs on single-user mode boot? Message-ID: <20020225114559.J93820-100000@eddy.hq.inty.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Sender-IP: 10.0.1.7 X-INT-DeliveryDone: g1PBtMKu068779 X-suppress-rcpt-virus-notify: yes X-Skip-Virus-Check: yes X-Virus-Checked: 60836 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi there -- bear with me, I'm new to this game -- I need to do the following: My disk has several partitions, amongst those a boot partition normally mounted as /boot. I want to boot the machine into single user mode, but having the partition /boot be the root file system root@idoru:/# df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 1016047 379880 554884 41% / /dev/ad0s1d 19503 3050 14893 17% /boot /dev/ad0s1e 8924559 3907253 4303342 48% /data /dev/ad0s1f 8924559 1008483 7202112 12% /var/mail procfs 4 4 0 100% /proc The reason for doing this is that I want to have the 'normal' root file system unmounted so that I can re-partition it. The /boot partition will contain the necessary tools for doing this. I naively tried setting the root fs using the 'rootdev' variable in loader.rc, but that doesn't seem to be the way to go. So, how do I set up the loader to boot in single user mode, with the root file system being the /dev/ad0s1d above? Thanks in advance for any pointers, stefan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message