Dist-upgrading Ubuntu Server 18.04 located in remote site?
Ralf Mardorf
kde.lists at yahoo.com
Tue Feb 8 03:19:26 UTC 2022
On Tue, 2022-02-08 at 03:54 +0100, Ralf Mardorf via ubuntu-users wrote:
> 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.
And another PS: Sure, you can also add a /boot partition below the root
partition and change the fstab's /boot entry instead of commenting it
out. You still can't change the boot device order, so you also need to
chainload. Why are you that focused on /boot partitions? Better add a
/boot directory to the root directory.
More information about the ubuntu-users
mailing list