LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting a hard-drive on secondary ide (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-a-hard-drive-on-secondary-ide-126238/)

linuxjuggler 12-15-2003 11:51 PM

Mounting a hard-drive on secondary ide
 
Hi there:


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.

Thanks,
amit

ugob 12-16-2003 12:15 AM

maybe try fdisk /dev/hdc5 to see what kind of partition you'ver got there.

Have you tried without specifying the type? it might guess corrrectly.

try just mount alone, it will give you all your mountpoints.


All times are GMT -5. The time now is 01:25 PM.