LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2003, 11:51 PM   #1
linuxjuggler
LQ Newbie
 
Registered: Dec 2003
Distribution: red-hat
Posts: 2

Rep: Reputation: 0
Question 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

Last edited by linuxjuggler; 12-16-2003 at 12:47 AM.
 
Old 12-16-2003, 12:15 AM   #2
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding New Hard Drive as Secondary Master derek8128 Linux - Newbie 4 10-24-2005 08:46 AM
How can I mount my secondary hard drive on boot? Scorlibrian Linux - Hardware 1 02-26-2005 11:36 AM
formatting a secondary hard drive Bronzzy Linux - Newbie 2 03-27-2004 11:02 AM
Mounting a linux partition on my secondary IDE linuxjuggler Linux - Newbie 1 12-17-2003 01:58 PM
URGENT!!! adding ide(hdb-secondary hard-disk) to redhat 7.1 gigya Linux - Software 3 05-02-2002 04:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration