Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

My HDD is dying

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
marcetm
Posts: 135
Joined: 2015-08-02 21:30

My HDD is dying

#1 Post by marcetm »

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.

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: My HDD is dying

#2 Post by phenest »

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.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

marcetm
Posts: 135
Joined: 2015-08-02 21:30

Re: My HDD is dying

#3 Post by marcetm »

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

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: My HDD is dying

#4 Post by phenest »

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.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

marcetm
Posts: 135
Joined: 2015-08-02 21:30

Re: My HDD is dying

#5 Post by marcetm »

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.

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: My HDD is dying

#6 Post by phenest »

Hmm. Every computer I have (including VM's) show a start sector of 2048.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

marcetm
Posts: 135
Joined: 2015-08-02 21:30

Re: My HDD is dying

#7 Post by marcetm »

Then, the offset for those machines will be diferent.

marcetm
Posts: 135
Joined: 2015-08-02 21:30

Re: My HDD is dying

#8 Post by marcetm »

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.

Post Reply