Slackware HowTo

Restore the bootloader from chroot on Slackware

Quick guide to recover the boot path.

1. Mount the system

Example (adjust devices):

mount /dev/sdX2 /mnt
mount /dev/sdX1 /mnt/boot  # if separate
mount -t proc none /mnt/proc
mount --rbind /dev /mnt/dev
mount --rbind /sys /mnt/sys

2. Enter chroot

chroot /mnt /bin/bash

3. Reinstall

LILO:

lilo -v

4. Reinstall

GRUB:

grub-install /dev/sdX
grub-mkconfig -o /boot/grub/grub.cfg

Quick checklist

[ ] Steps completed
[ ] Config updated
[ ] Service tested
[ ] Restart/rollback ready
[ ] Logs checked

Back to Linux HowTo