From owner-freebsd-questions@FreeBSD.ORG Thu Jul 30 19:21:10 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDBCF106564A for ; Thu, 30 Jul 2009 19:21:10 +0000 (UTC) (envelope-from af.gourmet@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id B497A8FC0C for ; Thu, 30 Jul 2009 19:21:10 +0000 (UTC) (envelope-from af.gourmet@videotron.ca) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=UTF-8 Received: from [192.168.0.51] ([96.21.103.185]) by VL-MH-MR001.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0KNM008AX0EVBHJ1@VL-MH-MR001.ip.videotron.ca> for freebsd-questions@freebsd.org; Thu, 30 Jul 2009 15:20:55 -0400 (EDT) Message-id: <4A71F297.1080903@videotron.ca> Date: Thu, 30 Jul 2009 15:20:55 -0400 From: PJ User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) To: Roland Smith References: <4A71DB2A.4040401@videotron.ca> <20090730190458.GA36265@slackbox.xs4all.nl> In-reply-to: <20090730190458.GA36265@slackbox.xs4all.nl> Cc: freebsd-questions@freebsd.org Subject: Re: how to boot or access problem file system 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: Thu, 30 Jul 2009 19:21:11 -0000 Roland Smith wrote: > On Thu, Jul 30, 2009 at 01:40:58PM -0400, PJ wrote: > >> What can be done to access a file system that seems to have the boot >> sector screwed up? >> > > Do you mean the filesystem's superblock? Or the slice table (partitions > in PC parlance) or the freebsd partitions (disk labels)? Because the > boot sector is not part of any filesystem. > > The best way to try repairs is to make a complete copy of the partition > with dd(1), and experiment on the copy. That way you cannot further screw > up the original! > > To check a UFS filesystem, use fsck_ffs(8). First, try if the preen > option '-p' is sufficient to fix the filesystem. If the superblock is > corrupt, try using the -b option to specify an alternate superblock. See > the manual page. > > >> The /usr files should be ok but how to access? >> > > Use fsck_ffs to try and repair the filesystem. > how can I use it if I can't boot or access the file system? >> I get errors that the file system is full and I have no idea of how to >> deal with the boot up - the help message is no help! >> Boot says it cannot find a kernel... surely there must be some kind of >> recovery process even if nothing has been backed up. Surely FreeBSD must >> be have something that functions like certain software does on MS ? >> > > Maybe the sleuth kit (sysutils/sleuthkit) can help you recover files. > How would that be? I can't access the disk or the file system and I can't boot.... > >> I don't have a problem with irrecoverable files, I would just finally >> understand how things work and what can be done on FBSD. >> > > Make regular backups. Especially before big upgrades. > Maybe the real problem is that the manual is too screwed up (why are there so many problems being brought up on the mailing lists? we can't all be that stupid.) > Roland > -- Hervé Kempf: "Pour sauver la planète, sortez du capitalisme." ------------------------------------------------------------- Phil Jourdan --- pj@ptahhotep.com http://www.ptahhotep.com http://www.chiccantine.com/andypantry.php