[NTLUG:Discuss] Any way to find what files I'm missing?
Cliff - NTLUG
ntlug at pervy.custard.org
Sun Jun 30 21:58:42 CDT 2002
I didnt see anyone actually give a reply to this message on the list (maybe
someone helped off the list). Sorry for delay in replying - been out of town
for last week or so - most likely this advice is useless now for you - but
maybe for future reference.
I would recommend 1stly to look within the lost+found directory of the
partion where files were lost (assuming your using ext2 or ext3 - pretty
certain lost+found is an ext only thing), most likely the fsck program
placed these files within lost+found as their inode number. To figure out
what the file is you can use the command file to determine the type of file
it is and then try using cat or strings command to review its contents and
hopefully figure out what the file was and copy it back to its origional
location.
Typical entry within lost+found would look something like #54353
file "#54353"
cat "#54353"
strings "#54353"
cp "#54353" /correct/location/file-name
I strongly suspect that the updatedb command has updated your database used
for lcoate by now, but if you wished to use that database you could try
something like:
locate / | sort > locate-data-base-files
find / -print | sort > currnet-files
then run commands such as uniq or diff to compare the contents of the files
looking for differences.
Cliff.
----- Original Message -----
From: "Lance Simmons" <lance at lsimmons.net>
To: <discuss at ntlug.org>
Sent: Saturday, June 22, 2002 11:23 AM
Subject: [NTLUG:Discuss] Any way to find what files I'm missing?
> This morning I had a mishap with ext3 journaling, and the resulting fsck
> deleted several of my files. I'm not sure how many were lost.
>
> Is there any way to employ the database used by "locate", to compare
> that to the files I have left right now?
>
> --
> .~.
> /V\ Lance Simmons
> /( )\ lance at lsimmons.net
> ^^-^^
>
> It is impossible to experience one's death objectively and still carry a
tune.
> -- Woody Allen
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list