Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 09-25-2008, 12:42 AM   #1 (permalink)
 
Banned

Join Date: Mar 2006

Location: North Sexyville

Posts: 295

Metal Chaos is an unknown quantity at this point

Default Urgent: Linux Guru Needed.

A friend of mine who runs a website experienced a severe crash recently. He needs help from anyone who knows anything about restoring a Red Hat Linux server after the partitions were destroyed.

If you will be able to help please post here immediately for more info.
Metal Chaos is offline  
Old 09-25-2008, 01:59 PM   #2 (permalink)
 
Junior Techie

Join Date: Aug 2008

Posts: 42

brad8266 is on a distinguished road

Default Re: Urgent: Linux Guru Needed.

I sure hope he was running an archived backup someplace. If he knows what the partition table was he could just recreate it on a live cd and go from there. If not its going to be a bit harder. I use disk patch to easily recover lost partitions and I believe it works on linux partitions also.
brad8266 is offline  
Old 09-25-2008, 03:10 PM   #3 (permalink)
 
Banned

Join Date: Mar 2006

Location: North Sexyville

Posts: 295

Metal Chaos is an unknown quantity at this point

Default Re: Urgent: Linux Guru Needed.

Anyone willing to help him out via email? He really needs the help.
Metal Chaos is offline  
Old 09-25-2008, 05:17 PM   #4 (permalink)
Saxon's Avatar
 

Join Date: Feb 2007

Posts: 6,362

Saxon is just really niceSaxon is just really niceSaxon is just really niceSaxon is just really nice

Default Re: Urgent: Linux Guru Needed.

Was he hosting this himself or was it hosted else ware? if elseware he will need to contact there support department of the host in question. Has he got a back up of the data?
__________________
I am not here for long I am deploying soon so please don't expect anything long winded.

Saxon is offline  
Old 10-02-2008, 02:28 PM   #5 (permalink)
ElDiPablo's Avatar
 
Newb Techie

Join Date: Oct 2008

Location: San Diego, CA

Posts: 12

ElDiPablo is on a distinguished road

Send a message via MSN to ElDiPablo
Cool Re: Urgent: Linux Guru Needed.

I hope he was making backups...

However, if he was smart, and saved all of his web server files on a separate partition from the system partition, he could use a LiveCD like Knoppix to boot up and recover the files, then just rebuild the server.

-EDP

Last edited by Mak213; 10-02-2008 at 02:47 PM. Reason: No advertising
ElDiPablo is offline  
Old 10-03-2008, 01:07 AM   #6 (permalink)
 
Newb Techie

Join Date: Oct 2008

Posts: 5

nonickch is on a distinguished road

Default Re: Urgent: Linux Guru Needed.

you description is the least informative possible.

What do you mean crash? What's the problem?

I'm assuming from the trashed partitions part that the partition table somehow got trashed and it's not a major hardware failure (at least an hdd one).

The first thing to do in such situations if your data is so important (and you stupid enough not to backup) would be to make an image of the disk as soon as possible.
No reboots and other attempts since this could aggravate the problem if it's the impending hdd failure of doom.

Stick your disk in a diferent pc, boot linux and if I remember the syntax correctly it's
"dd if=/dev/hdX of=/somepath/to/image/file"

hdX ofc refers to the connectiont hat the disk that needs saving can be plugged into like hdb.
Since you said the partition table is dead I'm assuming that there were multiple partitions on a single disk but they are no longer recognizable. If that's not the case make files for /dev/hdb1 and /dev/hdb2 and so on for all the partitions in place.
If you start getting read errors (case where disk is dying) try reading the dd manpage so you can substitute the read errors with zeroes in order to at least get all the available data.

If all is good:
Now, you can mess around all you want with the disk or try and mount the file as a device in the new linux. You can do that with the mount command ofc and some RTFM on the manpages. Not that tough.
If it all goes well you can mount the file and pull all the files you need from there.

If there were multiple partitions on the disk and the partition table was shot:
If it doesn't work, you're in deep **** but I've seen people swim out of there.
If there were multiple partitions and you lost their location (saved as an entire disk image) then i have no idea how to exactly fix that. It is possible if you remember exatly their sizes or are an fs expert and just can spot the beggining/end of the partition (reading some manuals and grepping the disk for the telltales might do the trick. Then just recreate partitions with exactly the same size and no fromatting).
Ah, just remembered. Ext2/3fs at least saves copies of the partition table in different locations of the disk. Try to retrieve them if necessary, don't know the tool, read manpages.

*partitions ok and fs is just shot (mount refuses to identify/mount the image):
Try reading manpages of fsck that apply to the filesystem your friend has (assuming ext2/3?). You may be able to save the most/some files and retrieve them from lost+found directory once fsck is done.

If nothing works or you want to skip all work:
It depends on what files you want to take out. Small text files can usually be extracted by a simple grepping of the disk image and hoping they weren't fragmented.
Larger files too if they weren't fragmented (if I remember correctly ext filesystems have minimal fragmentation going around) and you know what to grep for + can discover the header/footer of the file.


Ok, there's no way I'm proofreading all of this. I'm in an insomniac stage and most/all of what I've written may make no sense or help you discover the meaning of life.
nonickch is offline  
Old 10-10-2008, 10:58 PM   #7 (permalink)
 
Banned

Join Date: Mar 2006

Location: North Sexyville

Posts: 295

Metal Chaos is an unknown quantity at this point

Default Re: Urgent: Linux Guru Needed.

I'm trying to find out more info from him but he's not replying.
Metal Chaos is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Useful list of Linux websites. tribalsun Linux, BSD, other *nixes & Open Source Software 33 11-30-2008 12:35 AM
Linux Software: Backup Solutions Osiris Linux Tips and Tricks 3 07-25-2008 01:04 AM
New with Linux MindHacked Linux, BSD, other *nixes & Open Source Software 8 04-16-2008 09:18 PM
Big Big Urgent Urgent Urgent Help Needed...plssssss krazyq Hardware Troubleshooting 25 12-28-2007 11:49 AM
Want to make the move to Linux for good...advice? BoysNightOut Linux, BSD, other *nixes & Open Source Software 25 05-16-2007 11:40 AM