Solved

RedHat 7.1 Problem

Posted on 2002-04-22
2
217 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
ID: 6960834
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
ID: 6961860
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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

685 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