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-24-2017, 12:30 PM   #1
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
UEFI - Move Existing Drives to New Computer


I have a Slackware 14.2 UEFI mode install and I need to move the disks from a PC that died into a replacement PC (same make and model PC). I also compile my own kernels, so I don't want to remove/overwrite any of those in the EFI directory if possible.

Can I boot into a Slackware 14.2 install CD (or Eric's Slackware Live Edition) and do the following to make the boot entry in NVRAM? /dev/sda1 is the EFI partition and this is an mSATA drive.

Code:
efibootmgr -c -d /dev/sda -p 1 -l "\\EFI\\Slackware\\elilo.efi" -L "Slackware"
I've seen mention of using eliloconfig but I don't know if it's designed for this type of situation.

I don't have much experience with UEFI, other than the 14.2 install about a year ago, and I've heard bad things can happen if this isn't handled correctly so I just want to be safe.
 
Old 06-24-2017, 12:48 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Probably your machine will boot as the previous one without doing anything, as you already have all that's needed in the ESP (EFI System Partition), provided there be no change in the partitions' naming.

If you also want to have a boot entry for Slackware in your new machine firmware's menu (in NVRAM) you can either type the efibootmgr command manually as root, or run eliloconfig, which will kindly proposes you to do that for you, as you like.
 
Old 06-24-2017, 01:54 PM   #3
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Original Poster
Rep: Reputation: 115Reputation: 115
Thanks Didier. I should have mentioned that I've installed the boot disk but the new PC just boots to an EFI command line prompt (EFI Shell Version 2.31). The BIOS does recognize the disk and has it listed third in the boot order, but it won't boot from it. The disk is also appears to be listed as fs0 in the EFI Shell, but it won't boot from the EFI menu either. I'll try eliloconfig, as it has some safety checking in the script.
 
Old 06-24-2017, 02:09 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Well, using the EFI shell you should be able to load the file elilo.efi. Use the built-in helps to find the commands, or a web search engine with "EFI shell commands" as argument.
 
Old 06-24-2017, 02:47 PM   #5
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Original Poster
Rep: Reputation: 115Reputation: 115
I ran the efibootmgr command I listed above (from the Slackware 14.2 install DVD) and the PC now boots into Slackware automatically. I did see some warning/error messages flash by on the console, but I'll try to catch them and then research.
 
Old 06-24-2017, 04:41 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
For the records and per the UEFI specification, the firmware should load automatically the boot image, provided it be (re)named BOOTx64.EFI.

As you have an EFI shell, another solution would be to write a small text file /boot/efi/startup.nsh with only this line:
EFI\Slackware\elilo

To know more see the UEFI Specification Version 2.7 and the UEFI Shell Specification Version 2.2 (the latest at time of writing) can be downloaded from this page.

Last edited by Didier Spaier; 06-24-2017 at 04:55 PM.
 
  


Reply

Tags
disk, efibootmgr, elilo, migrate, uefi



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
How to move a dual boot UEFI/GPT setup to an additional SSD? mailtomsa Linux - General 4 10-20-2016 12:06 AM
UEFI and GPT(GUID) and BIOS and drives and partitions SaintDanBert Linux - Hardware 4 05-15-2014 10:05 AM
Hard Drives and UEFI tb75252 Linux - Hardware 4 12-07-2013 12:48 PM
Full-drive encryption for UEFI drives Ulysses_ Linux - Security 4 11-02-2013 08:30 PM
How to move open office doc from Linux computer to Windows computer Phoenixink Linux - Software 6 02-15-2007 07:09 AM

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

All times are GMT -5. The time now is 01:06 AM.

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