From owner-freebsd-questions@FreeBSD.ORG Mon Feb 22 03:27:10 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 69E3B1065672 for ; Mon, 22 Feb 2010 03:27:10 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 333568FC0A for ; Mon, 22 Feb 2010 03:27:09 +0000 (UTC) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id o1M3MdfS041659; Sun, 21 Feb 2010 22:22:39 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id o1M3MdLN041658; Sun, 21 Feb 2010 22:22:39 -0500 (EST) (envelope-from jerrymc) Date: Sun, 21 Feb 2010 22:22:39 -0500 From: Jerry McAllister To: Aiza Message-ID: <20100222032239.GB41439@gizmo.acns.msu.edu> References: <4B81EE7D.9020105@comclark.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B81EE7D.9020105@comclark.com> User-Agent: Mutt/1.4.2.2i 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 03:27:10 -0000 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"