Solved

RedHat 7.1 Problem

Posted on 2002-04-22
2
209 Views
Last Modified: 2013-12-15
I accidentally moved (instead of copy) all the files from my /lib directory to /tmp.  Now I'm unable to log in to the system.

Can I create a boot disk from another RedHat system, and use that to gain access to the file system of the ailing machine, then copy the files back?

0
Comment
Question by:Zoplax
2 Comments
 

Accepted Solution

by:
iandunn earned 200 total points
Comment Utility
Creating a boot disk from another RH box might work assuming it's running the same kernel. If not, you can try a couple things:

1) If you're using LILO, at the prompt type "linux single", where "linux" is the whatever label you gave the RedHat instillation in question when you set it up. "Linux" is the default.

2) Create a root disk. It's like a generic boot disk that'll let you mount the partition and copy files. Tom's RTBT is a good one; you can download it at http://www.toms.net/rb/

3) Boot to your RedHat CD. I think there's a rescue option somewhere in there which'll boot the kernel and you can mount the partition and copy the files back.
0
 
LVL 6

Author Comment

by:Zoplax
Comment Utility
I tried Tom's RTBT but it didn't quite do the trick; I didn't have info handy on the partitions on the system which needed to be mounted.  

I used the RedHat boot CD though and that worked great; it enumerated the existing file system and allowed me to undo the damage I did.

Thanks for the quick help.  :D
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now