Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

recover data

Status
Not open for further replies.

richardko

Programmer
Jun 20, 2006
127
US
Hi,
One of the webservers that I manage crashed last week and I need to recover the data. I have the hard drive and when I try to boot it locally I get "kernel panic". I dont have the exact error.
I tried to set it up as a slave drive. The ide cable for the computer I was trying to set it up on had only two cable connections. One for Regular Master drive and the second one for the cd-rom. I disconnected the one for cd-rom and connected it to the crashed drive. When I started the server and went to /dev/ folder I did not see either /sda or /hdb.
I only saw /hda for the master drive.
I am not sure about my next step.

The crashed server was running FC4 and the server I am trying to slave it on is running FC6. Any thoughts on how to move ahead here?

Thanks
ro
 
If the hard drive you are trying to recover was once a master, you may need to change jumpers' settings before plugging it as a slave.

try start with a linux install disc and typing
"linux rescue" at boot prompt.
Existing kernel and modules on the harddrve are configured for different hardware.

QatQat

If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
hi,
thanks for the reply. I did change the jumper settings on the crashed drive. Also, when booting I cant even get to the boot prompt. The "kernel panic" seems to be almost instantaneous.
 
Hi richardko,

I said "try start with a linux install disc"

That way you will get to the the normal install prompt

something like


boot:


type "linux rescue"

yo will be taken in a very unsexy minimal shell environment where you will probably have to chroot to /mnt/sysimage to find your working linux install (if you are using redhat).

Once in there you can trouble shoot everything you need to.


QatQat

If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
thanks for the input QatQat

I tried using mount on another computer and I can read the files . I am trying to compress the html/ folder using :

tar xzvf html.tar html/

but I am getting error like this:

Cannot stat: Input/output error on some image files. Any idea what that error might be?
 
Run a fsck.extX on that filesystem.

That message usually appears on corrupted filesystems or unaccessible files.

QatQat

If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
if you want to put both folders in the archive.

normally

tar -cvzf /dest_folder/tar.gz /folder_to_backup

I would also add the "v" verbose option and "p" to presrve users and groups permissions.

example

tar -cpvzf /dest_folder/tar.gz /folder_to_backup

QatQat

If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top