[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.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howtos:slackware_admin:grub_on_first_install [2013/09/28 03:50 (UTC)] – created ryanpcmcquenhowtos:slackware_admin:grub_on_first_install [2013/11/13 09:01 (UTC)] (current) ruario
Line 1: Line 1:
 <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). -->
-====== Setting up Grub on install (without rebooting) ======+====== Setting up GRUB 2 on install (without rebooting) ======
  
-====== Sources ====== +There is GRUB in A series of Slackware-14.1. If you want to install GRUB immediately after install (and before restarting), below is a simple method that assumes you use traditional BIOS and MBR partitioning (if you plan to use GPT instead of MBR partitioning, refer to [[howtos:slackware_admin:installing_with_gpt_without_uefi#grub_2|Grub 2 with GPT and a BIOS motherboard]] instead):
-<!-- If you are copying information from another source, then specify that source --> +
-<!-- * Original source: [[http://some.website.org/some/page.html]] --> +
-<!-- Authors are allowed to give credit to themselves! --> +
-<Originally written by [[wiki:user:ryanpcmcquen | ryanpcmcquen]]> +
-<!-- * Contributions by [[wiki:user:yyy | User Y]] --> +
- +
-If you want to install GRUB immediately after install (and before restarting), here is a simple way:+
  
 After the message: After the message:
 "Installation of Slackware Linux is complete." "Installation of Slackware Linux is complete."
-  $ mkdir /mnt/hd 
-   
-Mount your root partition, for example: 
-  $ mount /dev/sda3 /mnt/hd 
  
-Then chroot in: +chroot in: 
-  chroot /mnt/hd +  chroot /mnt 
-  grub-install /dev/sda +Then install GRUB: 
-  grub-mkconfig -o /boot/grub/grub.cfg+  grub-install /dev/sda 
 +  grub-mkconfig -o /boot/grub/grub.cfg 
 +<note important>This assumes you are using the disk /dev/sd**a**, adjust if this is not the case.</note> 
 +  # exit 
 +  # reboot
  
-GRUB will bark a warning at you like:  +Enjoy!
-  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 +P.S. Make sure to run: 
-  $ reboot+  # grub-mkconfig -o /boot/grub/grub.cfg 
 +After every kernel upgrade.
  
-Enjoy!+====== Sources ====== 
 + 
 +  * Originally written by [[wiki:user:ryanpcmcquen | ryanpcmcquen]] 
 +  * Link to GPT article by [[wiki:user:ruario|ruario]]
  
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
-<!-- You must remove the tag-word "template" below before saving your new page --> +{{tag>howtos grub author_ryanpcmcquen}}
-{{tag>howtos template}}+
 howtos:slackware_admin:grub_on_first_install ()