Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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 ...
  1. #1
    Just 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.

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile

    Run the following command from terminal:
    ls ~/.local/share/Trash
    If you find any files then remove it. using rm command.

    For more about ls and rm command ,type.
    man ls
    man 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
    -------------------

  3. #3
    Linux 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
    Code:
    sudo rm *.log.*.gz
    This will delete old log files that you won't need if you aren't having any difficulties.
    Code:
    rm messages.*.gz
    this will delete old boot messages
    Code:
    rm syslog.*.gz
    this deletes old system logs.
    Code:
    exit
    to exit root
    Code:
    exit
    to exit terminal
    Registered Linux User #420832

  4. #4
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,303
    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
    Code:
    sudo apt-get autoclean
    This will remove all out of date deb files

    Code:
    sudo apt-get clean
    This will remove ALL debs
    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.

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Execute this
    Code:
    sudo apt-get clean all
    It will free up a lot of space.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Just 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.

  7. #7
    Linux 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:

    Code:
    du -s /home/yourusername/* | sort -nr | cut -f 2- | xargs -i du -sh {}
    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.

    Hugo
    EOF

  8. #8
    oz
    oz is online now
    forum.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.

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    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

  10. #10
    Just 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:~$

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...