From owner-freebsd-questions Thu Feb 18 9:26:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from gauntlet2.bridge.com (gauntlet2.bridge.com [167.76.159.30]) by hub.freebsd.org (Postfix) with ESMTP id B4DD7116FF for ; Thu, 18 Feb 1999 09:26:49 -0800 (PST) (envelope-from mhughes@logroad.bridge.com) Received: by gauntlet2.bridge.com; id LAA04519; Thu, 18 Feb 1999 11:26:48 -0600 (CST) Received: from dns1srv.bridge.com(167.76.56.13) by gauntlet2.bridge.com via smap (4.1) id xma004471; Thu, 18 Feb 99 11:26:39 -0600 Received: from logroad.bridge.com (logroad.bridge.com [167.76.15.21]) by dns1srv.bridge.com (8.7.6/8.7.3) with SMTP id LAA23668; Thu, 18 Feb 1999 11:26:39 -0600 (CST) Received: by logroad.bridge.com (SMI-8.6/SMI-SVR4) id LAA24522; Thu, 18 Feb 1999 11:26:32 -0600 From: mhughes@logroad.bridge.com (Michael Hughes) Message-Id: <199902181726.LAA24522@logroad.bridge.com> Subject: Re: Help! corrupted filesystem: magic number rong To: xuc@mcbi-34.med.nyu.edu (Chen Xu) Date: Thu, 18 Feb 1999 11:26:32 -0600 (CST) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <36CC43D2.794B936F@saturn.med.nyu.edu> from "Chen Xu" at Feb 18, 99 11:46:10 am X-Mailer: ELM [version 2.4 PL25] Content-Type: text Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Use fsck with an alternate superblock. Block 32 is usually an alternate. So do fsck -b 32 /dev/rwd1s2e. Chen Xu said in email to me: > > Dear all, > > I have a FreeBSD filesystem /usr/local on the third partition of 2nd IDE HDD (dev/wd1s2e). > > And I must did thing wrong and corrupted this filesystem > > when I tried to boot Linux at the same disk. Now I got message: > > ************ > > /dev/wd1s2e: Bad Super Block: magic number wrong > > /dev/wd1s2e labled as a 4.2 BSD file system, but block size is 0. > > ****************** > How to repair it? > More problem is that I use tcsh which is in that file system. So I can > only login as single user and use shell like /bin/csh. But terminal > setting in that case is messy. > > Any idea? Thanks alot! > > Chen > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > -- ------------------------------------------------------------------------------- _ _ _ _ _ , Loghome living is the ' ) ) ) / // ' ) / / best ! / / / o _. /_ __. _ // /--/ . . _, /_ _ _ / ' (_<_(__/ /_(_/|_