Date: Mon, 22 Feb 2010 12:04:13 +0800 From: Aiza <aiza21@comclark.com> To: Jerry McAllister <jerrymc@msu.edu> Cc: freebsd-questions <questions@freebsd.org> Subject: Re: booting single user mode Message-ID: <4B82023D.8030902@comclark.com> In-Reply-To: <20100222032239.GB41439@gizmo.acns.msu.edu> References: <4B81EE7D.9020105@comclark.com> <20100222032239.GB41439@gizmo.acns.msu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Jerry McAllister wrote: > On Mon, Feb 22, 2010 at 10:39:57AM +0800, Aiza wrote: > >> Looking for conformation. >> On booting into single user mode all files systems are unmounted except >> / which is mounted read only. >> Is this true? >> Will dump/restore commands work? > > Generally yes. Make sure they are in your path and available to you > in whatever filesystem[s] you have mounted. I think they normally are. > I believe dump and restore are in /sbin which should be part of your > root filesystem and not in its own partition. ==Never put those things > that should be in root in their own partitions== > To check where they are use 'which' which dump or which restore > will tell you where they are. > > When you dump a non mounted filesystem, I think you have to use > the partition name, not the mount name. > > So, instead of > dump 0afL /dev/nsa0 /usr > it might be > dump 0afL /dev/nsa0 /dev/ad0s1d > if your mount a partition /dev/ad0s1d as /usr normaly. > > You don't really need to restore to an unmounted partition, though > using single user might be useful. If you are restoring in single > user, do something like this. > > fsck -a > mount -u / > mount -a > cd /usr > restore -rf /dev/nsa0 > > Note: I am using /dev/nsa0 as where the dump media is. that would > be a tape device. You need to adjust this for where you really > write the dump or have the dump stored. > > ////jerry > Think mistake here dump 0afL /dev/nsa0 /usr Whole reason for doing dump in single user mode is no snapshot so no need for -L flag in your example dump command.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B82023D.8030902>