I am trying to copy files to my external hard drive using PartedMagic. My computer won't boot, so we are sending it in to get repaired. I've tried EVERYTHING but can't get it to boot into any desktop or recovery environment. What I am able to do is boot to a PartedMagic command line (Using Ultimate Bot CD). That is why I am just copying files instead. Both drives are NTFS. I'm using PartedMagic, which has NTFS support built in.
My issue is that the cp command is skipping random files. This is what the command looks like:
root@PartedMagic:/mnt/local/Users# cp -R ianco/* /mnt/usb/ianco-bak/
The error I'm getting is:
cp: cannot open <filename> for reading: No such file or directory
After getting this issue, I executed this command again, but with the -n (do not overwrite) parameter, and noticed that it skipped the exact same files. I created a log of the skipped files here.
Why is it skipping these specific files, and more importantly, how do I make it copy everything?
EDIT 1: I ran ll and cat on one of the affected files, and this is what I get
root@PartedMagic:/mnt/local/Users# ll ianco/AppData/Local/Android/sdk/docs/images/android-5.0/notifications/expandedtext_combo.png
-rwxrwxrwx 2 root root 0 Apr 25 2016 ianco/AppData/Local/Android/sdk/docs/images/android-5.0/notifications/expandedtext_combo.png
root@PartedMagic:/mnt/local/Users# cat ianco/AppData/Local/Android/sdk/docs/images/android-5.0/notifications/expandedtext_combo.png
cat: ianco/AppData/Local/Android/sdk/docs/images/android-5.0/notifications/expandedtext_combo.png: No such file or directory
caton them? What doesllfor any of them show? Maybe they are dead symlinks? – dirkt Nov 06 '16 at 08:25llandcat. read EDIT 1. I'm sure they're not dead symlinks. – NullBite Nov 06 '16 at 20:37chkdskon it? (I believe Linux cannot repair NTFS). Thelloutput you provided reports size0, I think it also may indicate damaged file or filesystem. Check sizes of other problematic files. – Kamil Maciorowski Nov 06 '16 at 21:37chkdskis not an option. When I usedllon some other files, they also reported size0. I usedntfsfix /dev/sda3but it didn't do anything... – NullBite Nov 07 '16 at 00:58ntfsfixmanual says it "is NOT a Linux version ofchkdsk". If you really want to save these files and cannot remove the drive, clone the drive to another hard disk (well, cloning the sole partition will be enough but you have to build the new partition table properly to make it work). The cloning must be done on block level (like withddorddrescue), not on filesystem level. Then connect this another disk to working Windows and let it runchkdskon it. This may or may not help though, depending on how far the corruption went. – Kamil Maciorowski Nov 07 '16 at 15:47chkdskwould work? – NullBite Nov 07 '16 at 20:53chkdsksomehow and see what happens. – Kamil Maciorowski Nov 07 '16 at 21:17chkdskon my internal drive. it took over 24 hours onreplacing invalid security id with default security id for file *(It did this for every file), but after it finished, I was able to copy the missing files. Now, I can boot to the recovery media, but i cant refresh or reset, so i will open a new thread. I will post the link after creating it. Sorry for the delayed response, I had too much going on to respond. – NullBite Nov 11 '16 at 03:08