r/thinkpad•
omrog

Trying to get an x260 to boot an existing linux drive.

Question / Problem

Hi all. I had an x230 that ran a luks-encrypted debian (testing) installation but the machine was falling to pieces so I got myself an x260 as an upgrade.

Rather than messing about reinstalling linux and porting things over, I thought I'd be able to just swap out the SSD's (and maybe fix some package issues) and use the new machine. Unfortunately I'm having trouble getting the x260 to see the drive as being bootable. It can see the drive but doesn't seem to think it's bootable.

It'll boot debian live from a pendrive fine, I've tried turning off uefi (which stops the pendrive booting) and disabling secureboot but so far no luck.

I wonder if it's looking in a different place for the MBR, maybe grub reinstallation might help?

Oddly the 230 can boot the Windows 10 installation that came with the 260 fine.

Posted Aug 26, 2020, 12:10 PM UTC · edited

012
[deleted]•

[removed]

1
K14_DeployX230t•

Just reinstall. It's the best way.

1
omrogOP•

I'd really rather not, it will require reinstating home and keys.

If the hardware is similar enough windows can cope with moving between them I am certain linux can manage it, if it can boot the thing at present it's not getting far enough for linux itself to have errors, it's not even hitting grub.

2
K14_DeployX230t•

Try enabling CSM. But realistically, you're moving to a new computer so it should be done anyway.

1
omrogOP•

That didn't seem to make any difference. It looks like my 230 was set to UEFI only and CSM disabled so I must've been on a UEFI compatible version of linux anyway.

Could it be something to do with the Security Chip? This has always been disabled on my 230, it looks like I can turn it off and also erase the keys for it. I was reluctant to do that as I wasn't sure what it was for and maybe it was to do with the HDD (proprietary encryption?), but that's clearly not the case as my other machine can boot the windows installation.

2
K14_DeployX230t•

If you're that serious about not rebuilding the Linux (which you should do anyway just for cleanliness) but yes it could be. Maybe also go into the boot order and check the drive shows up at all.

A lot of things change from one machine from the next. Even if it boots, it won't work very well. I'm guessing it's video drivers, which you can't really fix without rebuilding.

1
[deleted]•

boot into a portable Linux iso, then run "grub-install /dev/sdx" if it's BIOS

Google for UEFI version if that doesn't work on UEFI

Should reinstall Grub and allow you to boot

1
[deleted]•

But your issue is likely isn't Grub, it's likely the security config. You made a comparison to Windows, but Windows isn't this advanced compared to your setup. A regular Linux install with basic security can be plugged into any laptop and, yes will need some minor config, will boot. A full reinstall is your best option regardless, it's always been a general rule of thumb to reinstall instead of transfer unless hardware is identical. That goes for Windows and Linux

1
omrogOP•

Sorted it thanks to a mixture of your help and an article in the Arch wiki. It looks like a UEFI/boot thing, it was looking in the wrong place for the bootloader. I shoved the drive back in the old laptop and ran grub-install --target=x86_64-efi --efi-directory=/boot/efi --removable

​

Now it seems happy on either machine, thanks!

I'm probably going to reformat to go full cleanly, but will backup my packgaes list and rysync home. I can do that onto the other SSD now and can even have a dry run using the dying x230 while having a fully functional machine!

1