I am running Ubuntu Server 14.04.4 under VirtualBox on a Windows server. When I first set up the machine I opted to put /boot
on its own 230 MB partition. This turns out not to have been necessary for my situation and now I’d like to roll /boot
into the much larger partition I use for /
. How can I safely make this change?
Partitioning – How to Merge /boot Partition with / Partition
partitioning
Best Answer
Short answer: If it ain't broke, don't fix it.
Long answer: If you insist on fixing what ain't broke:
sudo mkdir /boot2
sudo cp -a /boot/* /boot2/
sudo umount /boot
sudo rmdir /boot
sudo mv /boot2 /boot
/etc/fstab
and comment out the line that defines the mount point for/boot
.sudo grub-install
sudo update-grub
(if you're using a BIOS-based install, you'll also need to specify a device filename -- probably/dev/sda
)/boot
partition and resize the root (/
) partition. See here for details on how to do this.I have not tested this procedure! If I've forgotten something or if there's an unexpected error, your system will be rendered unbootable! Hence: