Welcome to the Slackware Documentation Project

This is an old revision of the document!

Setting up GRUB 2 on install (without rebooting)


<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


In Other Languages
Translations of this page?:
QR Code
QR Code howtos:slackware_admin:grub_on_first_install (generated for current page)