LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-15-2021, 02:49 PM   #1
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,713

Rep: Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392
Update to grub-2.06 using grub-install on a uefi system.


My grub menu is still showing 2.04, which makes sense to me because I figure I need to re-run grub-install to get grub upgraded to the newest version on my system. However I have only ever installed grub during the post slackware install. I have never done it on a working system. Can anyone explain the steps to reinstall grub using grub-install on a working system. I have a pretty good understanding on how to do this, but I don't want to overlook anything and be left unable to boot.
 
Old 06-15-2021, 05:29 PM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,713

Original Poster
Rep: Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392Reputation: 1392
Nevermind I got it, For anyone wanting to know this is how you can update your grub binaries by re running grub-install on a working system. This information assumes your using UEFI and not Bios, and your on a x86_64 install.

1) Boot the -current install disc in uefi mode. Then launch the first entry for the Slackware 15 installer.
2) After selecting your keyboard layout and logging in as root type "lsblk" to list your drives and partitions.
3) mount your existing slackware installation, efi directory, and other directory's so you can make changes to the installed system, then chroot into the new system and re-run grub-install like this...
Code:
mount /dev/<slackware_install_partition> /mnt
mount /dev/<efi_directory_partition> /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do mount -B $i /mnt$i; done
chroot /mnt /bin/bash
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
grub-mkconfig -o /boot/grub/grub.cfg
4) If you got no errors on the above then type exit and reboot.

EDIT

So I didn't realize I could just upgrade using grub-install on the running system. So the above information would only be relevant if you couldn't boot slackware and needed to reinstall grub.

Last edited by Daedra; 06-15-2021 at 08:07 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
UEFI Class 3 :: To use UEFI, or not to use UEFI? jheengut Slackware 19 12-30-2020 09:24 AM
[SOLVED] Install non-UEFI system from a UEFI USB? andrew.46 Slackware 10 04-08-2020 11:28 PM
how to install linux mint side by side windows into an uefi machine without uefi partition valgalsan Linux - Newbie 2 11-03-2015 12:25 PM
Can't install LM 32bit with UEFI disabled on UEFI Asus X200MA laptop dblaisde Linux Mint 3 10-15-2015 05:37 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration