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

Thread: 16.04 lts Boot is using 94.7% of 227mb

  1. #1
    Join Date
    Aug 2012
    Beans
    84

    16.04 lts Boot is using 94.7% of 227mb

    Tried to run apt upgrade. There were 35 packages to upgrade. 20 seemed to upgrade okay but then there were several errors. I can rerun the upgrade and get the printout if it would help but first I'd like to free up space in the boot part ion - see title. The system seems to be running okay.

    How do I free up the space

    Thanks

  2. #2
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,102
    Distro
    Xubuntu Development Release

    Re: 16.04 lts Boot is using 94.7% of 227mb

    Frank P - Hey hey :

    Quote Originally Posted by Frank P View Post
    Tried to run apt upgrade. There were 35 packages to upgrade. 20 seemed to upgrade okay but then there were several errors. I can rerun the upgrade and get the printout if it would help but first I'd like to free up space in the boot part ion - see title. The system seems to be running okay.

    How do I free up the space

    Thanks
    Try terminal command:
    Code:
    sudo apt autoremove
    If the system has the operating overhead. and the file system is in a consistent state - this command also removes old kernels to free up space in that /boot partition.

    Maybe Yes
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  3. #3
    Join Date
    Aug 2012
    Beans
    84

    Re: 16.04 lts Boot is using 94.7% of 227mb

    Have tried that and also apt autoremove --purge
    Rebotted - no change
    Thanks

  4. #4
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,102
    Distro
    Xubuntu Development Release

    Re: 16.04 lts Boot is using 94.7% of 227mb

    Frank P - Well

    then, show us
    Code:
    df -h
    df -i
    dpkg -l | grep linux-
    see if that is the issue .. and if we have to do a manual removal of those old kernels.

    ain't nothing but a thing
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  5. #5
    Join Date
    Aug 2012
    Beans
    84

    Re: 16.04 lts Boot is using 94.7% of 227mb

    I manually removed some old kernels, and matching files, from /boot. Current stats
    Code:
    Filesystem            Size  Used Avail Use% Mounted on
    udev                  2.9G     0  2.9G   0% /dev
    tmpfs                 596M  2.2M  594M   1% /run
    /dev/mapper/nas-root  911G  373G  493G  44% /
    tmpfs                 3.0G     0  3.0G   0% /dev/shm
    tmpfs                 5.0M  4.0K  5.0M   1% /run/lock
    tmpfs                 3.0G     0  3.0G   0% /sys/fs/cgroup
    /dev/loop3             51M   51M     0 100% /snap/core18/535
    /dev/loop5             47M   47M     0 100% /snap/core18/446
    /dev/loop6             35M   35M     0 100% /snap/gtk-common-themes/818
    /dev/loop0            153M  153M     0 100% /snap/chromium/537
    /dev/loop7             51M   51M     0 100% /snap/core18/511
    /dev/loop1             85M   85M     0 100% /snap/core/6037
    /dev/loop2            105M  105M     0 100% /snap/brackets/85
    /dev/loop4            153M  153M     0 100% /snap/chromium/548
    /dev/loop8             85M   85M     0 100% /snap/core/6128
    /dev/sda1             228M  139M   78M  65% /boot
    tmpfs                 596M     0  596M   0% /run/user/1000
    df -I
    Code:
    df -i
    Filesystem             Inodes  IUsed    IFree IUse% Mounted on
    udev                   193235    487   192748    1% /dev
    tmpfs                  207390    841   206549    1% /run
    /dev/mapper/nas-root 60645376 598578 60046798    1% /
    tmpfs                  207390      1   207389    1% /dev/shm
    tmpfs                  207390      7   207383    1% /run/lock
    tmpfs                  207390     18   207372    1% /sys/fs/cgroup
    /dev/loop3               9645   9645        0  100% /snap/core18/535
    /dev/loop5               8113   8113        0  100% /snap/core18/446
    /dev/loop6              27345  27345        0  100% /snap/gtk-common-themes/818
    /dev/loop0              10351  10351        0  100% /snap/chromium/537
    /dev/loop7               9649   9649        0  100% /snap/core18/511
    /dev/loop1              12498  12498        0  100% /snap/core/6037
    /dev/loop2              14690  14690        0  100% /snap/brackets/85
    /dev/loop4              10351  10351        0  100% /snap/chromium/548
    /dev/loop8              12498  12498        0  100% /snap/core/6128
    /dev/sda1              124496    318   124178    1% /boot
    tmpfs                  207390     11   207379    1% /run/user/1000
    dpkg -l | grep Linux-
    output from this is too long to post
    here is the first few lines
    Code:
    ii  binutils-i686-linux-gnu               2.30-21ubuntu1~18.04                i3                                                  86         GNU binary utilities, for i686-linux-gnu target
    ii  linux-base                            4.5ubuntu1                          al                                                  l          Linux image base package
    ii  linux-firmware                        1.173.2                             al                                                  l          Firmware for Linux kernel drivers
    ii  linux-generic                         4.15.0.43.45                        i3                                                  86         Complete Generic Linux kernel and headers
    The problem seems to be solved for now - no notification on booting, but i'd still like to free up more space
    Thanks

  6. #6
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    13,707
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: 16.04 lts Boot is using 94.7% of 227mb

    227 MB for /boot is a bit small these days. I've routinely started using 512 MB for the boot partition.

    Let's see the results of
    Code:
    cd /boot
    ls -l
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  7. #7
    Join Date
    Apr 2014
    Beans
    434

    Re: 16.04 lts Boot is using 94.7% of 227mb

    I don't personally give it a separate partition. Just leave it in / and forget about it. Separate partitions for everything is a niche use case these days. Not needed as I understand it.

  8. #8
    Join Date
    Aug 2012
    Beans
    84

    Re: 16.04 lts Boot is using 94.7% of 227mb

    cd /boot
    ls -l
    Code:
    total 102698
    -rw-r--r-- 1 root root  1252309 Nov 14 17:11 abi-4.4.0-140-generic
    -rw-r--r-- 1 root root  1252429 Dec  5 09:08 abi-4.4.0-141-generic
    -rw-r--r-- 1 root root   190611 Nov 14 17:11 config-4.4.0-140-generic
    -rw-r--r-- 1 root root   190611 Dec  5 09:08 config-4.4.0-141-generic
    drwxr-xr-x 5 root root     1024 Jan  2 10:30 grub
    -rw-r--r-- 1 root root 39841144 Dec 21 16:15 initrd.img-4.4.0-140-generic
    -rw-r--r-- 1 root root 39841825 Jan 10 11:02 initrd.img-4.4.0-141-generic
    drwx------ 2 root root    12288 Jun 25  2018 lost+found
    -rw-r--r-- 1 root root      255 Nov 14 17:11 retpoline-4.4.0-140-generic
    -rw-r--r-- 1 root root      255 Dec  5 09:08 retpoline-4.4.0-141-generic
    -rw------- 1 root root  3905265 Nov 14 17:11 System.map-4.4.0-140-generic
    -rw------- 1 root root  3905747 Dec  5 09:08 System.map-4.4.0-141-generic
    -rw------- 1 root root  7169888 Nov 14 17:11 vmlinuz-4.4.0-140-generic
    -rw------- 1 root root  7171392 Dec  5 09:08 vmlinuz-4.4.0-141-generic
    I don't think I can remove any more. I'll take a look at increasing the partition size
    Thanks

  9. #9
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    4,321
    Distro
    Xubuntu 18.10 Cosmic Cuttlefish

    Re: 16.04 lts Boot is using 94.7% of 227mb

    Quote Originally Posted by Frank P View Post
    I manually removed some old kernels, and matching files, from /boot.
    Manually removing files from /boot is a great way of turning a minor problem into a great mess.

    To get somewhat less lines of output, try this one:
    Code:
    dpkg -l | grep linux- | grep -v '^rc'
    That will skip all removed packages with remaining configuration. If it shows any kernels other than 4.4.0-140 and 4.4.0-141, those will be broken. To remove some clutter, I suggest you purge those old kernels with remaining configuration anyway. It's just about clutter, as they don't contain any config files.

    Generally, do don't need a /boot partition and it's better not to have one, but if you want your root partition to be on LVM or encrypted or something like that, you need a /boot partition. Your /boot partition of 228MB is too small. Better increase that to at least 500MB, which is still only 0.05% of your harddrive by the looks of it and therefore insignificant.

  10. #10
    Join Date
    Aug 2012
    Beans
    84

    Re: 16.04 lts Boot is using 94.7% of 227mb

    Here's the output from
    dpkg -l | grep linux- | grep -v '^rc'
    Code:
    mybackups@nas:~$ dpkg -l | grep linux- | grep -v '^rc'
    ii  binutils-i686-linux-gnu               2.30-21ubuntu1~18.04                i386         GNU binary utilities, for i686-linux-gnu target
    ii  linux-base                            4.5ubuntu1                          all          Linux image base package
    ii  linux-firmware                        1.173.2                             all          Firmware for Linux kernel drivers
    ii  linux-generic                         4.15.0.43.45                        i386         Complete Generic Linux kernel and headers
    ii  linux-headers-4.15.0-42               4.15.0-42.45                        all          Header files related to Linux kernel version 4.15.0
    ii  linux-headers-4.15.0-42-generic       4.15.0-42.45                        i386         Linux kernel headers for version 4.15.0 on 32 bit x86 SMP
    ii  linux-headers-4.15.0-43               4.15.0-43.46                        all          Header files related to Linux kernel version 4.15.0
    ii  linux-headers-4.15.0-43-generic       4.15.0-43.46                        i386         Linux kernel headers for version 4.15.0 on 32 bit x86 SMP
    ii  linux-headers-generic                 4.15.0.43.45                        i386         Generic Linux kernel headers
    ii  linux-image-3.13.0-93-generic         3.13.0-93.140                       i386         Linux kernel image for version 3.13.0 on 32 bit x86 SMP
    ii  linux-image-3.2.0-69-generic-pae      3.2.0-69.103                        i386         Linux kernel image for version 3.2.0 on 32 bit x86 SMP
    ii  linux-image-4.15.0-42-generic         4.15.0-42.45                        i386         Linux kernel image for version 4.15.0 on 32 bit x86 SMP
    ii  linux-image-4.15.0-43-generic         4.15.0-43.46                        i386         Linux kernel image for version 4.15.0 on 32 bit x86 SMP
    ii  linux-image-generic                   4.15.0.43.45                        i386         Generic Linux kernel image
    ii  linux-libc-dev:i386                   4.15.0-43.46                        i386         Linux Kernel Headers for development
    ii  linux-modules-4.15.0-42-generic       4.15.0-42.45                        i386         Linux kernel extra modules for version 4.15.0 on 32 bit x86 SMP
    ii  linux-modules-4.15.0-43-generic       4.15.0-43.46                        i386         Linux kernel extra modules for version 4.15.0 on 32 bit x86 SMP
    ii  linux-modules-extra-4.15.0-42-generic 4.15.0-42.45                        i386         Linux kernel extra modules for version 4.15.0 on 32 bit x86 SMP
    ii  linux-modules-extra-4.15.0-43-generic 4.15.0-43.46                        i386         Linux kernel extra modules for version 4.15.0 on 32 bit x86 SMP
    I agree with your comment about making a simple problem worse. That's why I'm somewhat reluctant to try and change the size of the boot partition Since everything seems to be running okay now I think I'll just leave it as is
    Thanks
    Frank

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
  •