Is there log of filenames skipped when copying files and choosing "Skip All" (for errors) in Ubuntu?

NickH88

Distinguished
Jan 16, 2013
31
0
18,530
I'm using an Ubuntu 12.10 LiveDVD to try to copy files from a failing HDD that I have connected via a docking station. If I'm copying a large folder that contains a mass amount of files, an error occurs when attempting to copy one of the files, and I choose "Skip All," is there any sort of log file created with a list of what all files were skipped? If so, where can I find it, and is this file still created if I'm running Ubuntu using the LiveDVD's "Try Ubuntu" feature (I assume it would only be a temporary file in that case and would be lost upon shutdown)?

If not, is there any way to determine either beforehand or afterwards what files Ubuntu will be unable to, or was unable to copy due to errors?

Thanks!
 
Hi, if your hard drive is failing you should not try to directly copy files from it.

First you should always make an image of the drive. (gnu)ddrescue is the tool to use. I have used it to save many drives that wouldn't even mount.
In ubuntu, you need to install the package with
Code:
sudo apt-get install gddrescue
And of course if you are running off the live-dvd then the changes made will not stick after a reboot. If you require this, install the ubuntu live image to a flash drive with lili: http://www.linuxliveusb.com/

More information: https://help.ubuntu.com/community/DataRecovery

After the image is complete (the image file should be saved to another good hard drive with enough space), mount and then use the cp command to copy the files.
As far as errors, use the 'verbose' option with the switch, '-v'
You can log the output to a file like this:
Code:
cp -R -v /source-folder/ /destination-folder/ > /tmp/copy-output
 

Latest posts