Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2002 11:55:22 +0000 (GMT)
From:      Stefan Kruger <stefan@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>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020225114559.J93820-100000>