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

Thread: Low Disk Space on "boot"

  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
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    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 18.04 LTS 64bit

  3. #3
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,193
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    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
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    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.

  5. #5
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,193
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    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
    14,193
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    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

  8. #8
    Join Date
    Jan 2008
    Location
    Nappanee, IN
    Beans
    602
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Low Disk Space on "boot"

    You may also want to try the bleachbit package to remove cache files, old log files, etc.

  9. #9
    Join Date
    Jan 2008
    Beans
    7,744

    Re: Low Disk Space on "boot"

    You must use the recommended code from post #3 to find out where the problem is:

    Code:
    df -h
    Otherwise you are simply guessing.

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

    Re: Low Disk Space on "boot"

    Filesystem Size Used Avail Use% Mounted on
    /dev/mapper/benjamin-root 292G 30G 248G 11% /
    udev 990M 4.0K 990M 1% /dev
    tmpfs 401M 812K 400M 1% /run
    none 5.0M 0 5.0M 0% /run/lock
    none 1002M 676K 1001M 1% /run/shm
    /dev/sda1 228M 213M 2.8M 99% /boot


    Things I have tried:
    -$ ls /boot
    -$ sudo apt-get purge abi-3.2.0-23-generic
    I keep getting this error message:
    E: Unable to locate package abi-3.2.0-23-generic
    E: Couldn't find any package by regex 'abi-3.2.0-23-generic'

    I also get this message with other versions. Below is a list of ls /boot:

    abi-3.2.0-23-generic initrd.img-3.2.0-29-generic
    abi-3.2.0-24-generic initrd.img-3.2.0-30-generic
    abi-3.2.0-25-generic lost+found
    abi-3.2.0-26-generic memtest86+.bin
    abi-3.2.0-27-generic memtest86+_multiboot.bin
    abi-3.2.0-29-generic System.map-3.2.0-23-generic
    abi-3.2.0-30-generic System.map-3.2.0-24-generic
    abi-3.2.0-31-generic System.map-3.2.0-25-generic
    config-3.2.0-23-generic System.map-3.2.0-26-generic
    config-3.2.0-24-generic System.map-3.2.0-27-generic
    config-3.2.0-25-generic System.map-3.2.0-29-generic
    config-3.2.0-26-generic System.map-3.2.0-30-generic
    config-3.2.0-27-generic System.map-3.2.0-31-generic
    config-3.2.0-29-generic vmlinuz-3.2.0-23-generic
    config-3.2.0-30-generic vmlinuz-3.2.0-24-generic
    config-3.2.0-31-generic vmlinuz-3.2.0-25-generic
    grub vmlinuz-3.2.0-26-generic
    initrd.img-3.2.0-23-generic vmlinuz-3.2.0-27-generic
    initrd.img-3.2.0-24-generic vmlinuz-3.2.0-29-generic
    initrd.img-3.2.0-25-generic vmlinuz-3.2.0-30-generic
    initrd.img-3.2.0-26-generic vmlinuz-3.2.0-31-generic
    initrd.img-3.2.0-27-generic
    Ubuntu 9.04.1 | GeForce Go 7300/PC/SSE2 | 2062MB | 2x Intel Core 2 CPU T5600 @ 1.83GHz | Dell BIOS A17 | Dell INSPIRON E1505

Page 1 of 2 12 LastLast

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
  •