RedHat is actually good for what you used it for, and 5 years for an Optiplex 
is surely commendable. 
Get another hdd , then will try to walk you through the steps.
now do you want the same system kept, a possibility, but damage might have 
allready be too great to the original setup, so duplicating the partition 
might not be your solution. 
the command line for doing this is as follows:

dd if=/dev/hda of=/dev/hdc -o noerror

provided your old disk is /dev/hda and the new replacement disk is hooked 
on /dev/hdc
also note that your new disk must be of equal or larger size than the old one.

the other option is to backup your web stuff and your database , swap the 
drives, format and reinstall the same distro again, restore your stuff.

and note that you will need to put the backup files onto another hdd or usb 
drive not the stricken one :-)

tar czf /where_you_mounted_your_removable_media/webstuff.tar.gz /var/www/ 
and
tar 
czf /where_you_mounted_your_removable_media/databasestuff.tar.gz /var/lib/mysql 
Note: i should be wrong and ugly to recommend this option. ^^^^
you should properly dump your database into a big sql file and restore that on 
your new installation.

Cheers
Szemir




On March 11, 2008 13:12, Gerald Perkins wrote:
> I've a old Dell Optiplex GX1 which I've been using for web serving for
> about 5 years now.  I installed RedHat (sorry), PHP and MySQL at that time
> and the machine has ticked along brilliantly since then.  I could be the
> advertisement for why even idiots can really install and use Linux.  I
> totally acknowledge my ignorance on the hardware and OS side of things. 
> The disk is dying and at the instruction of the OS when it rebooted a month
> or so ago, I got bad blocks tagged and the system working.  It's getting
> worse and I now can't connect with Gnome which I was using as my interface.
>  What I need is HELP.  Could anyone please give me the name of a tech' who
> can install a new harddrive and get me back up and running?  Ideally,
> someone not overly expensive who can put up with my complete ignorance
> without resorting to violence.  I've checked on Craigslist and only get PC
> related support tech's.  Linux tech's are hiding.
>
> Thanks,
>
> Gerry Perkins

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to