Solved

RedHat 7.1 Problem

Posted on 2002-04-22
2
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

AWS Certified Solutions Architect - Associate

This course has been developed to provide you with the requisite knowledge to not only pass the AWS CSA certification exam but also gain the hands-on experience required to become a qualified AWS Solutions architect working in a real-world environment.

Question has a verified solution.

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

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.…
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 how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses

628 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