From owner-freebsd-questions@FreeBSD.ORG Mon Feb 22 04:04:24 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 723851065670 for ; Mon, 22 Feb 2010 04:04:24 +0000 (UTC) (envelope-from aiza21@comclark.com) Received: from avmxsmtp5.comclark.com (avmxsmtp5.comclark.com [202.69.191.119]) by mx1.freebsd.org (Postfix) with ESMTP id D2B488FC13 for ; Mon, 22 Feb 2010 04:04:21 +0000 (UTC) Received: (qmail 25901 invoked by uid 89); 22 Feb 2010 04:04:15 -0000 Received: by simscan 1.3.1 ppid: 25896, pid: 25897, t: 0.0699s scanners: attach: 1.3.1 clamav: 0.93.3/m: Received: from unknown (HELO ?10.0.10.3?) (202.69.173.143) by avmxsmtp5.comclark.com with SMTP; 22 Feb 2010 04:04:15 -0000 Message-ID: <4B82023D.8030902@comclark.com> Date: Mon, 22 Feb 2010 12:04:13 +0800 From: Aiza User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Jerry McAllister References: <4B81EE7D.9020105@comclark.com> <20100222032239.GB41439@gizmo.acns.msu.edu> In-Reply-To: <20100222032239.GB41439@gizmo.acns.msu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions Subject: Re: booting single user mode X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2010 04:04:24 -0000 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.