THIS IS A DRAFT – Error no magic
tested on scaleway dedibox with bionic as a rescue system
here we try to avoid netbsd mbr and use LILO + chain load instead
apt install -y lilo mount /dev/sda1 /mnt ls -lF /mnt/ mkdir /mnt/etc
LILO’s required /boot/
folder conflicts with the NetBSD /boot
secondary boot strap file
– this is why we define map
and backup
vi /mnt/etc/lilo.conf lba32 boot = /dev/sda root = /dev/sda1 prompt timeout = 30 vga = normal compact map=/bootalt/map backup=/bootalt other=/dev/sda1 label=netbsd mkdir /mnt/dev/ mount -o bind /dev /mnt/dev mkdir /mnt/bootalt/ lilo -V # 24.2 lilo -r /mnt #lilo -P ignore -r /mnt
FAIL – got the LILO boot prompt (boot:
)– it then says
Loading netbsd Error no magic
when running lilo
Fatal: creat /boot/boot.0800: Not a directory
==> cannot use both netbsd boot
file and required boot/
folder.
Fatal: raid_setup: stat("/dev/sda")
==> /mnt/dev
not binded
Fatal: First sector of /dev/sda1 doesn't have a valid boot signature strings base/usr/mdec/mbr
==> bootxx not applied
https://linux.die.net/man/5/lilo.conf
https://wiki.gentoo.org/wiki/LILO
https://wiki.archlinux.org/index.php/LILO
Fatal: Kernel /vmlinuz is too big https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=61903