How to clean up full /boot safely?

Tom H tomh0665 at gmail.com
Wed Feb 14 20:02:50 UTC 2018


On Mon, Feb 12, 2018 at 8:43 PM, Ralf Mardorf <silver.bullet at zoho.com> wrote:
>
> Btw. https://packages.ubuntu.com/xenial/syslinuxis is in main, it's
> not "just in universe". Again, syslinux suffers from a weakness
> neither GRUB legacy, nor GRUB 2 suffers from. When using syslinux for
> a multi-boot Linux only machine you need to bind /boot or you need to
> chainload. When using GRUB you do not need to care about this.

Nitpick: "/boot" isn't bind-mounted in a dual-boot situation because a
bind-mount implies that both distributions/installs are running.

You don't have to mount "/boot" in order to run Linux.

For example, I have a VM in which a 17.10 install with a separate
"/boot" filesystem dual-boots with a Gentoo install. "/boot" only has
Ubuntu files on it and isn't mounted by the Gentoo install (it saves
my having to compile a kernel) and they have the same ip address and
share out the same filesystem via nfs, whichever one's running.

My grub.cfg is below. The only difference between the Ubuntu and
Gentoo entries is the "root=UUID=" value. The same must be possible
with extlinux.

$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/90-grub ###
# menu
set default=0
set timeout=2

# kernel
insmod gzio

# disk/partition
insmod part_msdos

# filesystem
insmod ext2

# /boot
search --no-floppy --fs-uuid --set=root c6c45a21-9b93-4575-aa11-2011da070d4d

# video
terminal_input console
terminal_output console

menuentry 'Ubuntu' {
    linux /kernel root=UUID=5d16e6e7-19d3-4cc1-ad06-394a4d343fcf ro
consoleblank=0
    initrd /ramfs
}

menuentry 'Gentoo' {
    linux /kernel root=UUID=6ab1adaa-7d34-4494-9226-98e12af5763f ro
consoleblank=0
    initrd /ramfs
}

### END /etc/grub.d/90-grub ###




More information about the ubuntu-users mailing list