LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Drive Failure - Restore from drive/partition image? (https://www.linuxquestions.org/questions/linux-general-1/drive-failure-restore-from-drive-partition-image-506678/)

dkuntz 12-01-2006 06:21 PM

Drive Failure - Restore from drive/partition image?
 
One of our drives on a system that for some reason was not backed up (set up prior to me...) failed, OS wise. I backed up the important partition using dd if=/dev/hda3 of=/backup/hda3.dd, however, it is not allowing me to mount that image (mount -o loop -t ext3 /backup/hda3 /mnt)

I dont need the drive image to be bootable, etc.. I need to be able to just get the account data off of the /home directory, and some files from /etc. I have the drive running on a new install now.

The error I'm getting is:
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)

I attempted to actually repair the original drive, though it seemed to be totally fried (oh, every single inode had errors when running fsck, etc).

Is there any way to recover the data off the partition image. It's rather large (70gig)


Thanks for any help y'all can give (if any:D)

--Doug

Lenard 12-01-2006 07:34 PM

Try again this time use; mount -t ext3 /backup/hda3.dd /mnt -o loop

dkuntz 12-01-2006 10:48 PM

Quote:

Originally Posted by Lenard
Try again this time use; mount -t ext3 /backup/hda3.dd /mnt -o loop

Still no go. I did have to run mke2fs -S on the original partiton, as the superblock info was all trashed. I basicly followed the steps from: hxxp://shon.org/blog/?p=25

dkuntz 12-02-2006 02:35 AM

Quote:

Originally Posted by dkuntz
Still no go. I did have to run mke2fs -S on the original partiton, as the superblock info was all trashed. I basicly followed the steps from: hxxp://shon.org/blog/?p=25


Ah, got it working, mostly.. just had to run a full fsck on the image, and it worked (took like 6hrs though).


All times are GMT -5. The time now is 04:41 AM.