LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-10-2017, 06:03 AM   #1
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
UEFI - booting problem


I took a perfectly functioning GPT/UEFI boot and moved it from an old machine to a new machine - which didn't even recognise it as bootable.

A live boot (from DVD) confirmed that data in various partitions was quite readable.

Was I being naive in thinking it ought to work?

Is there a fix for this - or do I need to do a complete reinstall?

BTW I have two disks, so I could experiment on the second one, if need be.

Jeremy
 
Old 05-10-2017, 06:06 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Did you check that the BIOS in the new machine has been configured to support GPT/UEFI?
 
Old 05-10-2017, 06:12 AM   #3
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Original Poster
Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Well - it's a UEFI BIOS and a new machine, had to fight to switch off Secure Boot.
 
Old 05-10-2017, 07:07 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Chroot into the Linux hard disk system and run grub-install on it. That will add an entry to NVRAM on the motherboard.
If lilo, can't help.
 
1 members found this post helpful.
Old 05-10-2017, 09:03 AM   #5
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Original Poster
Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Sorry that this is a bit basic, but I've never done a chroot before...

I tried (as root):-
Code:
mkdir /mnt/dir-name
mount /dev/sda2 /mnt/dir-name
chroot /mnt/dir-name
grub-install
( /dev/sda2 is my / filesystem)
( /dev/sda1 is the EFI partition)

Running grub-install (no parameters) gave an error - I have a 64 bit system.
"Installing for i386-pc Platform"
"...Install device isn't specified"

Last edited by JeremyBoden; 05-10-2017 at 09:05 AM.
 
Old 05-10-2017, 09:20 AM   #6
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
You are going to have to mount your EFI partition also so that grub can write to it.
Code:
mount /dev/sda1 /mnt/dir-name/boot/efi
or after you have chroot'ed
Code:
 mount/dev/sda1 /boot/efi
At lease that is how I did it on my system.
 
Old 05-10-2017, 10:13 AM   #7
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Original Poster
Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Sorry, this isn't working for me - and its still trying to run the 386 version of grub-install.
 
Old 05-10-2017, 12:40 PM   #8
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Original Poster
Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
I've found a workround (well not really)...

If I boot from the super_grub2_disk_i386_pc_2.02s9.iso (on a USB stick),
Get it to list all Boot methods, select a non-UEFI method,
Then it boots, presumably in a non-UEFI kind of way.

I get to see all my data - even mounting 5 primary partitions on the main disk.
It's a non-uefi boot though.

I tried running grub-update - but it says I'm not allowed to do this successfully.
 
Old 05-10-2017, 01:01 PM   #9
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Recently, I had a similar issue (previously booting SDD with UEFI; connected to a new motherboard): http://www.linuxquestions.org/questi...ne-4175605150/
I solved it in a certain way.
Now, I would create a CD with rEFInd on it http://www.rodsbooks.com/refind/getting.html
Do it and it should make your PC booting again.
 
1 members found this post helpful.
Old 05-10-2017, 01:44 PM   #10
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Original Poster
Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by floppy_stuttgart View Post
Recently, I had a similar issue (previously booting SDD with UEFI; connected to a new motherboard): http://www.linuxquestions.org/questi...ne-4175605150/
I solved it in a certain way.
Now, I would create a CD with rEFInd on it http://www.rodsbooks.com/refind/getting.html
Do it and it should make your PC booting again.
@Floppy - you are an absolute star - I just installed the deb package and on reboot "it just worked".
I've been trying to fix these problems on my new PC for two days now.
So I'm so happy now!!!

Also thanks to the author of rEFInd too!
 
Old 05-10-2017, 04:13 PM   #11
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by JeremyBoden View Post
@Floppy - you are an absolute star - I just installed the deb package and on reboot "it just worked".
I've been trying to fix these problems on my new PC for two days now.
So I'm so happy now!!!

Also thanks to the author of rEFInd too!
I donate them 10 USD.
I made it.
I needed 4 days.
You are better.

Last edited by floppy_stuttgart; 05-10-2017 at 04:15 PM.
 
Old 05-10-2017, 06:59 PM   #12
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Original Poster
Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Good idea - I've sent a small donation - money is rather tight at the moment.
 
  


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
[SOLVED] Slackware 14.2 , UEFI, Dual Booting swider Slackware 11 11-27-2017 08:11 AM
Dual Booting Problem with UEFI disabled, Legacy enabled LasVegasUser Linux - Newbie 11 05-28-2017 09:32 PM
Booting to Linux on a win8 UEFI PC smokey2014 Linux - Newbie 9 01-22-2015 09:48 PM
Multi-booting with UEFI Amaranth14 Linux - General 4 12-18-2014 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:14 PM.

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