Re: dead disk data recovery
From: Peter D. (psd_at_c17.home.invalid)
Date: Tue, 23 Mar 2004 10:26:05 +1100
Henrik Carlqvist wrote in comp.os.linux.hardware:
> Maybe this is a good time to tell youre freind about some good backup
The subject came up almost immediately.
> No, you should never mount the enitre disk (like hdc) when it has
O.K. How about /accessing/ the entire drive with dd in an attempt to
copy the entire disk - including partition structure?
> When trying to do a rescue you should probably also not try to
> mount a partition on a broken disk.
Well certainly not read_write, but read_only. That is not going to
do anything bizarre like try to update access times, is it?
BTW It is a Windows disk, so it won't actually have access times.
> This depends a bit upon
> what you are trying to rescue. If you are only trying to rescue a
> single or a few files you could try to mount the partition read only
> and then try to save the files.
Only a few.
> If you are trying to save the entire contents you should instead doing
> dd of entire partitions to image files. If you are doing dd you should
> not mount anything from the broken disk first. Once the copies are
> done you might be able to mount the images. Something like:
> dd if=/dev/hdc1 of=/var/tmp/hdc1_rescue.img mount -o loop,ro
> /var/tmp/hdc1_rescue.img /mnt/hd cd /mnt/hd
> tar -cf - . | (cd /mnt/partition/on/new/disk ; tar -xvf -)
There must be some newlines or semi-colons missing from that.
This is what I think you meant.
dd if=/dev/hdc1 of=/var/tmp/hdc1_rescue.img
mount -o loop,ro /var/tmp/hdc1_rescue.img /mnt/hd
tar -cf - . | (cd /mnt/partition/on/new/disk ; tar -xvf -)
Is it necessary to mount the image read only? I guess it can't hurt.
Thank you Henrik.
-- Sig goes here... Peter D.