Solved

RedHat 7.1 Problem

Posted on 2002-04-22
2
212 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VMWare 6 crashing 14 99
change time in cron 4 67
Anything Suspicious in this Report Email on Linux Server 4 40
nagios 4 php error after installation 6 80
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
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 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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

863 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

27 Experts available now in Live!

Get 1:1 Help Now