[mdlug] Flakey hard drive

Morris, Tim tmorris at ugs.com
Wed Aug 22 09:15:07 EDT 2007


Ugh
I forgot the <>

<http://www.howtoforge.com/back_up_restore_harddrives_partitions_with_gh
ost4linux>


--  Tim Morris - UGS PLM Software

-----Original Message-----
From: mdlug-bounces at mdlug.org [mailto:mdlug-bounces at mdlug.org] On Behalf
Of Morris, Tim
Sent: Tuesday, August 21, 2007 9:40 AM
To: MDLUG's Main discussion list
Subject: Re: [mdlug] Flakey hard drive

Sorry.. I didn't "check mail" first.

You may want to try this next time, it might be easier:

http://www.howtoforge.com/back_up_restore_harddrives_partitions_with_gho
st4linux



--  Tim Morris - UGS PLM Software

-----Original Message-----
From: mdlug-bounces at mdlug.org [mailto:mdlug-bounces at mdlug.org] On Behalf
Of Morris, Tim
Sent: Tuesday, August 21, 2007 9:05 AM
To: R. Kannan; MDLUG's Main discussion list
Subject: Re: [mdlug] Flakey hard drive

cd /some/source/path
tar -cvf - * | (cd /some/dest/path; tar -xf -)

Note, this will not copy . files, unless you change the * to a source
directory, like /some/source/path/dir, so
tar -cvf - dir | (cd /some/dest/path; tar -xf -)

I use it all the time.

--  Tim Morris - UGS PLM Software
-----Original Message-----
From: mdlug-bounces at mdlug.org [mailto:mdlug-bounces at mdlug.org] On Behalf
Of R. Kannan
Sent: Saturday, August 18, 2007 5:05 PM
To: R. Kannan; MDLUG's Main discussion list
Subject: Re: [mdlug] Flakey hard drive

I realized 'cp' in step #4 is a bad idea as it normally follows links.
Can I tar up all the files to the new partition and untar instead?

Thanks

-----Original Message-----
>From: "R. Kannan" <rkannan at peoplepc.com>
>Sent: Aug 18, 2007 4:49 PM
>To: MDLUG's Main discussion list <mdlug at mdlug.org>
>Subject: Re: [mdlug] Flakey hard drive
>
>All,
>
>The drive was readable and so I decided to copy the contents to a new
drive (of larger capacity) and start booting from the new drive. This is
what I did so far (after booting up in knoppix)
>
>1) Install hardware making the new hard drive master (hda) and the old
drive slave (hdb)
>2) Create Windows and Linux partitions on the new drive (hda) similar
to those on old (hdb)
>3) Make 'Windows-C' and /boot partitions bootable
>
>This is what I plan to do (after booting up in knoppix)
>
>4) Copy contents from the partitions in hdb to those in hda. Can I just
use a 'cp' command to do this or is it faster with 'dd'? Should I do
fsck on the old partitions before I mount/copy?
>5) Edit the /etc/fstab file in hda '/' partition to reflect the new
partition locations
>6) Edit '/boot/grub/menu.lst' in hda '/boot' partition to reflect new
locations of bootable partitions
>7) Install grub on MBR of hda and reboot (See Carl T Miller's note
earlier this month to the list).
>
>Is there anything else I need to be doing or be careful about?
>
>Thanks in advance for your help.
>
>
>-----Original Message-----
>>From: "R. Kannan" <rkannan at peoplepc.com>
>>Sent: Aug 7, 2007 9:38 AM
>>To: MDLUG's Main discussion list <mdlug at mdlug.org>
>>Subject: Re: [mdlug] Flakey had drive
>>
>>Thanks for all those who replied (and thanks Rich for fixing the mail
server and open up the floodgates). I will try some of the suggestions
this week and report back.
>>
>>-----Original Message-----
>>>From: "Carl T. Miller" <millerc at cantonpl.org>
>>>Sent: Aug 7, 2007 9:02 AM
>>>To: MDLUG's Main discussion list <mdlug at mdlug.org>
>>>Subject: Re: [mdlug] Flakey had drive
>>>
>>>R. Kannan wrote:
>>>> The hard drive on my desktop has become flakey. Sometimes, it boots
fine
>>>> but fails to access data. When I booted on knoppix CD, noppix
recognized
>>>> the partitions and set up the fstab file correctly but I could not
mount
>>>> the partitions.the 'mount' command just hung in there. I tried
'cfdisk'
>>>> but it couldnot find the hard disk.
>>>>
>>>> Is there a way to try and do a fail-safe access just to get at the
data
>>>> (disable dma etc.)? Any advice is appreciated.
>>>
>>>I'm not sure what I would do in this situation.  Normally if
>>>a hard drive is getting flakey, I'll boot from a Knoppix CD
>>>and use dd to make a copy of each partition of the drive.
>>>You can then safely experiment with the copies.
>>>
>>>You may want to run gpart (it's on the Knoppix cd) to see
>>>if the guessed partition table matches the partitions found
>>>at boot time.  If they don't match, I'd back up the current
>>>MBR (not to the same hard drive!), write the new values with
>>>gpart and reboot.  It's possible that will fix everything.
>>>If not, you can write the old MBR back and it will be just
>>>like you found it.
>>>
>>>c
>>>
>>>
>>>_______________________________________________
>>>mdlug mailing list
>>>mdlug at mdlug.org
>>>http://mdlug.org/mailman/listinfo/mdlug
>>
>>
>>________________________________________
>>PeoplePC Online
>>A better way to Internet
>>http://www.peoplepc.com
>>_______________________________________________
>>mdlug mailing list
>>mdlug at mdlug.org
>>http://mdlug.org/mailman/listinfo/mdlug
>
>
>________________________________________
>PeoplePC Online
>A better way to Internet
>http://www.peoplepc.com
>_______________________________________________
>mdlug mailing list
>mdlug at mdlug.org
>http://mdlug.org/mailman/listinfo/mdlug


________________________________________
PeoplePC Online
A better way to Internet
http://www.peoplepc.com
_______________________________________________
mdlug mailing list
mdlug at mdlug.org
http://mdlug.org/mailman/listinfo/mdlug
_______________________________________________
mdlug mailing list
mdlug at mdlug.org
http://mdlug.org/mailman/listinfo/mdlug
_______________________________________________
mdlug mailing list
mdlug at mdlug.org
http://mdlug.org/mailman/listinfo/mdlug



More information about the mdlug mailing list