[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
This is an old revision of the document!
Setting up Grub on install (without rebooting)
Sources
<Originally written by ryanpcmcquen>
If you want to install GRUB immediately after install (and before restarting), here is a simple way:
After the message: “Installation of Slackware Linux is complete.”
$ mkdir /mnt/hd
Mount your root partition, for example:
$ mount /dev/sda3 /mnt/hd
Then chroot in:
$ chroot /mnt/hd $ grub-install /dev/sda $ grub-mkconfig -o /boot/grub/grub.cfg
GRUB will bark a warning at you like:
grep: /proc/mounts: No such file or directory Cannot find list of partitions! (Try mounting /sys.)
Don't worry though, this is normal, this is just a result of chrooting.
$ exit $ reboot
Enjoy!