Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My external HDD is not detected in Windows Editions. But it is working well in Ubuntu. The problem is, some of the tracks are damaged, so while browsing through the HDD, the 'Nautilus' stops working. I could not copy those files too. What is the command line arguments should I use to skip the damaged file and copy healthy files.

share|improve this question

If you're unable to copy file by file, use ddrescue to copy the entire partition block by block. ddrescue will just copy the good blocks, leaving the space in the image file where the bad blocks were.

General usage is like this:

sudo ddrescue -n /dev/sda1 sda1.img sda1.log
sudo ddrescue -r3 /dev/sda1 sda1.img sda1.log 

This will copy the entire partition /dev/sda1 to an image file sda1.img. This should be done from a different partition which has enough room for the entire partition image.

The second command will attempt to read from the bad blocks again and fill in the blanks.

Then you can mount the img file and do what you want with the files on them:

sudo mount sda1.img -o loop /mnt; nautilus /mnt

More info:

share|improve this answer

If you know the exact files/directories you want to copy, you could try to run this from the terminal:

cp /media/name-of-hdd/folder-files-to-copy ~/Desktop/
share|improve this answer

Your Answer


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.