[779] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

getting to e2fsck

daemon@ATHENA.MIT.EDU (Loon)
Wed Nov 8 13:07:58 1995

From: Loon <i942299@redgum.bendigo.latrobe.edu.au>
To: linux-scsi@vger.rutgers.edu
Date: Wed, 8 Nov 1995 09:57:16 +1100 (EST)


(while this isn't purely linux-scsi related, someone on the list asked
about it and it is a useful trick when your system breaks down)

in relation to (not) being able to run e2fsck when you use the boot disks,
to the best of my knowledge the reason is because the boot disks come with
a stripped down version of the libraries... the 'not found' is the best
message the system can come up with, what it actually means is that it
can't find one or more components needed to run the program

(i was in a very similar situation a little while back due to scsi bus
hangs)

the way i got around it was to mount my file system read-only (important
if you are going to check it) on /mnt (this file system was my root
filesystem so i had to use the libraries on it even tho it may have been
corrupt)

so okay... mount your root partition on /mnt
mount /dev/sda1 /mnt -r or something similar

now, / refers to the boot disk, /mnt/ refers to your root partition

(i can't remember the exact details of the following but here goes...)

in /etc there is a file called ld.so.conf
in /mnt/etc there is the same file that is used by your normal root
partition when it is in use

edit the one in /etc and add some directories like /mnt/lib to the start
of the file (that one directory may be all you require!) check your
/mnt/etc/ld.so.conf for other directories you might need, remeber to put
/mnt in front of them

run ldconfig which should parse the /etc/ld.so.conf file and update the
/etc/ld.so.cache file with references to your /mnt/lib directory, where
the *proper* version of the libraries are kept

if that doesn't work, try copying some of the ld.so files from /mnt/lib
to /lib, but i think the above works just fine

mail me if it doesn't work or you didn't understand me and i will retrace
my steps and mail you exact instructions (is this contained in a faq
anywhere?)

james
-- 
LOON

stay away from me. i'm wierd.

GCS d-? s:-- a--- C++(++++) UL++++ P+ L++>++++ E- W++ N++ K- w(---) O-
    M-- V(--) PS+ PE- Y+ PGP- t 5 x+ R(+) !tv l++ DI(+) D+ G e>++(*)
    h-(---) r++ y?

just another nerd with something in his sig about the information
super highway.....


home help back first fref pref prev next nref lref last post