How to remove "cp: can't stat" errors [Solved]
- Ed_P
- Contributor
- Posts: 7915
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
Re: How to remove "cp: can't stat" errors
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.
Ed
- Ed_P
- Contributor
- Posts: 7915
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
Re: How to remove "cp: can't stat" errors
Rebuilt my save.dat file, http://forum.porteus.org/viewtopic.php? ... 863#p23863, and problem is gone.
Thanks for your help brokenman.
BTW Is there a command to delete .wh. files?
Thanks for your help brokenman.

BTW Is there a command to delete .wh. files?
Ed
- brokenman
- Site Admin
- Posts: 6104
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
- Contact:
Re: How to remove "cp: can't stat" errors
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.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- Ed_P
- Contributor
- Posts: 7915
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
Re: How to remove "cp: can't stat" errors
My thought is they take up space in the save.dat file, which on a USB flash drive may be limited in size.brokenman wrote: I would advise against deleting whiteout files. You should ask yourself why you need to delete them.
Ed
- brokenman
- Site Admin
- Posts: 6104
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
- Contact:
Re: How to remove "cp: can't stat" errors
Check the size of the whiteout files. They should be almost negligible.
Code: Select all
du -sh /path/to/whiteout/.wh*
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- Ed_P
- Contributor
- Posts: 7915
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
Re: How to remove "cp: can't stat" errors
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#
Ed