[SOLVED] UEFI - Move Existing Drives to New Computer
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.