My HDD is dying

If none of the more specific forums is the right place to ask

My HDD is dying

Postby marcetm » 2017-04-29 11:11

Hi all,

I've got a HDD that is going to die in a short time. As soon as I realized of this I installed gddrescue package and made a copy of my HDD with this command.

Code: Select all
ddrescue -f -n /dev/sdb image.iso mapfile


that took about five hours telling me:

rescued 485599 MB, errsize: 14507 MB
ipos:500106 MB errors: 2,
opos:500106 MB

Now I'm working with a copy of this image but when I try to mount as explained in https://major.io/2010/12/14/mounting-a- ... -in-linux/ with this command

Code: Select all
mount -o ro,loop,offset=32256 imagen.iso /mnt/loop


I get this error (translated with google translator as my Pc returns the message in spanish):

Code: Select all
 Mount: incorrect file system type, incorrect option, incorrect superlock / dev / loop1 error,
Missing auxiliary code page, or other error

In some cases information is found in syslog - try
Dmesg | Tail or something like that


But "dmesg | tail" either "cat /var/log/syslog" shows nothing about this error

I would like to fsck my image before put it to a new healthy HDD but I'm stuck in this step.

Any help would be appreciated.
marcetm
 
Posts: 129
Joined: 2015-08-02 21:30

Re: My HDD is dying

Postby phenest » 2017-04-29 13:18

marcetm wrote:I've got a HDD that is going to die in a short time...

I don't think I would have done what you did. If it's failing, I wouldn't have submitted it to another 5 hours of solid use to create a backup. If it's failing, you need to give it as little use as possible.

If it had been me, I would have installed the replacement HDD, installed Debian and any software I needed, and then transfer over data from the failing one.

As for gddrescue, I thought that was data recovery rather than for backups.

EDIT: The ISO file you created is probably compressed. Just a guess.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: My HDD is dying

Postby marcetm » 2017-04-29 16:39

I didn't explain it before so I do it now, this HDD was shared by samba in an old box with Debian installed in another HDD. I realized I was in trouble when suddenly disappeared from the folder shared. So I took out this HDD and plugged it into another PC with Debian Stretch. The rest is just like I stated before, now my question is how should I proceed to check the filesystem (ext3) in the image I saved because I'm not able to mount it due to erros in the filesystem.

Thanks
marcetm
 
Posts: 129
Joined: 2015-08-02 21:30

Re: My HDD is dying

Postby phenest » 2017-04-29 16:58

Are you sure the offset is correct. Don't just use what you saw in that guide. The guide did tell you how to find the correct offset.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: My HDD is dying

Postby marcetm » 2017-04-29 17:34

phenest wrote:Are you sure the offset is correct.


No, I'm not sure, but casually if I type:

Code: Select all
fdisk -l image.iso

I get the same figures 63 as sectors start ahead and 512 as bytes long so I guess the offset is the same as in the guide.
marcetm
 
Posts: 129
Joined: 2015-08-02 21:30

Re: My HDD is dying

Postby phenest » 2017-04-29 18:00

Hmm. Every computer I have (including VM's) show a start sector of 2048.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: My HDD is dying

Postby marcetm » 2017-04-30 15:36

Then, the offset for those machines will be diferent.
marcetm
 
Posts: 129
Joined: 2015-08-02 21:30

Re: My HDD is dying

Postby marcetm » 2017-05-02 13:10

Finally, I've bought a new SATA unit and cloned my image to it with the command:

Code: Select all
ddrescue -f imagen.iso /dev/sdb


then:

Code: Select all
e2fsck -v -f  /dev/sdb1


And now most of the information has been recovered. That's not exactly what I wanted to do but it did the work.
marcetm
 
Posts: 129
Joined: 2015-08-02 21:30


Return to General Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable