Re: dead disk data recovery

From: Peter D. (psd_at_c17.home.invalid)
Date: 03/23/04

  • Next message: Bill Marcum: "Re: Help! RTL8139"
    Date: Tue, 23 Mar 2004 10:26:05 +1100
    
    

    Henrik Carlqvist wrote in comp.os.linux.hardware:

    [snip]
    > Maybe this is a good time to tell youre freind about some good backup
    > strategies.

    The subject came up almost immediately.

    [snip]
    > No, you should never mount the enitre disk (like hdc) when it has
    > partitions.

    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
            cd /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.
    

  • Next message: Bill Marcum: "Re: Help! RTL8139"

    Relevant Pages

    • Re: Help Failing Disk Problem
      ... and the FreeBSD OS on a hard disk that is failing. ... Either use sysinstall to slice and partition ... fdisk, bsdlabel and newfs. ... 512 MB I mount as /tmp ...
      (freebsd-questions)
    • Re: Status of SSDs under Fedora ?
      ... SSD using gparted. ... I have not done any disk optimizations whatsoever. ... Also below is a crude perl script called by udev to "hotplug" mount ... If the partition is ext4 and the disk supports TRIM the "discard" mount option is also set ...
      (Fedora)
    • Re: Relabel partition didnt work
      ... > You're confusing disk lables with mount points. ... > When installing etch, at some point partman asked for a mount point for ... > that partition and I entered /xyz. ... There's nothing to do to the second hard disk. ...
      (Debian-User)
    • Re: why doesnt mount mount?
      ... Mount command require that you specify the devce and the point where ... this case is on the disk labeled hd0 and is operated by the driver (or ... I am trying to mount a disk with only one partition onto the file ... should this be added to the file system prior to using the command mount? ...
      (comp.os.minix)
    • Re: Replace SCSI Drive
      ... Since I do have the 'newer' drive currently installed at home, I would like to do to 'new' disk setup here first, that way, I can take to machine down for as short a time as is possible. ... Boot the machine using the fixit shell, and mount the new partitions and the old partitions as Jerry explained below, ... Using my windows box, FDISK and set up the disk slices at home, using some kind of FreeBSD boot disk. ... It will show one c partition ...
      (freebsd-questions)