Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 1999 11:26:32 -0600 (CST)
From:      mhughes@logroad.bridge.com (Michael Hughes)
To:        xuc@mcbi-34.med.nyu.edu (Chen Xu)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Help! corrupted filesystem: magic number rong
Message-ID:  <199902181726.LAA24522@logroad.bridge.com>
In-Reply-To: <36CC43D2.794B936F@saturn.med.nyu.edu> from "Chen Xu" at Feb 18, 99 11:46:10 am

next in thread | previous in thread | raw e-mail | index | archive | help
  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 _. /_  __.  _  //     /--/ . . _,  /_  _  _                           
/ ' (_<_(__/ /_(_/|_</_</_    /  (_(_/_(_)_/ /_</_/_)_                         
Bridge Information Systems, Inc.        /|                                    
St Louis MO                             |/                  mhughes@bridge.com 
-------------------------------------------------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902181726.LAA24522>