lost some binaries in crash

2003-02-11 Thread Matthew Schibler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

My desktop system had a recent filesystem corruption problem. After
running fsck I discovered I am now missing a few binaries. For example
perl was missing, which I temporarily recovered by copying a working
binary from another debian system. This allowed me to run apt-get (some
portion of dpkg is perl based I think). I recovered a few things. Atleast
what I am aware of. I still have a problem though. I need to know what is
not complete, what files are missing or corrupted.

Is there some way I can check my installed packages against those
available and install what is missing/corrupted?

 Matthew Schibler [EMAIL PROTECTED]
 PGP [gpg (GnuPG) 1.0.6] public key (keyID BA3A22A5) fingerprint:
 FC85 975B 17F3 0855 3F22  97D0 8221 B63E BA3A 22A5
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+SaqpgiG2Pro6IqURAi+UAKC/GdOIWNwrMwVEfy2pkSyGEy5ktQCdE99l
jKb2+IHDnr9LgjrkwGLuMCk=
=39Mn
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: lost some binaries in crash

2003-02-11 Thread Seneca
On Tue, Feb 11, 2003 at 08:59:45PM -0500, Matthew Schibler wrote:
 My desktop system had a recent filesystem corruption problem. After
 running fsck I discovered I am now missing a few binaries. For example
 perl was missing, which I temporarily recovered by copying a working
 binary from another debian system. This allowed me to run apt-get (some
 portion of dpkg is perl based I think). I recovered a few things. Atleast
 what I am aware of. I still have a problem though. I need to know what is
 not complete, what files are missing or corrupted.

Is coreutils (specifically, the md5sum binary) good?

 Is there some way I can check my installed packages against those
 available and install what is missing/corrupted?

Is /var/lib/dpkg/info/ intact?  Each installed package has its md5sums in
there.  You can run (from /):

for PACKAGE in /var/lib/dpkg/info/*.md5sums;
do md5sum -c $PACKAGE;
done

This will output whenever a file cannot be opened (don't worry about not
having locales that you didn't generate) or when the md5sum didn't
match.  One non-corruption cause of non-matching md5sums is diversions,
so you should watch for them. You can find out about diversions and
missing files with dpkg -S foo, where foo is the file that you are
looking for the owner of.

After determining which packages are missing files, just reinstall the
damaged packages (apt-get install --reinstall foo).

-- 
Seneca
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]