malabar // deploy netbsd ext2fs on bare-metal with lilo (FAIL)

THIS IS A DRAFT – Error no magic

tested on scaleway dedibox with bionic as a rescue system

description

here we try to avoid netbsd mbr and use LILO + chain load instead

requirements

see malabar-ext2fs-dedibsd

setup

    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

troubleshooting

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

resources

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


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun