Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: 20 Gig for OS seems high: How do I clean up Disk?

  1. #1
    Join Date
    Jul 2009
    Beans
    67

    Question 20 Gig for OS seems high: How do I clean up Disk?

    How can I know what to delete to save disk space?
    Is there an automated program that safely deletes things I don't need?

    thanks in advance,
    Nazaroo
    desperately trying to leave MSWindows behind...

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: 20 Gig for OS seems high: How do I clean up Disk?

    I suppose 20GB is a bit high, but it all depends on what you have installed.

    You could run this:

    Code:
    sudo apt-get autoclean
    To remove old packages from the cache.

    Try running this as well:

    Code:
    du / -h --max-depth=1
    Last edited by CharlesA; September 24th, 2010 at 04:26 AM.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Jul 2009
    Beans
    67

    Re: 20 Gig for OS seems high: How do I clean up Disk?

    hmmm ran first one and :

    root@unknown:~# sudo apt-get autoclean
    E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    I have Synaptic Manager open in another area. Could that be a problem?
    desperately trying to leave MSWindows behind...

  4. #4
    Join Date
    Jun 2009
    Beans
    286

    Re: 20 Gig for OS seems high: How do I clean up Disk?

    Yes, you have a collision with Synaptic; close it, and try again.

    Better yet, install Ubuntu Tweak, which provides a fairly intuitive GUI for this and other tasks.

  5. #5
    Join Date
    Jul 2009
    Beans
    67

    Re: 20 Gig for OS seems high: How do I clean up Disk?

    I was installing agedu, but it doesn't show up on the Ubuntu dropdown menu that I can see...

    I am installing Tweak, which calls itself a Hex-editor. Sounds like the "monitor" in an Apple IIe. Haven't programmed in HEX since the 80s....
    Last edited by Nazaroo; September 24th, 2010 at 04:24 AM.
    desperately trying to leave MSWindows behind...

  6. #6
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: 20 Gig for OS seems high: How do I clean up Disk?

    Quote Originally Posted by Nazaroo View Post
    hmmm ran first one and :

    root@unknown:~# sudo apt-get autoclean
    E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    I have Synaptic Manager open in another area. Could that be a problem?
    Yup. You can only have one program accessing dpkg at once.

    Close out synaptic and run it again.

    The du program will provide the same functionality as agedu.

    Even Disk Usage Analyzer will provide the same functionality minus the html report.
    Last edited by CharlesA; September 24th, 2010 at 04:26 AM.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  7. #7
    Join Date
    Jul 2009
    Beans
    67

    Re: 20 Gig for OS seems high: How do I clean up Disk?

    Okay I ran DU:

    root@unknown:~# du / -h --max-depth=1
    17M /tmp
    4.0K /srv
    31M /boot
    du: cannot access `/proc/16725/task/16725/fd/3': No such file or directory
    du: cannot access `/proc/16725/task/16725/fdinfo/3': No such file or directory
    du: cannot access `/proc/16725/fd/3': No such file or directory
    du: cannot access `/proc/16725/fdinfo/3': No such file or directory
    0 /proc
    4.0K /mnt
    16K /lost+found
    0 /sys
    5.7M /bin
    1.1M /dev
    63M /opt
    216M /lib
    16M /etc
    2.0G /root
    ^C
    root@unknown:~# ^C
    root@unknown:~#


    I don't know what I am looking at here...


    any advice?
    desperately trying to leave MSWindows behind...

  8. #8
    Join Date
    Sep 2005
    Beans
    424

    Re: 20 Gig for OS seems high: How do I clean up Disk?

    Quote Originally Posted by Nazaroo View Post
    any advice?
    Let the command finish (i.e. don't ctrl+C out of it).

    The first column is the size, the second is the folder. It is showing where the space is being used, or would if you let it finish.

    The output of
    Code:
    df -h
    might also be handy.
    Last edited by Hobgoblin; September 24th, 2010 at 04:48 AM.

  9. #9
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: 20 Gig for OS seems high: How do I clean up Disk?

    You'll get a few permission denied errors, but that's ok.

    If you want a GUI version, check out Disk Usage Analyzer: Applications > Accessories > Disk Usage Analyzer.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  10. #10
    Join Date
    Jul 2009
    Beans
    67

    Re: 20 Gig for OS seems high: How do I clean up Disk?

    Quote Originally Posted by Hobgoblin View Post
    Let the command finish (i.e. don't ctrl+C out of it).

    The first column is the size, the second is the folder. It is showing where the space is being used, or would if you let it finish.

    The output of
    Code:
    df -h
    might also be handy.
    oh ok. I thought the program was hung.

    thank you to everyone for your help.

    This time I'm letting it run through longer.

    P.S., could there be a bunch of source-code I don't need hanging around somewhere?
    Or a game someone may have installed that never got uninstalled?
    Where would I look for those? (no big games show up on dropdown menu...)
    Last edited by Nazaroo; September 24th, 2010 at 07:21 AM. Reason: extra question
    desperately trying to leave MSWindows behind...

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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