[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

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:slackware_admin:grub_on_first_install [2013/09/28 21:29 (UTC)] – [Sources] Moved 'sources' section to the bottom, removed 'template' from the tag list. alienbobhowtos:slackware_admin:grub_on_first_install [2013/11/13 09:01 (UTC)] (current) ruario
Line 2: Line 2:
 ====== Setting up GRUB 2 on install (without rebooting) ====== ====== Setting up GRUB 2 on install (without rebooting) ======
  
-If you want to install GRUB immediately after install (and before restarting), here is a simple way:+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):
  
 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 ====== ====== Sources ======
  
   * Originally written by [[wiki:user:ryanpcmcquen | ryanpcmcquen]]   * 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.-->
 {{tag>howtos grub author_ryanpcmcquen}} {{tag>howtos grub author_ryanpcmcquen}}
 howtos:slackware_admin:grub_on_first_install ()