[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: e2fsck says it fixed corruption, but it didn't



On Thu, 11 Sep 1997, Evgeny Stambulchik wrote:

> >  I have a corrupted superblock.
>
> Have you tried comp.os.linux.sex.reabilitation? :)
>
> >  So I log in as root and run e2fsck using a spare superblcok:
> >  So then I shutdown and reboot, thinking I've solved the 
> >  problem, but NO! When I reboot, I get exactly the same problem. 

Just turn the system to the 1 runlevel ( telinit 1 or as you wish ) ,
repair the file system by fsck ,as you done, and do 'halt -n' - it's
important ! 

> Why does it check the file system *at all* after a clean reboot?!
> 

Read configuration scripts !!!

> >  So my question is, how come e2fsck says it fixed my problem,
> >  but it seems to not have?
> 
> What if you run e2fsck again immediately after it's finished fixing the
> partition?
> 

Cause reboot ,shutdown etc. sync the buffers and sblocks to disk and 
owerwrite repaired filesystem. ( for more check out J. Bach
"THE DESIGN OF THE UNIX OPERATING SYSTEM" book :) )

> >  
> >  Here is my /etc/fstab, in case this is useful:
> >  
> >  /dev/sdb1   swap    swap     defaults   1   1
> >  /dev/sda1   /       ext2     defaults   1   1
> >  none        /proc   proc     defaults   1   1
> >  /dev/sdb2   /u1     ext2     defaults   1   1
> 
> It should look like
> 
> /dev/sdb1   swap    swap     defaults   0   0
                                          ^^^^^
> /dev/sda1   /       ext2     defaults   1   1
> none        /proc   proc     defaults   0   0
                                          ^^^^^
> /dev/sdb2   /u1     ext2     defaults   1   2
> 

It should do no problems under linux if you don't do backups. 

---SDK--------------------------------------------------------------------------
  Shimon Katsman  |  E-Mail:katsman@isracom.co.il  |  Mobile Phone: 052-298049