Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.