How to clean up full /boot safely?
Ralf Mardorf
silver.bullet at zoho.com
Thu Feb 15 01:26:33 UTC 2018
On Wed, 14 Feb 2018 15:02:50 -0500, Tom H wrote:
>Nitpick: "/boot" isn't bind-mounted in a dual-boot situation because a
>bind-mount implies that both distributions/installs are running.
Wrong, to bind doesn't require that both Linux are running, see the
fstab part of [1].
>You don't have to mount "/boot" in order to run Linux.
I don't know, perhaps it's not required, I'm to lazy to read how
initramfs exactly is used, but at least for kernel upgrades syslinux
requires the bind or a sync/copy workaround. What syslinux at least is
unable to do, would be to boot Ubuntu from one UUID and Gentoo from
another UUID, the kernel has to be on the same partition
as /boot/syslinux/, if you don't want to use chainloading,
while /boot/grub/ could be on one partition and the kernels could be on
other partitions, IOW there is no need to use chainloading. "The
factual accuracy of this article or section is disputed":
https://wiki.archlinux.org/index.php/syslinux#Chainloading_other_Linux_systems
I don't know if EXTLINUX requires to bind /boot, when not using it for
chainloading, I'm again to lazy for research.
[1]
[rocketmouse at archlinux ~]$ cat /boot/syslinux/syslinux.cfg
# http://syslinux.zytor.com/wiki/index.php/Doc/menu
PROMPT 0
TIMEOUT 600
UI menu.c32
MENU HIDDEN
MENU CLEAR
MENU COLOR screen 0;30;40
MENU COLOR border 0;30;40
MENU COLOR title 1;37;44
MENU COLOR unsel 0;37;40
MENU COLOR hotkey 1;37;40
MENU COLOR hotsel 7;37;40
MENU COLOR sel 7;37;40
MENU COLOR disabled 1;37;40
MENU COLOR scrollbar 0;30;40
MENU COLOR tabmsg 0;30;40
MENU COLOR cmdmark 0;31;40
MENU COLOR cmdline 0;37;40
MENU COLOR timeout_msg 0;37;40
MENU COLOR timeout 1;37;40
# Used hotkeys: ^8 ^A ^C ^e ^H ^i ^k ^M ^n ^P ^Q ^R ^S ^t ^V
DEFAULT Securityink
MENU TITLE HAL 9000
LABEL Toolbox
MENU LABEL Toolbox
MENU DISABLE
MENU SEPARATOR
LABEL Hardware
MENU LABEL ^Hardware Detection
COM32 hdt.c32
LABEL Memtest
MENU LABEL Memtest^86+
LINUX /.boot/ubuntu_moonstudio/boot/memtest86+.bin
LABEL Reset
MENU LABEL R^eset
COM32 reboot.c32
MENU SEPARATOR
MENU SEPARATOR
LABEL Arch Menu
MENU LABEL Arch Linux
MENU DISABLE
MENU SEPARATOR
LABEL Threadirqs
MENU LABEL Arch Linux ^threadirqs
LINUX ../vmlinuz-linux
APPEND root=LABEL=archlinux ro threadirqs
INITRD ../intel-ucode.img,../initramfs-linux.img
LABEL Threadirqs_nopti
MENU LABEL Arch Linux threadirqs ^nopti
LINUX ../vmlinuz-linux
APPEND root=LABEL=archlinux ro threadirqs nopti
INITRD ../intel-ucode.img,../initramfs-linux.img
LABEL Securityink
MENU LABEL Arch Linux Rt ^Securityink
LINUX ../vmlinuz-linux-rt-securityink
APPEND root=LABEL=archlinux ro
INITRD ../intel-ucode.img,../initramfs-linux-rt-securityink.img
# https://lists.archlinux.org/pipermail/arch-proaudio/2018-February/000078.html
LABEL Securityink_nopti
MENU LABEL Arch Linux Rt Securityink nopt^i
LINUX ../vmlinuz-linux-rt-securityink
APPEND root=LABEL=archlinux ro nopti
INITRD ../intel-ucode.img,../initramfs-linux-rt-securityink.img
LABEL Pussytoes
MENU LABEL Arch Linux Rt ^Pussytoes
LINUX ../vmlinuz-linux-rt-pussytoes
APPEND root=LABEL=archlinux ro
INITRD ../intel-ucode.img,../initramfs-linux-rt-pussytoes.img
LABEL Cornflower
MENU LABEL Arch Linux Rt ^Cornflower
LINUX ../vmlinuz-linux-rt-cornflower
APPEND root=LABEL=archlinux ro
INITRD ../intel-ucode.img,../initramfs-linux-rt-cornflower.img
LABEL Rt
MENU LABEL Arch Linux ^Rt
LINUX ../vmlinuz-linux-rt
APPEND root=LABEL=archlinux ro
INITRD ../intel-ucode.img,../initramfs-linux-rt.img
LABEL Arch
MENU LABEL ^Arch Linux
LINUX ../vmlinuz-linux
APPEND root=LABEL=archlinux ro
INITRD ../intel-ucode.img,../initramfs-linux.img
MENU SEPARATOR
MENU SEPARATOR
LABEL Other Menu
MENU LABEL Other Linux
MENU DISABLE
MENU SEPARATOR
LABEL Moonstudio
MENU LABEL Ubuntu X ^Moon Studio lowlatency
LINUX /.boot/ubuntu_moonstudio/boot/vmlinuz-lowlatency
APPEND root=LABEL=moonstudio ro
INITRD /.boot/ubuntu_moonstudio/boot/initrd.img-lowlatency
LABEL Nokaiser
MENU LABEL Ubuntu X Moon Studio lowlatency no^kaiser
LINUX /.boot/ubuntu_moonstudio/boot/vmlinuz-lowlatency
APPEND root=LABEL=moonstudio ro nokaiser
INITRD /.boot/ubuntu_moonstudio/boot/initrd.img-lowlatency
LABEL Light
MENU LABEL Ubuntu ^Q LightScribe Rt
LINUX /.boot/ubuntu_q/boot/vmlinuz-3.6.5-rt14
APPEND root=LABEL=q ro nomodeset
INITRD /.boot/ubuntu_q/boot/initrd.img-3.6.5-rt14
LABEL Suse
MENU LABEL ^Vintage SUSE 11.2 Rt
LINUX /.boot/suse11.2/boot/vmlinuz-2.6.31.6-rt19
APPEND root=LABEL=suse11.2
INITRD /.boot/suse11.2/boot/initrd-2.6.31.6-rt19
[rocketmouse at archlinux ~]$ cat /mnt/moonstudio/etc/fstab
#<file system> <mount point> <type> <options> <dump pass>
/dev/sdb11 / ext4 rw,relatime 0 1
/dev/sda10 none swap sw 0 0
/dev/sdb7 none swap sw 0 0
/dev/sda9 /mnt/archlinux ext4 defaults,relatime 0 2
/dev/sdb5 /mnt/winos7 ext4 defaults,relatime 0 2
/mnt/archlinux/.boot/ubuntu_moonstudio/boot /boot none bind 0 0
[rocketmouse at archlinux ~]$ ls -hAl /mnt/moonstudio/boot/
total 0
[rocketmouse at archlinux ~]$ ls -hAl /boot/
total 214M
-rw-r--r-- 1 root root 29M Feb 14 09:12 initramfs-linux-fallback.img
-rw-r--r-- 1 root root 11M Feb 14 09:12 initramfs-linux.img
-rw-r--r-- 1 root root 26M Feb 14 09:05 initramfs-linux-rt-cornflower-fallback.img
-rw-r--r-- 1 root root 9.7M Feb 14 09:04 initramfs-linux-rt-cornflower.img
-rw-r--r-- 1 root root 29M Feb 14 09:05 initramfs-linux-rt-fallback.img
-rw-r--r-- 1 root root 10M Feb 14 09:05 initramfs-linux-rt.img
-rw-r--r-- 1 root root 29M Feb 14 09:05 initramfs-linux-rt-pussytoes-fallback.img
-rw-r--r-- 1 root root 10M Feb 14 09:05 initramfs-linux-rt-pussytoes.img
-rw-r--r-- 1 root root 29M Feb 14 09:05 initramfs-linux-rt-securityink-fallback.img
-rw-r--r-- 1 root root 10M Feb 14 09:05 initramfs-linux-rt-securityink.img
-rw-r--r-- 1 root root 1.6M Jan 10 09:53 intel-ucode.img
drwxr-xr-x 2 root root 4.0K Feb 10 18:47 syslinux
-rw-r--r-- 1 root root 5.0M Feb 13 00:23 vmlinuz-linux
-rw-r--r-- 1 root root 4.6M Jan 11 21:53 vmlinuz-linux-rt
-rw-r--r-- 1 root root 5.1M Oct 18 07:00 vmlinuz-linux-rt-cornflower
-rw-r--r-- 1 root root 4.6M Dec 25 21:01 vmlinuz-linux-rt-pussytoes
-rw-r--r-- 1 root root 4.6M Feb 10 09:55 vmlinuz-linux-rt-securityink
[rocketmouse at archlinux ~]$ ls -hAl /.boot/
total 12K
drwxr-xr-x 3 root root 4.0K Feb 16 2017 suse11.2
drwxr-xr-x 3 root root 4.0K Jan 23 08:57 ubuntu_moonstudio
drwxr-xr-x 3 root root 4.0K Feb 16 2017 ubuntu_q
[rocketmouse at archlinux ~]$ ls -hAl /.boot/ubuntu_moonstudio/
total 4.0K
drwxr-xr-x 3 root root 4.0K Feb 6 07:02 boot
[rocketmouse at archlinux ~]$ ls -hAl /.boot/ubuntu_moonstudio/boot/
total 46M
-rw-r--r-- 1 root root 1.2M Jan 19 14:42 abi-4.4.0-112-lowlatency
-rw-r--r-- 1 root root 186K Jan 19 14:42 config-4.4.0-112-lowlatency
drwxr-xr-x 5 root root 4.0K Feb 6 06:39 grub
-rw-r--r-- 1 root root 34M Feb 6 07:02 initrd.img-4.4.0-112-lowlatency
lrwxrwxrwx 1 root root 31 Jan 23 08:56 initrd.img-lowlatency -> initrd.img-4.4.0-112-lowlatency
-rw-r--r-- 1 root root 179K Jan 28 2016 memtest86+.bin
-rw-r--r-- 1 root root 181K Jan 28 2016 memtest86+.elf
-rw-r--r-- 1 root root 181K Jan 28 2016 memtest86+_multiboot.bin
-rw------- 1 root root 3.8M Jan 19 14:42 System.map-4.4.0-112-lowlatency
-rw------- 1 root root 6.9M Jan 19 14:42 vmlinuz-4.4.0-112-lowlatency
lrwxrwxrwx 1 root root 28 Jan 23 08:56 vmlinuz-lowlatency -> vmlinuz-4.4.0-112-lowlatency
[rocketmouse at archlinux ~]$
More information about the ubuntu-users
mailing list