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 11-20-2009, 09:08 AM   #1
schulte3
LQ Newbie
 
Registered: Jan 2009
Posts: 20

Rep: Reputation: 0
Deleted files question


I recently reformatted my external to fat32 from ntfs and backed up the contents of it onto my laptop's hard drive (around 130 GB). After re-formatting I moved the files back to my external and deleted the files off my laptop but it still says I only have about 33 GB of free space when I had around 160 GB or free space before backing up my external's data.

I'm using Ubuntu 9.10, is there any "recycle bin" type of thing which I can empty?
 
Old 11-20-2009, 09:15 AM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Yes. Have a look in .Trash (hidden folder, hence the .)
 
Old 11-20-2009, 09:41 AM   #3
schulte3
LQ Newbie
 
Registered: Jan 2009
Posts: 20

Original Poster
Rep: Reputation: 0
That folder isn't present in my home directory. (I'm using Ubuntu 9.10)
 
Old 11-20-2009, 09:45 AM   #4
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
Hidden...

Have you enabled Hidden Files? Look in your File manage(mine is Dolphin) under File for Show Hidden files.
 
Old 11-20-2009, 09:47 AM   #5
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally Posted by schulte3 View Post
That folder isn't present in my home directory. (I'm using Ubuntu 9.10)
So am I and I've got one, though I'm not at home right now so I can't check the details.

It's definitely not there if you do
Code:
ls -a
?
 
Old 11-20-2009, 10:28 AM   #6
schulte3
LQ Newbie
 
Registered: Jan 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Yeah, ls -a doesn't show it.

When I right click on my filesystem and check its properties it says there is only 44.7 GB of files with 34 GB of free space even though it's a 220 GB partition.
 
Old 11-20-2009, 11:08 AM   #7
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
schulte3,

Here is the philosophy behind:
When we delete (normal remove) the file goes or is moved to the trash (recycle bin) it is not yet destroyed, therefore the disk space is not freed.

To regain the space you must completely delete the file. Under Linux, usually it is enough to do any of the following:

a) By Terminal: cd to /home/username. If 'ls -a' does not show the 'Trash' folder it is because the system holds it inside the '.local' (dot, local) folder. So you must issue command: 'cd ./.local' (note my two dots) then issue again 'ls -a', if 'Trash' is not listed there should be a folder named 'share'; cd into that, 'cd ./share' (only one dot), 'ls -a' again. This time 'Trash' folder should be there. If you wanted to delete completely its contents (it will refuse deletion of some files owned by separate username) then you must first own everything inside. Do this:

schulte3@host--$ chown schulte3:schulte3 -R ./Trash [assuming 'schulte3' is your username] Then you can now issue removal of files.

schulte3@host--$ rm -fR ./Trash/* [or if you are inside Trash folder, do this--]

schulte3@host ~/.local/share/Trash --$ rm -fR *

b) By Dolphin (File Manager): Goto View, set 'Show Hidden Files' On, then browse into the Trash folder as described above, right click and Delete. Again if permissions complain you will need to 'chown' everything first, for this purpose you can do as described above by opening a terminal in the folder.

Note: If you have deleted it running as 'root' your home folder should be at /root, there you can execute the same procedure.

In some distros there is a universal 'Trash' folder listed in the root (/) directory, try examine your root directory: 'ls -a /' see if you find one.

Check back how you fared.

Hope it helps.

Good luck.

Last edited by malekmustaq; 11-20-2009 at 11:09 AM.
 
Old 11-20-2009, 11:44 AM   #8
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 821

Rep: Reputation: 258Reputation: 258Reputation: 258
If nothing else makes sense you might also want to check the Linux file system for errors. If you recently had any problems causing a sudden reboot then you might have some orphaned files or free space that aren't being included in the available / allocated space. I'm assuming that your free space problem is on the Linux file system and not the external drive. You didn't say exactly.
 
Old 11-20-2009, 12:23 PM   #9
schulte3
LQ Newbie
 
Registered: Jan 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you malekmustaq, it was in my .local/share directory.
 
Old 11-20-2009, 12:24 PM   #10
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Ah, I'm home now and what malekmustag said is right, your trash folder is in:

.local/share/Trash/

under your home folder.
 
  


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
Deleted files on a SMB-share - Files gone, space still allocated - Fedora 10 Zwentendorf Linux - Server 4 03-01-2009 05:04 AM
Help restoring deleted files/ mount question dlackovic Linux - Newbie 16 11-23-2007 04:31 AM
Mepis, copy files to thumb drive, files deleted? vremenno Linux - Newbie 6 09-15-2006 11:21 PM
Need Help - Deleted Files fpdesignco Linux - Enterprise 3 11-05-2005 09:21 AM
How to delete the destination files while the source files deleted in cp -u ? myunicom Linux - General 4 09-26-2003 01:13 PM

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

All times are GMT -5. The time now is 04:13 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