LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-06-2019, 02:46 PM   #1
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 170

Rep: Reputation: Disabled
Cloned Slackware will not boot


My question is twofold. First how to fix this problem, but second and more importantly how to prevent this problem from occuring again.

Using Clonezilla I created an image of Hard drive A on Computer A.
I booted up Computer B and Hard Drive B into clonezilla and restored the image!

Hard drive A and Hard Drive B will boot up perfectly in Computer A. Neither hard drive will boot up in Computer B! I can see when I boot up on Computer B that uefi is not showing as a boot option and I presume that this is the problem.

I am using Slackware Current, Elilo, GPT and identical computers in every respect.

In the past when I have done this I was creating an image of Slackware 14.2 (not current), restored image and then I always had to boot up on slackware setup and run eliloconfig again to do whatever eliloconfig does and then the hard drive would boot up on the second computer.

I can't do that this time because I am using Slackware Current as the image and I have Slackware 14.2 (original) as the Slackware Setup and I get an error message libefivar.so.1 is missing when trying to run eliloconfig.

If I download Slackware Current ISO and run setup with that, will I be able to run eliloconfig then. I am assuming that the reason it is failing is because I am running Current, but the setup install is running original 14.2 and presumably an older version of elilo and the current is running the latest kernel whereas the original is obviously running an older kernel.

Which brings me to my second question. How do I clone a hard drive for another computer without having to run setup every time to run eliloconfig for the second computer. I don't think that I am doing this correctly. Or is the normal procedure to run setup and run eliloconfig?

Actually a third question - do I need to covert a hard drive from MBR to GPT before restoring image or will this happen when I restore from an image as I may have one or two computers to do that might be running MBR?

Thank you.
 
Old 03-06-2019, 08:35 PM   #2
baumei
Member
 
Registered: Feb 2019
Location: USA; North Carolina
Distribution: Slackware 15.0 (replacing 14.2)
Posts: 365

Rep: Reputation: 124Reputation: 124
None of my computers are new enough to have UEFI. However, I have been reading about it because I expect to need to know in the future.

I have read that some computers there was a 'switch' in the BIOS configuration, to use either UEFI or the old method. Does your second computer have such an option in the BIOS? If so, is it set for UEFI?

Also, from what I have read, for the UEFI there is a table stored in NVRAM on the motherboard, and I gather that when one runs 'elilo' it stores what is needed in this NVRAM --- and without the proper information in the NVRAM the UEFI software does not know what to do with the partitions on the hard-drive.

So, I think you will have to boot the second computer somehow, and run 'elilo'...

Is there some reason not to make a bootable USB flash-drive, using "usbboot.img" from
"https://mirror.slackbuilds.org/slackware/slackware64-current/usb-and-pxe-installers/", and then boot your computer with it, pass to the kernel the appropriate partition on your hard-drive, login to your system on the hard-drive, and run 'eliloconfig' and so on?
 
Old 03-06-2019, 08:41 PM   #3
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
The Install disk should boot any bootable partition from the very first screen. Then you can run elilo and fix this. It's fast and easy.
 
Old 03-07-2019, 07:12 AM   #4
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 170

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by enorbet View Post
The Install disk should boot any bootable partition from the very first screen. Then you can run elilo and fix this. It's fast and easy.
This is what I tried to do, but eliloconfig won't work - presumably because I am running current and the Install disk is running 14.2. I will try downloading the latest install disk from current.
 
Old 03-07-2019, 07:14 AM   #5
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 170

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by baumei View Post

I have read that some computers there was a 'switch' in the BIOS configuration, to use either UEFI or the old method. Does your second computer have such an option in the BIOS? If so, is it set for UEFI?

Also, from what I have read, for the UEFI there is a table stored in NVRAM on the motherboard, and I gather that when one runs 'elilo' it stores what is needed in this NVRAM --- and without the proper information in the NVRAM the UEFI software does not know what to do with the partitions on the hard-drive.

So, I think you will have to boot the second computer somehow, and run 'elilo'...

Is there some reason not to make a bootable USB flash-drive, using "usbboot.img" from
"https://mirror.slackbuilds.org/slackware/slackware64-current/usb-and-pxe-installers/", and then boot your computer with it, pass to the kernel the appropriate partition on your hard-drive, login to your system on the hard-drive, and run 'eliloconfig' and so on?
Yes both computers are set to boot UEFI. I believe that the issue is as you stated. I need to write to that table NVRAM on the motherboard which is what eliloconfig does.

If I cannot download a current install and run eliloconfig from that, I will try your suggestion of creating a usb boot disk from slackware current and running eliloconfig that way.

Thanks
 
Old 03-08-2019, 01:44 AM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
If you haven't found it already, have a look below:

http://bear.alienbase.nl/mirrors/sla...4-current-iso/
 
Old 03-09-2019, 02:03 PM   #7
dalacor
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 170

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
If you haven't found it already, have a look below:

http://bear.alienbase.nl/mirrors/sla...4-current-iso/
You are a star! When I went to slackware.com, I could not find a current ISO (only 14.2), so you saved me a lot of time hunting around to find a current iso.

I am pleased to report that downloading the latest current and booting into setup on this allowed me to run eliloconfig and everything now works beautifully.

So I have answered question 1 - how to fix the problem and now that I understand that I am needing to update the nvram area of each motherboard I understand that I need to run eliloconfig after restoring an image, so it is not the fault of clonezilla, as each machine has a different motherboard and thus I need to run eliloconfig on each machine.

Thank you to all for your help. I understand the process better and I fixed the problem. Now if I can just find out why I am not receiving email notifications from linux questions (as I was until last week), then all wil be well with the world!
 
  


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
Not able to boot with FC25 cloned image from 1-Dell Latitude 5490 laptop to other machine of same type gurukap Linux - Kernel 7 10-12-2018 02:39 AM
How to make a cloned partition boot? Q.. Linux - General 4 12-25-2007 08:41 PM
Cloned harddisk doesn't boot with LILO in MBR Kristian2 Slackware 8 07-24-2007 01:00 PM
boot problem with cloned hard drives stevebrooks452 Linux - Software 4 03-23-2006 03:07 AM
Saving cloned MAC address in Slackware darreng23 Linux - Networking 1 04-20-2005 06:36 AM

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

All times are GMT -5. The time now is 08:08 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