Dist-upgrading Ubuntu Server 18.04 located in remote site?

Ralf Mardorf kde.lists at yahoo.com
Tue Feb 8 02:54:31 UTC 2022


On Mon, 07 Feb 2022 19:33:20 +0100, Bo Berglund wrote:
>Is there any way to enlarge the boot partition or move /boot to be
>located below / instead (there is pleny of room in the / partition...
>Right now it is on a different disk and mounted into /boot...

Hi,

you can create a /boot directory inside the root directory (on the disk
containing the root directory;) and copy, don't move the content from
the original /boot partition to this new directory. Since you don't have
got physical access to the computer, you can't change the boot device
order, hence you need to add a chainload entry to the original grub.cfg
of the original /boot disk. You need to keep the original /boot disk's
grub2 and in addition install grub2 or any other bootloader to the new
disk. To make the new disk's /boot directory the install's /boot, just
comment out the /boot entry in /etc/fstab. However, if you restart the
computer, it will first boot the old grub2, where you need to
(auto-)select the chainload entry, to boot the new grub2.

No responsibility is taken for the correctness of this information.
Test this first at home e.g. using a virtual environment. If the test
should work, still consider the risk of typos etc. when repeating this
on the real machine without physical access.

Regards,
Ralf





More information about the ubuntu-users mailing list