Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Guys I need help to recover my external hard disk.

Im using SEGATE FREEAGENT GO 320gb HDD. Recently I tried to format it using command line in win7, but accidentally I removed the hdd before the format is complete and I cannot open it and I tried to recover data using as many software's as I can but no use I have max of 25000 bad sectors. Can i still recover my hdd?

Is there any way to recover my HDD with max bad sectors using Linux?

share|improve this question
    
sorry its 320gb hdd –  Ajay0990 Nov 18 '12 at 5:45
add comment

1 Answer 1

First if your just trying to get the drive working again then try:

dd if=/dev/zero of=/dev/sdx bs=1M

make sure to change /dev/sdx to the correct drive

This will basically erase anything and everything on the disk by writing 0s to it. Use with case (you will need to use sudo, I left it out for safety)

Once the disk is erased totally (dd should take a long time, maybe even hours) then go ahead and try to use fdisk to partition the drive.

fdisk /dev/sdx

Again this will erase data so use with care and make sure you have the right disk. Finally create a new primary partition, number 1, when asked for start sector, press enter (accepting the default), and do the same (accept the default) when asked for the end sector.

Finally format the partition by running

mkfs.ext4 /dev/sdx1

This will make the drive ready to use in Linux using the ext4 file system with sensible defaults.

If you truly have bad sectors (and it's not just some odd happenstance from your aborted format) Throw the disk out and go get a new one. The are dead cheap, and a disk that has bad sectors will just continue to get worse. I would try the wipe first though. Your "bad sectors" are most likely not bad. I haven't see bad sectors in years (like back when 20GB was a lot of data, and that was the biggest drive you could ever get).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.