Sometimes I wanted to do smart partitions, by doing separate /boot partition, but I only give little space. Now I am having problems with lack of space on that partition.
How to remove /boot partition and join it with /root partition?
Sometimes I wanted to do smart partitions, by doing separate /boot partition, but I only give little space. Now I am having problems with lack of space on that partition.
How to remove /boot partition and join it with /root partition?
You could use cp -a /boot /boot-tmp
to copy the contents to a temporary directory on the root filesystem, unmount the boot partition using umount /boot
, and put the files back in place with rmdir /boot && mv /boot-tmp /boot
.
Once you verify that everything is fine you can remove /boot
from /etc/fstab
. Finally, you should double-check the GRUB configuration and run update-grub
.
apt-get upgrade
regularly fails because of insufficient disk space. I don't want to move partitions. Do you know a solution that would automatically purge ancient kernels?
– krlmlr
Oct 30 '12 at 20:47
/etc/default/grub
, and run update-grub
, but the changes were not reflected in /boot/grub/grub.cfg
.) Any hints?
– krlmlr
Oct 31 '12 at 10:53
You could also just keep the /boot partitition and expand it with gparted. (Of course, as always, backup first and keep a liveCD handy in case something goes wrong)
If you've never resized partitions before, there are plenty of tutorials on the web that will tell you how to do it. Here's a good tutorial to start with: http://www.ibm.com/developerworks/linux/library/l-resizing-partitions-1/index.html
dd
-ing the partition-less filesystem contents to a new position on disk, then recreating the partition over the new location of those contents. It feels like I'm McGyver-ing things around with paper clips and duct tape! Moving the contents of the boot partition into the root one looks like a much better choice IMO.
– Chuim
Jun 25 '20 at 07:11