From owner-freebsd-questions@FreeBSD.ORG Fri Feb 9 15:28:50 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E1C5016A402 for ; Fri, 9 Feb 2007 15:28:50 +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 BF2B813C494 for ; Fri, 9 Feb 2007 15:28:50 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) 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 l19FRE9D030431; Fri, 9 Feb 2007 10:27:14 -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 l19FREWI030430; Fri, 9 Feb 2007 10:27:14 -0500 (EST) (envelope-from jerrymc) Date: Fri, 9 Feb 2007 10:27:14 -0500 From: Jerry McAllister To: Marty Landman Message-ID: <20070209152714.GA30383@gizmo.acns.msu.edu> References: <70063950702090446x712d7a94vb3b2a613a426d760@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <70063950702090446x712d7a94vb3b2a613a426d760@mail.gmail.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: recovery after power outage 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: Fri, 09 Feb 2007 15:28:51 -0000 On Fri, Feb 09, 2007 at 07:46:10AM -0500, Marty Landman wrote: > On 2/8/07, Pieter de Goeje wrote: > > > >If the slice and partition table are still intact (as they were before the > >outage), a normal fsck -F on /dev/ad1s1a will get the pc booting again. > > > Well I managed to get the machine booting by editing /etc/fstab > > %cat /etc/fstab > # Device Mountpoint FStype Options Dump > Pass# > /dev/ad0s1b none swap sw 0 0 > /dev/ad0s1a / ufs rw 1 1 > /dev/ad0s1d /tmp ufs rw 2 2 > /dev/ad0s1f /usr ufs rw 2 2 > /dev/ad0s1e /var ufs rw 2 2 > #/dev/ad1s1c /hoss ufs rw 2 2 > /dev/acd0 /cdrom cd9660 ro,noauto 0 0 > > That's a great start, however I'd like to recover what I can from ad1s1c. > > %sudo fsck -F ad1s1c > fsck: exec fsck_unused for /dev/ad1s1c in /sbin:/usr/sbin: No such file or > directory > fsck: exec fsck_unused for /dev/ad1s1c in /sbin:/usr/sbin: No such file or > directory > > What is that telling me? Never saw that before, but it looks like it can't find /dev/ad1s1c > You > >can do this from a FreeBSD live cd such as FreesBIE or the fixit cd. You > >can > >then fsck the the rest of the filesystems in single user mode. You may > >also > >want to use the live CD to backup the important bits before, ehm, further > >corrupting/restoring the filesystems. ;) > > > Sorry Pieter I'm lost again. Can't I use sysinstall? Fdisk? Wish I > understood the next steps here. Don't confound fsck and fdisk. Anyway, he is assuming you cannot boot and get a running system By eliminating the /dev/ad1s1c from needing to be mounted at boot you now have a running system that you can use to work on getting as much as you can back from /hoss, so the fixit cd is no longer needed (unless something else goes wrong). > FWIW when I do a sysinstall and then use the fdisk utility I get > > Disk name: ad1 FDISK Partition > Editor > DISK Geometry: 30515 cyls/255 heads/63 sectors = 490223475 sectors > (239366MB) > > Offset Size(ST) End Name PType Desc Subtype > Flags > > 0 126 125 - 12 unused 0 > 126 490223412 490223537 ad1cs1 8 freebsd 165 > 490223538 11214 490234751 - 12 unused 0 > > Which appears that I perhaps have not totally hosed this disk up. Did you copy/paste this or retype it in by hand - which would account for the 'Name' column containing "ad1cs1" rather than "ad1s1c". If it was copy/paste, that looks really strange. I am not used to looking at fdisk output from within sysinstall. I wouldn't have thought I would see a partition name 'c' within the fdisk slice output, but maybe I just never noticed it before. Maybe using fdisk manually will give some more information. >From root, run: fdisk ad1 and see what it says. The output should be more familiar to me. ////jerry > > Marty > > > -- > Web Installed Formmail - http://face2interface.com/formINSTal/ > Webmaster's BBS - http://bbs.face2interface.com/ > > -- > Web Installed Formmail - http://face2interface.com/formINSTal/ > Webmaster's BBS - http://bbs.face2interface.com/ > _______________________________________________ > 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"