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 revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
howtos:slackware_admin:grub_on_first_install [2013/09/28 19:32 (UTC)]
ryanpcmcquen
howtos:slackware_admin:grub_on_first_install [2013/11/13 08:21 (UTC)]
ruario [Setting up GRUB 2 on install (without rebooting)]
Line 2: Line 2:
 ====== Setting up GRUB 2 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:** This assumes you are using the disk /dev/sda, adjust as needed. 
 +  # 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}}+

In Other Languages
QR Code
QR Code howtos:slackware_admin:grub_on_first_install (generated for current page)