Page 2 of 2

Re: How to remove "cp: can't stat" errors

Posted: 14 Apr 2014, 13:29
by Ed_P
But the situation I have wasn't created with a script, I deleted the file/folder using spaceFM. I saw them, right clicked on each and clicked on delete. So something isn't working.

Re: How to remove "cp: can't stat" errors

Posted: 17 Apr 2014, 00:32
by Ed_P
Rebuilt my save.dat file, http://forum.porteus.org/viewtopic.php? ... 863#p23863, and problem is gone.

Thanks for your help brokenman. :beer:

BTW Is there a command to delete .wh. files?

Re: How to remove "cp: can't stat" errors

Posted: 17 Apr 2014, 01:17
by brokenman
You can delete any file using the 'rm' command. I would advise against deleting whiteout files. You should ask yourself why you need to delete them. As I mentioned earlier, for the most part, they do there job nicely. They are .dot file s so can remain hidden as to not clutter up any GUI.

Re: How to remove "cp: can't stat" errors

Posted: 17 Apr 2014, 03:44
by Ed_P
brokenman wrote: I would advise against deleting whiteout files. You should ask yourself why you need to delete them.
My thought is they take up space in the save.dat file, which on a USB flash drive may be limited in size.

Re: How to remove "cp: can't stat" errors

Posted: 17 Apr 2014, 11:35
by brokenman
Check the size of the whiteout files. They should be almost negligible.

Code: Select all

du -sh /path/to/whiteout/.wh*

Re: How to remove "cp: can't stat" errors

Posted: 17 Apr 2014, 23:28
by Ed_P
brokenman wrote:Check the size of the whiteout files. They should be almost negligible.

Code: Select all

du -sh /path/to/whiteout/.wh*

Code: Select all

guest@porteus:~$ du -sh /home/guest/.wh*
du: cannot access ‘/home/guest/.wh*’: No such file or directory
guest@porteus:~$ du -sh /home/guest/*.wh*
du: cannot access ‘/home/guest/*.wh*’: No such file or directory
guest@porteus:~$ su
Password: 
root@porteus:/home/guest# du -sh /home/guest/.wh*
du: cannot access ‘/home/guest/.wh*’: No such file or directory
root@porteus:/home/guest# du -sh /home/guest/Downloads/.wh*
du: cannot access ‘/home/guest/Downloads/.wh*’: No such file or directory
root@porteus:/home/guest# du -sh /home/guest/Downloads/*.wh*
du: cannot access ‘/home/guest/Downloads/*.wh*’: No such file or directory
root@porteus:/home/guest#  
I have definitely deleted files in both those folders.

Re: How to remove "cp: can't stat" errors [Solved]

Posted: 24 Apr 2014, 04:50
by Ed_P
? Image