LinuxQuestions.org
Visit Jeremy's Blog.
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 09-26-2019, 02:59 PM   #1
joseghast
LQ Newbie
 
Registered: Jun 2019
Distribution: slackware
Posts: 6

Rep: Reputation: Disabled
Can I move ESP from one HDD to another (macbook)?


First a bit of context:

I have a 2008 macbook that has been running slackware for a couple of months now. I'm very happy with it but when I did the initial installation I was just testing the distro to find out if I like it. I do (so much so that I now have it on another machine as well :-) so I wanted to enable encryption on my macbook.

My idea was to re-install slackware and follow the instructions from alienbob here.

However my macbook has 2 drives that were installed when I bought it from the previous owner. An SSD for the system and the previous HDD as a storage instead of the CD-ROM.

I'm currently using refind (installed from mac os x) to manage the booting as I started dual booting into linux and mac os x, however there's only linux on the machine now.

Whilst installing slackware I noticed that the ESP is on the HDD (storage) and I'm wondering if I could move it to the SSD (system drive). This is not *really* necessary, but I imagine the SSD will be less likely to fail and I am also curious to find out if this is possible.

This is what I think my options are:

1. Leave everything as is and just use the current configuration. If it ain't broke don't fix it, etc.

2. Try and move the partition. I thought it might be enough creating a partition of the same size on the SSD and then using dd to copy the ESP across and then wipe the HDD completely. I've been having a look on the web and I've found conflicting information: some say there won't be a problem (albeit they're not usually talking about macs) and others that I would need to modify the efivars and the nvram to do this using efibootmgr.

3. Just go all the way default by wiping everything and then installing elilo when prompted by the installer. Not necesarilly against this, but not sure if it will work either as if I wipe everything I'm assuming elilo won't find an ESP to be installed to and will fail. However I've never installed it before so not sure what to expect.

Has anyone here moved the ESP between drives? On macs specifically? Am I very wrong?

Thanks in advance!
 
Old 09-26-2019, 05:16 PM   #2
rogan
Member
 
Registered: Aug 2004
Distribution: Slackware
Posts: 216

Rep: Reputation: 117Reputation: 117
ESP=EFI system partition I assume ?
It's formatted using FAT or some such. It does not support discard/trim, which probably isn't important
since it's so small. I have no experience installing on macbooks, but if it works as normal pc's you
should be able to change your boot drive to be the ssd instead. Then it's just a question of doing a
normal efi install (read up on that regarding macbooks).
 
Old 09-26-2019, 05:34 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,154

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Caveat - the last Apple object I purchased was a Newton.

EFI was designed to be agnostic - UEFI was unified; then the manufacturers got to decide how they would implement it. Fiasco ensued - I imagine Apple would be amongst the worst.
In a normal world that means the firmware goes looking for a partition of the appropriate type and proceeds to load your system. Copying it is fine - I would never use dd - but I make sure the old partition is always deleted to ensure there are no issues with the enumeration of the drives by the firmware.
 
1 members found this post helpful.
Old 10-02-2019, 07:33 AM   #4
joseghast
LQ Newbie
 
Registered: Jun 2019
Distribution: slackware
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks for the replies!

I'm still dealing with this, in the middle of setup at the moment. But just in case anyone interested in installing on an older MacBook (2008, black plastic) finds this, here's what I've done:

I tried option 2 above by wiping the SSD, creating a new EFI System Partition with cgdisk and copying the files from the old partition onto the new one. I then wiped the old ESP and rebooted. This does not work: I just got to a weird grub error. I suspect this has something to do with the way refind works as I've never installed grub on this machine.

I'm now not inclined to try with elilo as when I tried to boot Slackware with the usbimage (it worked flawlessly with my iMac last week) it threw an error saying "LocateHandle GopProtocol failed". I tried multiple times with different options, huge.s and kms.s kernels as well as booting in text mode but nothing worked.

I'll have to re-istall refind from slackware once I'm done installing, I'll create the USB when prompted in the setup and hopefully boot from there to then install refind and leaver everything as it was.
 
  


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
I am inheriting a MacBook Pro (last year's model). What is the best Linux system for a MacBook? JMacSmith Linux - Desktop 4 02-27-2018 10:37 PM
[SOLVED] Add a way to search for Threads (esp ZRT) where member has made only ONE post ever !!! LQ Suggestions & Feedback 3 10-03-2017 03:15 PM
kodak all in one printer esp c310 poppop-44 Linux - Newbie 2 10-09-2013 11:37 AM
a few hard-one useful tips for software install, esp. for Apache/Tomcat rholme Linux - General 2 06-05-2008 06:31 AM
Linux on a macbook/macbook pro... any experiences/problems, or is it even necessary? enigma_0Z Linux - Laptop and Netbook 13 09-14-2007 10:29 PM

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

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