Results 1 to 10 of 15
Hi I have run out of disc space and it appears to be that when i have deleted files they have been stored in some trash bin but i cannot ...
- 08-21-2009 #1Just Joined!
- Join Date
- Aug 2006
- Posts
- 16
freeing disc space
Hi I have run out of disc space and it appears to be that when i have deleted files they have been stored in some trash bin but i cannot find it to delete the rubbish and clear some disc space can anyone help me I am not fully conversant with Linux, have to rely on others to help, I live in Melbourne would like to find someone fully conversant who could teach me the basics. I have a friend try and find this trash bin with no success he is conversant with DOS only.
Thanks in anticipation.
- 08-21-2009 #2
Run the following command from terminal:
If you find any files then remove it. using rm command.ls ~/.local/share/Trash
For more about ls and rm command ,type.
man lsman rm- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 08-21-2009 #3Linux User
- Join Date
- May 2009
- Location
- Big River, Sask, Canada
- Posts
- 342
You can also free up some disk space by:
Code:cd /var/log
This will delete old log files that you won't need if you aren't having any difficulties.Code:sudo rm *.log.*.gz
this will delete old boot messagesCode:rm messages.*.gz
this deletes old system logs.Code:rm syslog.*.gz
to exit rootCode:exit
to exit terminalCode:exit
Registered Linux User #420832
- 08-21-2009 #4
Ubuntu also stores downloaded debs in a local cache. This can take up a lot of disk space and can safely be cleared.
Open a terminal and run
This will remove all out of date deb filesCode:sudo apt-get autoclean
This will remove ALL debsCode:sudo apt-get clean
If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 08-21-2009 #5
Execute this
It will free up a lot of space.Code:sudo apt-get clean all
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 08-22-2009 #6Just Joined!
- Join Date
- Aug 2006
- Posts
- 16
Thank you for your help and suggestions have tried them all and except for the sudo apt-get autoclean nothing happened except to say file does not exist. I dont know what else to do.
- 08-22-2009 #7Linux Newbie
- Join Date
- Nov 2007
- Location
- Planet Earth
- Posts
- 152
You can try to look for big directories. For example, try with your home directory:
That command will show a list of directories inside your home folder, sorted by size. You can repeat the command to explore inside directories and try to locate some huge files or directories.Code:du -s /home/yourusername/* | sort -nr | cut -f 2- | xargs -i du -sh {}
HugoEOF
- 08-22-2009 #8forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,099
What distribution and desktop environment are you running?
Are you getting error messages about being out of disk space? If so, post the errors.
Run the following command and post the output here so that we can see how your partitions are laid out:
Code:fdisk -l
oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 08-22-2009 #9
Post the output of df -h command too.
Code:sudo fdisk -l df -h
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 08-23-2009 #10Just Joined!
- Join Date
- Aug 2006
- Posts
- 16
My system is kubuntu latest version upgraded about a month ago.
The warning is in Konqueror telling me i am running out of disc space and to free it up have tried all commands and nothing happens except in latest it brings up explanations about partitions by giving access info like you good people have been posting to me.
nikolas@nikolas-desktop:~$ du -s /home/yourusername/* | sort -nr | cut -f 2- |xargs -i du -sh {}
du: cannot access `/home/yourusername/*': No such file or directory
nikolas@nikolas-desktop:~$
nikolas@nikolas-desktop:~$ sudo fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000edcf6
Device Boot Start End Blocks Id System
/dev/sda1 1 64 514048+ 83 Linux
/dev/sda2 * 65 956 7164990 b W95 FAT32
/dev/sda3 957 5078 33109965 83 Linux
/dev/sda4 5079 14593 76429237+ 5 Extended
/dev/sda5 8606 8740 1084356 82 Linux swap / Solaris
/dev/sda6 8741 14593 47014191 b W95 FAT32
/dev/sda7 * 5079 8457 27141754+ 83 Linux
/dev/sda8 8458 8605 1188778+ 82 Linux swap / Solaris
Partition table entries are not in disk order
nikolas@nikolas-desktop:~$
Partition table entries are not in disk order
nikolas@nikolas-desktop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 26G 24G 495M 99% /
varrun 236M 100K 236M 1% /var/run
varlock 236M 0 236M 0% /var/lock
udev 236M 72K 236M 1% /dev
devshm 236M 0 236M 0% /dev/shm
lrm 236M 40M 197M 17% /lib/modules/2.6.24-24-generic/volatile
nikolas@nikolas-desktop:~$


Reply With Quote