Results 1 to 10 of 13

Thread: Low Disk Space on "boot"

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    NY, NY
    Beans
    53

    Low Disk Space on "boot"

    Hello,

    For a few months now 12.04 Desktop Edition has been informing me that I only have 2.9MB desk space remaining.

    I have never seen this message on previous versions of ubuntu - does anyone know a method (preferably something in terminal) that will allow me to erase all but the current grub version? Or whatever is deemed the appropriate # of grub versions to keep. Unless I clean up the boot folder I cannot install crucial updates (its been two months since my last update/upgrade).

    The current size of "boot" is 223.1MB.

    Thanks!
    Ubuntu 9.04.1 | GeForce Go 7300/PC/SSE2 | 2062MB | 2x Intel Core 2 CPU T5600 @ 1.83GHz | Dell BIOS A17 | Dell INSPIRON E1505

  2. #2
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Low Disk Space on "boot"

    You should be able to see all of them with something like:
    Code:
    ls /boot
    Note that in /boot they show as vmlinuz-3.2.0-XX-generic or similar.

    You can remove them with:
    Code:
    sudo apt-get purge linux-image-3.2.0-XX-generic
    Be very careful not to remove all of them, or the latest. After that run:
    Code:
    sudo update-grub
    to recreate the grub menu.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  3. #3
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    6,094
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Low Disk Space on "boot"

    To get a report of how much disk space is available and what is taking up the space where; terminal code:
    Code:
    df -h
    IF indeed you find that boot is full, This method to delete old kernels and headers:
    The command in terminal:
    Code:
    uname -a
    will tell you which kernel you are running....then:
    -- if you have the disk space--
    Go to Synaptic Package Manager select status on the left-lower pane and select installed on the left-upper pane and search for linux-image.
    select the ones you want deleted. listed in the right-upperpane.
    and mark for removal/complete removal.
    Click the Apply button in the toolbar and then Apply in the summary window that pops up. Close Synaptic Package Manager.
    sudo update-grub
    if spm is not installed; terminal code:
    Code:
    sudo apt-get install synaptic
    In addition to linux-image, also remove old versions of linux-headers and linux-restricted-modules (if you have them).

    To look at the disk usage:
    Code:
    du -h /home | sort -nr | less
    by directories ->change the /home in the above to different directories to "see". Pay particular attention to the /var/log/ directory...many times there exist lots of old files.; And it does happen there is a system problem the system is advising of that results in extremely large log files.
    just try'n to help <== BDQ
    Last edited by Bashing-om; November 18th, 2012 at 12:47 AM. Reason: if you have the disk space !

  4. #4
    Join Date
    Jul 2005
    Location
    England
    Beans
    13,575

    Re: Low Disk Space on "boot"

    Do you have a separate /boot partition, and if so is there a good reason why you installed with one, as it tends to complicate matters in most cases.

    You can see how many kernels or OSs are on your system with
    Code:
    grep menuentry /boot/grub/grub.cfg
    which will list everything that appears in the grub menu, including any other OSs, eg Windows or other Linux OSs. It will also show all the different kernels that are installed and you can then uninstall all except the two latest using software-center or synaptic, or whatever you normally use for package management.

    Unfortunately as a result of the newer version of grub in 12.10, that command is no longer very helpful. It still works but grub now has a lot of extraneous information in grub.cfg which just complicates the output, making it almost useless, though I am sure there must be a way of extracting only what is needed somehow or other.
    Last edited by ajgreeny; November 18th, 2012 at 01:03 AM.
    DISTRO: Xubuntu 12.04-64bit --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo

  5. #5
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    6,094
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Low Disk Space on "boot"

    @ajgreeny; Nifty code -> placed for remembrance !

  6. #6
    Join Date
    Dec 2008
    Location
    NY, NY
    Beans
    53

    Re: Low Disk Space on "boot"

    Thanks for all of your advice, unfortunately I was unsuccessful at deleting the older grubs (there are about 6 older versions in /boot).

    Even though this PC is a little over 5 years old it recently started freezing and I think the best solution at this point will be to reformat and possibly dual boot mint 13 with 12.04.

    Thanks for all your help!
    Ubuntu 9.04.1 | GeForce Go 7300/PC/SSE2 | 2062MB | 2x Intel Core 2 CPU T5600 @ 1.83GHz | Dell BIOS A17 | Dell INSPIRON E1505

  7. #7
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    6,094
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Low Disk Space on "boot"

    How about deleting the cache files and obsolete files ? See if ya get enough space to install synaptic -> use synaptic to remove the old kernels ?
    Code:
    sudo apt-get autoclean
    sudo apt-get clean
    try'n to help ==> BDQ

Tags for this Thread

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
  •