LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-02-2019, 12:54 AM   #1
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Rep: Reputation: 17
Ubuntu install modified EFI partition on another drive


The machine is MSI Titan GT80 SLI UEFI laptop.

I multiboot Win one, Windows two (clone of one) and now Ubuntu. During the install I removed the primary Win SSD and Ubuntu modified the EFI partition of the clone Windows 10. This is bizarre, since I explicitly directed the install to go to SSD #3 and assumed the install would not touch either #1 or #2. Yet it did.

I had to run diskpart, assign a drive letter to EFI part and then remove all the ubuntu stuff from there. I think that's a flaw in the install process. Why would it modify disks that are clearly not a part of its install process?
 
Old 08-02-2019, 02:59 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Probably because the firmware determined which EFI partition it will reference. Bad assumption on your part I would suggest.
I've never seen the sense in having more than one on a machine.
 
Old 08-02-2019, 06:28 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,541

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
That seems to be the default, at least with the Ubuntu Grub2 on an EFI install meaning it installs Grub files to the EFI partition on the drive it sees as sda. See post 5 at the link below. As far as I know, nothing has changed since then.

https://ubuntuforums.org/showthread.php?t=2344948

The site below discusses this 'bug' in detail with numerous users having the same problem. Posts 19-23 by the same person who posted at Ubuntu Forums gives some details on his attempts and seems to have a possible solution given in post 23? In post 19, he mentions doing an install EFI with Fedora to sdb which apparently succeeded so it might just be Ubuntu? Good luck.

https://bugs.launchpad.net/ubuntu/+s...y/+bug/1396379
 
Old 08-02-2019, 09:08 AM   #4
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by syg00 View Post
Probably because the firmware determined which EFI partition it will reference. Bad assumption on your part I would suggest.
I've never seen the sense in having more than one on a machine.
I create a snapshot of Windows on a monthly basis so that if I get a virus or MS releases some broken update (like 1809) that wipes out drivers, I can always instantly get back in the game by booting off the clone drive. It's near instant and there is no recovery or trying to fix it. It's not cheap as I have a SSD that's on standby and only used for the purpose of snapshots as often or as rarely as needed.
Over the years I found out it's the best compromise. Data is expensive and so is days of downtime.

Now I added Linux to this equation but it's there is no snapshot. I might back up critical data.

My UEFI machine will not let me add any Linux drive to its BCD configuration, MS locked it up. So during the boot cycle I have to hit F11, get the list of bootable devices and select Ubuntu. It's either that or I can go into BIOS, make the Ubuntu drive the Boot choice #1 and then configure Grub to chain the other Windows disks.

My point is, any distro should not access a drive other than where it has been told to install explicitly and put Ubuntu in another drive's EFI partition. It only did it to the clone disk since I had the foresight to remove the primary Windows 10, otherwise I would have ended up performing this procedure there as well:

https://linuxbsdos.com/2015/09/05/ho...in-windows-10/

run diskpart select Windows disk, select the EFI part and then manually delete the Ubuntu directory that should not be there.
Really not a big deal but took me a while to find it. If both disks EFI partitions are affected, the machine won't boot anymore until I remove one of them.
Took me a while to diagnose this.

Last edited by etcetera; 08-02-2019 at 09:10 AM.
 
  


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] Ooooy. EFI boot mmx64.efi.efi not found bulgin Linux - Newbie 12 12-20-2018 11:03 AM
[SOLVED] Can't find /boot/efi/EFI/Slackware/vmlinuz kernel configuration ironQiu Slackware 4 02-09-2015 06:21 AM
boot efi disk with without a non-efi bios pc... masavini Programming 1 11-12-2013 08:48 PM
EFI main GPT overwritten everytime (when windows 7 runs) - structure of EFI masuch Linux - Newbie 2 07-20-2012 02:49 PM

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

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