Mounting a hard-drive on secondary ide
I inadvertently renamed /lib to /lib1 on a system running linux kernel 2.x and as expected the system went beserk. I am saying this at the risk of being ridiculed so that some novice may be careful while dealing with system folders. Well i did that because i wanted to redirect the system libraries to a different folder but somehow goofed up.
Nonetheless i wanted to recover from this puddle so i reinserted this boot drive into a secondary ide of another linux system (8.x kernel 2.19x).
the system detected the partition table on the secondary ide and i
particularly mounted /dev/hdc5 the linux partition on /mnt/restoredrive
as mount -t reiserfs /dev/hdc5 /mnt/restoredrive
(no other mount types succeeded and the hardrive had windows xp + linux)
however when i did an ls /mnt/restoredrive it gave the following type of
error messages for each file under \ on the restoredrive
ls: \mnt\restoredrive\bin no such file or directory
ls:\mnt\restoredrive\usr no such file or directory
and so on for each file under \.
as you might have figured out that my intent is to be able to rename lib1 as :
mv /mnt/restoredrive/lib1 /mnt/restoredrive/lib
if i did a cat on any of these files it saild stat failed on the files.
so i guess linux hasn't been able to successfully mount the file system.
Any solutions are most welcome.
Last edited by linuxjuggler; 12-16-2003 at 01:47 AM.