[Tfug] Mount Issues

John Gruenenfelder johng at as.arizona.edu
Thu Jun 4 22:54:27 MST 2009


On Wed, Jun 03, 2009 at 07:36:01PM -0400, Charles R. Kiss wrote:
>
>> it's your job to sort complete garbage from useful data, then determine 
>> which
>> of those are actually complete files or still useful in some way, and  
>> then
>> finally rename them and move them elsewhere.
>
> So, is the idea to mv the files to a different partition and then re-run  
> the e2fsck over and over again, as it finds other files, until "all" the  
> data is recovered?
>
> Sounds like a plan.

Well, no, not really.  Unless you've got some sort of ongoing problem with
your drive or filesystem, running e2fsck once should be sufficient, I think.
It should make the repairs it can, trying to save data where possible, and
orphaned inodes go into lost+found.  I don't *think* e2fsck empties lost+found
before running (xfs_check does for some reason) so you probably don't need to
move file out of there before running e2fsck again.

> Two other questions: when running e2fsck and it "corrects" inode  
> information ( using the -y option), does it rewrite all the superblocks?

I can't say with authority, but I'm pretty sure it must.  What would be the
use in having differing superblocks, especially in a filesystem that is
supposed to now be "fixed"?

> Also does, "No journal on filesystem on sdc2" mean that there is  
> absolutely no journal, or does it mean the kernel can't find it?

I don't use ext3 as often as I use XFS, but I believe, at a simple level, ext3
is essentially just ext2 with a journal tacked on.  Given an existing ext2
filesystem, you can turn it into an ext3 filesystem by running 'tune2fs -j'
which will add a journal.

I suppose it is possible that during whatever filesystem troubles you had the
journal was completely clobbered and the metadata no longer shows it to be
present.  You can use the above command to add it again.

> Thanks Again John !

No problem.


-- 
--John Gruenenfelder    Systems Manager, MKS Imaging Technology, LLC.
Try Weasel Reader for PalmOS  --  http://weaselreader.org
"This is the most fun I've had without being drenched in the blood
of my enemies!"
        --Sam of Sam & Max




More information about the tfug mailing list