Solved

RedHat 7.1 Problem

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
linux installs 6 59
Printing to old printer through Linux (CUPS) Print Server? 7 62
Error Message during CentOS 7 Minimal Install 3 41
android secure ftp 3 31
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
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…
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.

813 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