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

Post here if you are a new Porteus member and you're looking for some help.
User avatar
Ed_P
Contributor
Contributor
Posts: 3319
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

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

Post#16 by Ed_P » 14 Apr 2014, 13:29

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

User avatar
Ed_P
Contributor
Contributor
Posts: 3319
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

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

Post#17 by Ed_P » 17 Apr 2014, 00:32

Rebuilt my save.dat file, viewtopic.php?f=123&t=3335&p=23863#p23863, and problem is gone.

Thanks for your help brokenman. :beer:

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

User avatar
brokenman
Site Admin
Site Admin
Posts: 5563
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

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

Post#18 by brokenman » 17 Apr 2014, 01:17

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.

User avatar
Ed_P
Contributor
Contributor
Posts: 3319
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

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

Post#19 by Ed_P » 17 Apr 2014, 03:44

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.
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 5563
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

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

Post#20 by brokenman » 17 Apr 2014, 11:35

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.

User avatar
Ed_P
Contributor
Contributor
Posts: 3319
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

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

Post#21 by Ed_P » 17 Apr 2014, 23:28

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.
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 3319
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

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

Post#22 by Ed_P » 24 Apr 2014, 04:50

? Image
Ed

Post Reply