Re: ReiserFS and a dying hard drive

From: ray (ray_at_zianet.com)
Date: 10/19/05


Date: Wed, 19 Oct 2005 11:55:02 -0600

On Wed, 19 Oct 2005 08:39:31 -0700, chadseo wrote:

> My hard drive has decided it's time to be retired, and is trying to
> take as much data with it as possible. I know, I know, backups.
> Anyway, I was able to get most of what I needed, except for one
> directory. In the /var/ directory, 'lib' shows up as a file, not a
> directory. I assume I'll have to do something fancy like edit the
> inode to show as a directory, not a file, but I don't know, I'm a
> little out of my league here. I've done inode editing on an ext2
> filesystem years ago to recover deleted files, but ReiserFS seems to do
> things sufficiently differently that I'm lost. Any help would be most
> appreciated.
>
> Thanks in advance!
> Chad

I went through the dying hard disk a few weeks ago and retrieved all the
data from it. Here's what I recommend based on my successful recovery.

1) DON'T MOUNT THAT DISK AGAIN. Install a new disk immediately and install
whatever distro you like on it (if you have not already done so).

2) boot a live CD or your new install on a new disk.

3) copy the partition(s) you want data from using a command of the form:

dd if=/dev/hdb5 of=backupname conv=noerrors conv=sync

This will copy the partition of interest to a file. You need noerrors to
skip past any bad blocks and you need sync to fill in bad blocks with
zeros rather than just omit them.

4) now mount via loop the backupname file made with dd. You'll find that
you can reiserfsck the file if you want, but it will probably tell you
everything is fine. Just look through the loop mounted file system for the
data you want. I recovered a 9 gb and a 14 gb partition from a failing
disk and retrieved every file in which I was interested.



Relevant Pages

  • Re: A Disk Read Error Occured. Press CTRL+ALT+DEL to restart
    ... can boot and recover data. ... > to install it as a slave and buy some kind of 3rd party software to try to ... >> reformat can lock out bad sectors, if the disk is going bad, chances are ... >> That way if you ever have to reinstall the OS, ...
    (microsoft.public.windows.mediacenter)
  • Re: Dynamic Disk Woes - help me recover my data!
    ... > I booted to an XP Pro CD, and formatted the foreign disk (the Redhat ... > partition) and put a fresh install there. ... I know she was eager to recover all of ... it couldn't boot. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Any method to recover, backup, and restore when 2nd re-install already completed
    ... > recover program files when XP re-install selected and completed ... > from a corrupted registry that prevents Windows XP from starting" ( ... > instead of the first one which was to install XP. ... > operating system disk items that have been reinstalled. ...
    (microsoft.public.windowsxp.general)
  • Re: Backing up to hard disk - how large?
    ... > "Kevin Weilbacher" wrote in message ... >> As far as backups to recover a particular file, ... >> tape or disk backup! ... >>> several backups from successives days in case someone needs to ...
    (microsoft.public.backoffice.smallbiz2000)
  • RE: Dynamic Disk Woes - help me recover my data!
    ... it was so screwed up with malware. ... > I booted to an XP Pro CD, and formatted the foreign disk (the Redhat install ... > partition) and put a fresh install there. ... I know she was eager to recover all of her ...
    (microsoft.public.windowsxp.hardware)