boot partition too small

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
papaworx
Level 2
Level 2
Posts: 54
Joined: Tue Sep 03, 2013 9:43 am
Location: Canada

boot partition too small

Postby papaworx » Sun Nov 19, 2017 12:01 pm

Every time I update my installation, the OS complains that the boot partition is full. 244MB seems too small. On that 1TB drive I also have a 512 MB boot/efi that's practically empty and a huge working partition - one side of a Raid 1, and there's the problem. I don't dare to chop off 1 Gb of over 900 because I am afraid of messing up the Raid. I don't dual boot. The boot/efi is a left over from the original installation.
Questions:
1. Can I simply move over 256MB from boot/efi to boot whith parted or gparted?
2. If that is not possible, is there a way of dealing with the Raid problem?

User avatar
Spearmint2
Level 14
Level 14
Posts: 5303
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: boot partition too small

Postby Spearmint2 » Sun Nov 19, 2017 12:34 pm

You'd need to post an image of the GParted for it. It may be possible to do, or may not, depending on how the partitions are setup.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

papaworx
Level 2
Level 2
Posts: 54
Joined: Tue Sep 03, 2013 9:43 am
Location: Canada

Re: boot partition too small

Postby papaworx » Sun Nov 19, 2017 3:26 pm

see attached

User avatar
Spearmint2
Level 14
Level 14
Posts: 5303
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: boot partition too small

Postby Spearmint2 » Sun Nov 19, 2017 3:49 pm

OK, you can delete the /boot/efi partition. You should then be able to Resize/Move the /boot partition over that space, but it might result in not booting and need to reinstall grub from a LIVE DVD or USB. Backup your boot folder, just in case.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

papaworx
Level 2
Level 2
Posts: 54
Joined: Tue Sep 03, 2013 9:43 am
Location: Canada

Re: boot partition too small

Postby papaworx » Sun Nov 19, 2017 3:52 pm

Thanks Spearmint2, will do

User avatar
WharfRat
Level 20
Level 20
Posts: 10238
Joined: Thu Apr 07, 2011 8:15 pm

Re: boot partition too small

Postby WharfRat » Sun Nov 19, 2017 3:54 pm

papaworx,

Before you do anything can you paste back ls -lh /boot/vm*
Image ImageImage

papaworx
Level 2
Level 2
Posts: 54
Joined: Tue Sep 03, 2013 9:43 am
Location: Canada

Re: boot partition too small

Postby papaworx » Sun Nov 19, 2017 3:56 pm

Yes sir!
-rw------- 1 root root 6.8M Oct 10 12:19 /boot/vmlinuz-4.4.0-98-generic

User avatar
WharfRat
Level 20
Level 20
Posts: 10238
Joined: Thu Apr 07, 2011 8:15 pm

Re: boot partition too small

Postby WharfRat » Sun Nov 19, 2017 4:00 pm

papaworx wrote:Yes sir!
-rw------- 1 root root 6.8M Oct 10 12:19 /boot/vmlinuz-4.4.0-98-generic


can you list the entire content with ls -lh /boot
Image ImageImage

papaworx
Level 2
Level 2
Posts: 54
Joined: Tue Sep 03, 2013 9:43 am
Location: Canada

Re: boot partition too small

Postby papaworx » Sun Nov 19, 2017 4:36 pm

sorry forgot to send.
total 52M
drwxr-xr-x 6 root root 1.0K Nov 17 06:18 .
drwxr-xr-x 23 root root 4.0K Oct 31 06:13 ..
-rw-r--r-- 1 root root 1.2M Oct 10 12:19 abi-4.4.0-98-generic
-rw-r--r-- 1 root root 187K Oct 10 12:19 config-4.4.0-98-generic
drwxr-xr-x 3 root root 4.0K Dec 31 1969 efi
drwxr-xr-x 5 root root 1.0K Oct 31 06:14 grub
-rw-r--r-- 1 root root 39M Oct 31 06:13 initrd.img-4.4.0-98-generic
drwx------ 2 root root 12K Feb 20 2017 lost+found
-rw-r--r-- 1 root root 179K Jan 28 2016 memtest86+.bin
-rw-r--r-- 1 root root 181K Jan 28 2016 memtest86+.elf
-rw-r--r-- 1 root root 181K Jan 28 2016 memtest86+_multiboot.bin
-rw------- 1 root root 3.8M Oct 10 12:19 System.map-4.4.0-98-generic
drwx------ 4 root root 1.0K Oct 31 10:40 .Trash-0
-rw------- 1 root root 6.8M Oct 10 12:19 vmlinuz-4.4.0-98-generic

User avatar
WharfRat
Level 20
Level 20
Posts: 10238
Joined: Thu Apr 07, 2011 8:15 pm

Re: boot partition too small

Postby WharfRat » Sun Nov 19, 2017 4:43 pm

The reason I'm asking is my /boot folder only uses 121M.

You shouldn't have a .Trash-0 folder in /boot.

Check if it's populated with sudo du -hd1 /boot

You can remove it if it's eating up you partition's space.
Image ImageImage

mr_raider
Level 6
Level 6
Posts: 1279
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: boot partition too small

Postby mr_raider » Sun Nov 19, 2017 5:04 pm

Spearmint2 wrote:OK, you can delete the /boot/efi partition. You should then be able to Resize/Move the /boot partition over that space, but it might result in not booting and need to reinstall grub from a LIVE DVD or USB. Backup your boot folder, just in case.


No.

If this is an EFI install, the EFI partition is required

The best option for now is to clear up space in the boot partition. Eventually you need to reinstall since the left side of an LVM is hard to move
Image

papaworx
Level 2
Level 2
Posts: 54
Joined: Tue Sep 03, 2013 9:43 am
Location: Canada

Re: boot partition too small

Postby papaworx » Sun Nov 19, 2017 5:19 pm

Thanks Spearmint2, you clinched it. I hadn't looked for hidden files and directories. Deleting .Trash-0 gave me 170 MB back and the update work flawlessly. What I don't understand is why the OS decided to keep the trash file in the boot partition, given the fact that real estate is dear. How can I tell the system to place the .Trash directory in a more rational place, if I need a trash directory for my boot partition at all?

User avatar
WharfRat
Level 20
Level 20
Posts: 10238
Joined: Thu Apr 07, 2011 8:15 pm

Re: boot partition too small

Postby WharfRat » Sun Nov 19, 2017 5:42 pm

papaworx wrote:Thanks Spearmint2, you clinched it. I hadn't looked for hidden files and directories. Deleting .Trash-0 gave me 170 MB back and the update work flawlessly. What I don't understand is why the OS decided to keep the trash file in the boot partition, given the fact that real estate is dear. How can I tell the system to place the .Trash directory in a more rational place, if I need a trash directory for my boot partition at all?

You normally shouldn't have a trash folder in boot. It's supposed to reside in your /home/$USER folder and I have no explanation for it being in /boot.

My first thought was that you weren't purging old kernels after upgrades which a lot of users overlook especially, it seems, with an LVM installation as the /boot partition is limited in size.

However your folder was not over populated with kernels, so that's why I asked for the full listing and noticed the .Trash-0 folder.
Image ImageImage

User avatar
Spearmint2
Level 14
Level 14
Posts: 5303
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: boot partition too small

Postby Spearmint2 » Sun Nov 19, 2017 5:58 pm

What I don't understand is why the OS decided to keep the trash file in the boot partition, given the fact that real estate is dear. How can I tell the system to place the .Trash directory in a more rational place,


Damned if I know. Never seen that one before. Sure it's not a left over from some earlier install into that partition, which was later shrunk and made a boot partition? Why not delete some dummy files now and see if the Trash folder reappears there before doing anything more drastic.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

User avatar
Joe2Shoe
Level 2
Level 2
Posts: 74
Joined: Wed Oct 18, 2017 8:12 pm
Location: Ozone

Re: boot partition too small

Postby Joe2Shoe » Sun Nov 19, 2017 9:30 pm

This is one of my laptops with LM18.2 Cinnamon Sonya 64-bit installed. HDD is 320GB. It has 4GB RAM, Swap is 6GB.
/ root is 41GB
/ boot is 2GB
/ home is 30GB
/ Data is 214GB

https://www.dropbox.com/s/40rh1h34dxd11 ... c.png?dl=0

This is just for reference.
"Tolerance is the refuge of men without conviction."
"Common sense is not so common" - Voltaire

mr_raider
Level 6
Level 6
Posts: 1279
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: boot partition too small

Postby mr_raider » Sun Nov 19, 2017 9:46 pm

Separate /boot partitions are only required for very specific circumstances. Unfortunately the installer creates one when left to its own devices and makes it woefully small.

Simply put, inexperienced users should not be messing around with LVM installs, yet for reason the installer allows it.
Image

User avatar
Tomgin5
Level 5
Level 5
Posts: 685
Joined: Sat Mar 19, 2016 2:37 pm
Location: Beaverton, Oregon USA

Re: boot partition too small

Postby Tomgin5 » Mon Nov 20, 2017 3:52 am

This fixed all of my boot partition issues.
Code: Select all
sudo apt-get install byobu

Followed by:

Code: Select all
sudo purge-old-kernels

It takes care of the dangling kernels from upgrading to LM 18.2 with the bloated trash in the boot sector.

papaworx
Level 2
Level 2
Posts: 54
Joined: Tue Sep 03, 2013 9:43 am
Location: Canada

Re: boot partition too small

Postby papaworx » Mon Nov 20, 2017 7:32 am

I am grateful to all of you who have contributed so quickly to solve my problem. My Linux Mint installation is two years old and has gone through several Mint versions. I did try to get rid of old boot images, but I did it via delete instead of purge. So the system probably set up a hidden local trash can.
Although I have been a heavy computer user and contributor for 60 years, at age 80 I find that the many historic operating system idiosyncrasies starting to blur in my mind. Next time my boot partition fills up, I will likely have forgotten the .Trash-0 directory. So I maintain a CherryTree hierarchical database with all the little tricks that I should have learned on mLinux. Hopefully, I will at least remember to look for a solution in the CherryTree. Thanks again!


Return to “Installation & Boot”