LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't trash some folders on live sessions (https://www.linuxquestions.org/questions/slackware-14/cant-trash-some-folders-on-live-sessions-4175688477/)

fulalas 01-13-2021 04:00 AM

Can't trash some folders on live sessions
 
I noticed that some folders can't be removed on Xfce live sessions (slackware64-live-xfce-current.iso):

https://www.mediafire.com/convkey/bf...od5m72hhzg.jpg

If I confirm to permanently remove it, then comes a new dialog saying the folder is not empty and it fails to remove it.

Maybe there's a reference (symlink?) to these 'untrashable' folders somewhere...?

yancek 01-13-2021 05:35 AM

Quote:

the folder is not empty and it fails to remove it.
That's standard behavior on most Linux systems I've used, delete the contents of the folder.
If you are using a 'live' system, it is read only by default and if you were able to delete some file/folder, it would appear again upon reboot unless you have created the iso with persistence which you have not mentioned?

fulalas 01-13-2021 08:13 PM

@yancek, AFAIK files/folders in a live session are not ready only, since they're copied to RAM. What's happening here (you can test yourself) is that some non-empty folders can't be trashed (like the one in the screenshot above), while some others can (in the same .config folder, for instance).

Please, noticed that be trashed is different to be deleted. You can, for instance, delete these non-empty folders that can't be trashed.

keefaz 01-14-2021 06:43 AM

Just go into the directory and delete files in it :D

yancek 01-14-2021 02:34 PM

t d
 
I'm curious as to why you would want to delete that particular directory? In any case, I have Slackware Live with KDE desktop and booted it and navigated to: /home/live/.config/xfce4/terminal. In that directory, there is a file named terminalrc. Backed out of that directory and selected Move to Trash on the Terminal directory and it was moved to Trash with no problem. Of course when I rebooted, that directory and the file in it were right where they had been before the move to trash. That's expected behavior, you can delete some files/folders on a persistent usb.

It runs in RAM but but every time you reboot, you lose.. everything if you don't have persistence as it loads what is on the usb to RAM on each boot. You could theoretically delete files/folders and have them remain so using a live system on condition that you never reboot.

Try it.


All times are GMT -5. The time now is 06:15 AM.