From owner-freebsd-questions@FreeBSD.ORG Wed Mar 2 18:17:07 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D5FD16A4CE; Wed, 2 Mar 2005 18:17:07 +0000 (GMT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DEC243D3F; Wed, 2 Mar 2005 18:17:06 +0000 (GMT) (envelope-from zettel@acm.org) Received: from [192.168.0.4] (bgp966574bgs.derbrn01.mi.comcast.net[68.41.108.205]) by comcast.net (sccrmhc11) with ESMTP id <2005030218170601100sv6are>; Wed, 2 Mar 2005 18:17:06 +0000 From: Leonard Zettel To: freebsd-questions@freebsd.org Date: Wed, 2 Mar 2005 13:17:13 -0500 User-Agent: KMail/1.7.2 References: <200503012302.j21N2O708047@clunix.cl.msu.edu> In-Reply-To: <200503012302.j21N2O708047@clunix.cl.msu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503021317.13502.zettel@acm.org> cc: Jerry McAllister cc: questions@freebsd.org Subject: Re: restore X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 18:17:07 -0000 On Tuesday 01 March 2005 06:02 pm, Jerry McAllister wrote: OK, for the record: > > On Tuesday 01 March 2005 04:36 pm, Jerry McAllister wrote: > > > > The production machine is working just fine. > > > > All the FreeBSD stuff is on ad0s1, a 40 GB hard drive. > > > > I have been using a 120 GB drive on ad0s1 for > > > > backup, and have (apparently successfully) done > > > > a dump of production / and /usr. > > > > > > > > So, I fire up the development machine with > > > > the 120 GB drive as the slave of controller 1, > > > > what I would like to be the main drive of the > > > > development system (a 40GB hard drive) as > > > > the master of controller 0, and disk 2 of the > > > > Free BSD CD-ROMs in the CD-ROM drive. > > > > > > > > Up comes beastie and I boot. > > > > I select "fixit" from the menu, followed by alt-F4. > > > > > > > > Then: > > > > mount /dev/ad0s1a /mnt (to make the new root accessible to > > > > the system). > > > > mkdir backup (make a mount point for the 120GB > > > > drive) mount /dev/ad3s1a /backup (mount the 120 GB drive) > > > > newfs /dev/ad0s1a (start the new root with a clean sheet > > > > prior to doing a retore) > > > > > > > > BUT instead I get a diagnostic as follows: > > > > fstab: /etc/fstab:0: No such file or directory > > > > newfs: /dev/ad0s1a: failed to open disk for writing > > > > > > > > Could anybody tell me what I *should* be doing (bonus > > > > extra points for expalining why :-) )?" > > > > > > Well, I got a little confused as to which machine has which drive[s] > > > Especially when you say early on that everything on the production > > > machine is on ad0s1 - a 40 GB drive and then say you are doing > > > backups to ad0s1 - a 120 GB drive. > > > > Typo -sorry about that; the 120G is ad1s1a when it is on > > the production machine. > > Figured that was probable. > > > > That sounds like you have > > > two ad0 drives on the machine at the same time. I suspect something > > > is missing of twisted in the description. > > > > > > But, farther down seems to be your real problem. > > > The first question is did you look at the boot messages when you > > > came up in fixit and are sure that ad0 and ad3 are the devices you > > > need to be dealing with? > > > > df verifies that ad0 is the 40G and ad3 is the 120G on the > > development machine. > > > > As I understand it, ad3 is the slave of the second IDE controller (1). > > It gets to be slave because the drive jumpers are set > > that way, so the 120 can be slave on the first controller on the > > production machine (ad1). That way I can swap without redoing > > the jumper. > > Could be. My only IDE machine I have never had more than one disk on. > SCSI is more orderly. I would just check the messages as it boots or > look at dmesg(8) and verify the device names. > > > > I kind of would have expected ad0 and ad1 > > > or maybe ad0 and ad2, but I am not used to mucking with IDE > > > controllers. > > > > > > Next, why did you try and mount /dev/ad0s1a and then newfs /dev/ad0s1a > > > That should not work at all. You don't newfs a mounted partition. > > > > Gee, I didn't know that. It wasn't clear when I read the handbook > > or man pages. May give me something new to try-- > > That is probably your main problem. > Doing the newfs on the unmounted partition worked the way I expected it to. Once more, thanks to all. -LenZ- > > > Second, that would wipe what is on there - maybe you want that. > > > > I do indeed want that. > > > > > I don't know why it complains about fstab at that point. The fixit > > > does not create one, but I don't see where it is needed for what you > > > are trying. > > > > Makes two of us. > > I've been fooled before. Most days. > > ////jerry > > > > Maybe, just doing the wrong thing with newfs got it > > > to trying to check stuff. > > > > > > Anyway, There are some thoughts of things to work out. Maybe > > > they will give you a clue of what to try next. > > > > > > ////jerry > > > > Thanks. > > > > > > -LenZ- > > _______________________________________________ > 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"