Results 1 to 6 of 6

Thread: 12.04: / almost full

  1. #1
    Join Date
    May 2006
    Beans
    188

    12.04: / almost full

    Hi,
    I've an updated Ubuntu 12.04 LTS on a laptop with an almost full separate 8.2GB root partition (info below), after running "sudo apt-get clear".
    Trying to analyse it, I've found /usr/src to exceed 2GB, although it contains only presumable small Linux headers.
    Detailed info below.
    Please advise!

    Thanks
    -----------copy of terminal--------------
    Code:
    # df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda1       8.2G  7.4G  417M  95% /
    udev            929M  4.0K  929M   1% /dev
    tmpfs           376M  832K  375M   1% /run
    none            5.0M     0  5.0M   0% /run/lock
    none            939M  2.6M  937M   1% /run/shm
    /dev/sda3        39G   33M   39G   1% /backup
    /dev/sda2       181G   14G  159G   8% /home

    ----

    Code:
    # du --max-depth=1 / | sort -n -r
    du: cannot access `/home/ira/.gvfs': Permission denied
    du: cannot access `/proc/2952/task/2952/fd/4': No such file or directory
    du: cannot access `/proc/2952/task/2952/fdinfo/4': No such file or directory
    du: cannot access `/proc/2952/fd/4': No such file or directory
    du: cannot access `/proc/2952/fdinfo/4': No such file or directory
    21203472	/
    13524964	/home
    4245408	/usr
    2476880	/lib
    500684	/boot
    421208	/var
    13712	/etc
    9920	/sbin
    8804	/bin
    .....
    ------------

    Code:
    # cd /usr
    root@ira-Lenovo-G560:/usr# du -sm * | sort -nr | more
    2028	src
    1106	lib
    792	share
    181	bin
    .....
    ----------
    Code:
    root@ira-Lenovo-G560:/usr/src# ls -al
    total 176
    drwxr-xr-x 44 root root 4096 May 31 13:06 .
    drwxr-xr-x 10 root root 4096 Apr 23  2012 ..
    drwxr-xr-x 24 root root 4096 Apr 23  2012 linux-headers-3.2.0-23
    drwxr-xr-x  7 root root 4096 Apr 23  2012 linux-headers-3.2.0-23-generic-pae
    drwxr-xr-x 24 root root 4096 May 25  2012 linux-headers-3.2.0-24
    drwxr-xr-x  7 root root 4096 May 25  2012 linux-headers-3.2.0-24-generic-pae
    
    ... more versions....
    
    
    drwxr-xr-x 24 root root 4096 May 31 13:06 linux-headers-3.2.0-45
    drwxr-xr-x  7 root root 4096 May 31 13:06 linux-headers-3.2.0-45-generic-pae
    Regards,

    Michael Badt

  2. #2
    Join Date
    Jan 2010
    Location
    Hyperborea
    Beans
    1,441
    Distro
    Ubuntu

    Re: 12.04: / almost full

    You can delete package archives from /var/cache/apt/archives or use Synaptic>Settings>Preferences>Files Tab to do it for you
    I also use Synaptic to remove old kernels, just make sure that you don't remove the current one!
    Use uname -r to find your current kernel.
    Attached Images Attached Images
    Last edited by coldraven; June 15th, 2013 at 09:35 AM.

  3. #3
    Join Date
    Oct 2009
    Location
    Reykjavík, Ísland
    Beans
    9,425
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: 12.04: / almost full

    Quote Originally Posted by mibadt View Post
    ...after running "sudo apt-get clear"
    The command is

    Code:
    sudo apt-get clean
    About problems due to upgrading
    Bringing old hardware back to life.
    Please visit Quick Links -> Unanswered Posts

  4. #4
    Join Date
    May 2006
    Beans
    188

    Re: 12.04: / almost full

    Thanks all!
    Regards,

    Michael Badt

  5. #5
    Join Date
    Apr 2006
    Location
    ::1
    Beans
    629
    Distro
    Ubuntu Development Release

    Re: 12.04: / almost full

    8GB is quite small by today's standards, 15GB would be better for root. Are you able to resize with an adjacent partition?

    With apt you can also try: apt-get autoremove to get rid of any redundant dependencies.

  6. #6
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: 12.04: / almost full

    You should be able to boot from a Live CD and reallocate some of the free space in /home to / using gparted.

    If you are going to do this it's wise to have a backup before proceeding as there is always a small chance of corrupting your partitions if the resizing doesn't complete for any reason.
    Cheesemill

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
  •