LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2015, 03:36 AM   #1
mintnewbee
LQ Newbie
 
Registered: Aug 2015
Location: germany
Distribution: Linux Mint 17.1 Cinnamon
Posts: 25

Rep: Reputation: Disabled
Files Application crashes whenever I try to empty the trash can


hi all,

my files application c/ Nemo rashes whenever I try to empty the trash can. I if recall properly, this problem ocurred after I once used the xkill command to terminate a stalled program and I suspect this caused the trash can problem. I would be grateful for advice how to make the trashcan work again and how to abort stalling problems without causing collateral damage such as this.

thanks for your attention.
 
Old 10-17-2015, 05:25 PM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Try browsing (with nemo) to
Code:
/home/username/.local/share
(where username is your user name).
Switch on "show hidden files" in nemo.

You should find a directory called 'Trash' (or similar name).
Delete it. This will also delete its sub-directories.

Your Trash icon should now show your bin is empty.
That Trash folder will be automatically recreated whenever it is needed in the future.

Quote:
xkill - kill a client by its X resource
Don't do this!

Try installing htop - a fancy version of top,
or if you wanted to (for example) kill firefox, try something like
Code:
ps aux | grep firefox
This would display several lines, the last of which is your command entry, so you ignore that one.
Example:-
Code:
jeremy@hector ~ $ ps aux | grep -i firefox
jeremy    8178  5.7  5.1 1364396 413368 ?      Sl   16:17  23:56 /opt/firefox/firefox
jeremy   10328  0.0  0.0  12724  2108 pts/0    S+   23:16   0:00 grep --colour=auto -i firefox
That 8178 is the PID, so you enter
Code:
kill 8178

Last edited by JeremyBoden; 10-17-2015 at 05:30 PM.
 
1 members found this post helpful.
Old 10-22-2015, 07:25 AM   #3
mintnewbee
LQ Newbie
 
Registered: Aug 2015
Location: germany
Distribution: Linux Mint 17.1 Cinnamon
Posts: 25

Original Poster
Rep: Reputation: Disabled
great, that worked nicely. thanks for the concise description, jeremy
 
Old 12-30-2015, 07:09 AM   #4
mintnewbee
LQ Newbie
 
Registered: Aug 2015
Location: germany
Distribution: Linux Mint 17.1 Cinnamon
Posts: 25

Original Poster
Rep: Reputation: Disabled
hi,

here is a follow up on a recurring problem i keep having: nemo keeps crashing on my laptop whenever i try to empty the trash can, which means that i cannot empty the trash can at all. unfortunately, when i go to local/share in terminal, where the trash can folder used to be which i would then delete according to jeremys advice (see above), there is no trash can folder anymore. thus i cannot delete it and jeremys advice no longer works for me. my computer is now kind of crammed with folders that arent really in the trash can and that arent visible in their previous locations either. i can deduct that from the indication of free memory space which should be much higher of those folders i tried to delete had actualy been deleted.

the problem seems to habe to do with an external HD which i had plugged in and on which i tried to delete various folders. can anyone suggest how to fix this problem which seems to go from bad to worse ?

thanx
 
Old 12-30-2015, 08:40 AM   #5
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
If you have an external disk or USB key containing a Linux filesystem (such as EXT4) on which you have deleted some files and you umount it (so that it can be removed safely), you might get asked if you want to "empty waste basket" - but if not, have a look on the external disk for hidden files/directories.
You should hopefully see a .Trash (or similar) directory at the top level - delete this using nemo.

If you have deleted files from nemo whilst signed on as root (or using nemo "open as root"), the Trash directory ought to be in
Code:
/root/.local/share/
This won't appear on your desktop on your machine with a normal signon.

You could try creating a dummy file on your desktop, then delete it using nemo - which should create a Trash directory - which can then be deleted.

Otherwise, you are going to have to do a file search to find a known deleted file.
 
Old 12-30-2015, 09:03 AM   #6
mintnewbee
LQ Newbie
 
Registered: Aug 2015
Location: germany
Distribution: Linux Mint 17.1 Cinnamon
Posts: 25

Original Poster
Rep: Reputation: Disabled
thanks, jeremy.

i donīt have my laptop on me at the moment, but i will try it later. i seem to remember though that there was no trash-folder on the external HDīs top level, but this might have been the case in nemo application, i am not sure i actually checked this in terminal.

the idea with the dummy file i have had myself already, the thing is that i can move it into the trash can in nemo but i cannot open the trash can to delete it.

i searched for "trash" (in nemo though, not quite sure how to do it in terminal) but did not find the trash can i am looking for. good idea though to search for a "deleted" file with a known name. will try that, too.

one thing i definitely did not try yet is searching in the root register. since i am the only one who uses the computer i did not bother defining any users, i just start the computer or type in password when it has gone into suspension-mode. so i have only be searching


Code:
/mikey/.local/share/
not in


Code:
/root/.local/share/
i will try that, too. thanx for now.
 
Old 12-31-2015, 08:34 AM   #7
mintnewbee
LQ Newbie
 
Registered: Aug 2015
Location: germany
Distribution: Linux Mint 17.1 Cinnamon
Posts: 25

Original Poster
Rep: Reputation: Disabled
if i open the root folder in nemo there is only the empty folder desktop and if i click on the trash can icon, it says

Sorry, could not display all the contents of "trash": Operation not supported

however, i found the hidden trash file on the external HD and deleted it - i am quite sure i had the Show Hidden Files option on but maybe it does not automatically apply to external HDs? anyway the problem is solved for now and i hope it won't come back in any other disguise. thanks, jeremy, and a good year 2016 to everybody.
 
Old 12-31-2015, 10:09 AM   #8
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Happy New Year!

Nemo has a switch CTRL+H to show/hide hidden files.
Maybe you pressed it twice.

But I'm guessing there is a bug - Trash ought to have a link to the disk & nemo shouldn't crash if the disk is temporarily disconnected.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do empty/view trash files on mounted volumes wjtaylor Linux - Desktop 12 08-26-2011 01:22 PM
Cannot empty trash Lawrence ynt Linux - Newbie 3 09-28-2009 07:00 AM
How to open the trash folder and empty the trash in command line cmx08 Linux - Newbie 5 08-29-2008 09:15 AM
Application tab gone. Where is Trash? Opening .HTML files Margaret Lowder Linux - Software 4 08-25-2008 03:04 PM
Move to trash works beautifully, but empty trash .. different story. kd5eax Mandriva 2 12-04-2007 02:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration