LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-14-2018, 08:16 PM   #1
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Rep: Reputation: 40
Question UEFI is "confused" with 2 drives


hello,
full story:
dell inspiroon17 came with a regular 2.5' HD. I repartitioned the drive and added Fedora. Both MS and Fedora have EFI installs and boot with no issues.
Last week i duplicated this drive over to same size SSD. Took HD out and made the SSD a primary drive. All work great can boot into ms and Linux.
Tonight i decided to add the old HD as a secondary drive by replacing DVD .
And this is when the pain begins.
Both drives are with EFI. when i replaced DVD with HD, i can see it in the BIOS, but when i boot, the HD seemed to start booting first. I tried to remove the HD from the list of the boot option in BIOS, but it re-appears after the reboot.
I'm very much puzzled. Any pointers are very welcome.


Update:
here is the situation with old HD been out of DVD tray. that is the only way how i can boot into the machine.:
Code:
 efibootmgr -v
BootCurrent: 0006
Timeout: 1 seconds
BootOrder: 0007,0005,0006
Boot0000* test	PciRoot(0x0)/Pci(0x1f,0x2)/Sata(1,65535,0)/HD(1,GPT,a7009ad2-1e95-4f45-b361-bb6393acdca1,0x800,0xfa000)/File(\EFI\Boot\bootx64.efi)
Boot0001  Fedora	HD(1,GPT,a7009ad2-1e95-4f45-b361-bb6393acdca1,0x800,0xfa000)/File(\EFI\fedora\shimx64.efi)
Boot0002  Fedora	HD(1,GPT,a7009ad2-1e95-4f45-b361-bb6393acdca1,0x800,0xfa000)/File(\EFI\fedora\shimx64.efi)
Boot0003  Fedora	HD(1,GPT,a7009ad2-1e95-4f45-b361-bb6393acdca1,0x800,0xfa000)/File(\EFI\fedora\shimx64.efi)
Boot0004  Fedora	HD(1,GPT,a7009ad2-1e95-4f45-b361-bb6393acdca1,0x800,0xfa000)/File(\EFI\fedora\shimx64.efi)
Boot0005  Fedora	HD(1,GPT,a7009ad2-1e95-4f45-b361-bb6393acdca1,0x800,0xfa000)/File(\EFI\fedora\shimx64.efi)
Boot0006* UEFI: SATA SSD	PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0,65535,0)/HD(1,GPT,a7009ad2-1e95-4f45-b361-bb6393acdca1,0x800,0xfa000)..BO
Boot0007* Fedora	HD(1,GPT,a7009ad2-1e95-4f45-b361-bb6393acdca1,0x800,0xfa000)/File(\EFI\fedora\shimx64.efi)

Last edited by DBabo; 10-14-2018 at 08:42 PM.
 
Old 10-14-2018, 08:19 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
check for dup UUID because you cloned it, that is my guess.
 
1 members found this post helpful.
Old 10-14-2018, 08:59 PM   #3
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by BW-userx View Post
check for dup UUID because you cloned it, that is my guess.
where do i look for that ?
 
Old 10-14-2018, 09:00 PM   #4
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Original Poster
Rep: Reputation: 40
here is the partition table for SSD drive:
Code:
(parted) print                                                            
Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 46884096
blocks) or continue with the current setting? 
Fix/Ignore? i                                                             
Model: ATA SATA SSD (scsi)
Disk /dev/sda: 1024GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  525MB   524MB   fat32        EFI System Partition          boot, esp
 2      525MB   660MB   134MB                Microsoft reserved partition  msftres
 3      660MB   232GB   232GB   ntfs         Basic data partition          msftdata
 6      232GB   233GB   1074MB  ext4
 7      233GB   725GB   492GB                                              lvm
 4      987GB   988GB   894MB   ntfs                                       hidden, diag
 5      988GB   1000GB  12.1GB  ntfs                                       hidden, diag

Last edited by DBabo; 10-14-2018 at 09:37 PM.
 
Old 10-14-2018, 09:18 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
sudo blkid gives uuid's on all mounted media.
 
1 members found this post helpful.
Old 10-14-2018, 09:37 PM   #6
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by BW-userx View Post
sudo blkid gives uuid's on all mounted media.
oh, i see. But i can't boot when i have the HD plugged in.
Probably i can try with linux - https://sourceforge.net/p/clonezilla...read/cbab30c6/

Last edited by DBabo; 10-14-2018 at 11:11 PM.
 
Old 10-15-2018, 06:28 AM   #7
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
You need a sata to usb adapter like this:

https://www.amazon.com/Vantec-SATA-I...r+cb-isa225-u3

That way you can boot up your system without the regular hard drive installed. Then using the above adapter, plug the old hard drive in, run your tests, repartition and format, etc. These adapters are very useful tools.
 
1 members found this post helpful.
Old 10-15-2018, 07:13 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Yep I got a few of these ones, they're a little more compact, 5 US bucks

USB 3.0 To 2.5" SATA 7+15Pin Hard Drive Adapter For SATA 3.0 SSD HDD w/ Cable

that one @kilgoretrout showed you , got multi hook ups. Not to dis his, because that is a useful too, just know you got options.

I've never had to do this, but gParted has a selection New UUID' when I right click on a partition. so to me all you'd have to do is boot your system, change oneof them's UUID do your updates to where and whatever file(s) you need to information of this change and you should be right a rain again.

Last edited by BW-userx; 10-15-2018 at 07:19 AM.
 
1 members found this post helpful.
Old 10-15-2018, 02:11 PM   #9
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,483

Rep: Reputation: Disabled
As you removed your DVD drive to add your HDD, maybe your boot options allow the DVD as a boot device before the hard disk; that is, it may be booting it first because it is where your DVD would be in the boot order(?).
 
1 members found this post helpful.
Old 10-15-2018, 02:18 PM   #10
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,003
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
My bet is it's a combination of what people are saying.

UEFI detects a ESP partition on both drives, therefore add the boot options of both drives.
The HDD is detected first, so boots first.
The UUID of both drives are identical due to the cloning, so the second drive is seen as a duplicate UUID and interferes with booting.

I agree with the use of a USB adapter to reformat/wipe the HDD, then it should work fine.
 
1 members found this post helpful.
Old 10-15-2018, 10:20 PM   #11
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Original Poster
Rep: Reputation: 40
Gents,
after long and thoughtful internal dialog about the importance of keeping the original content of the drive. Somewhere between 3rd and 4th beer, i plugged the HD into usb enclosure and removed partitions. put back into DVD and (obviously) everything boots perfectly fine.

BW-userx,
i should have tried your suggestion! ekhh . The idea of dealing with UUIDs on windowze was looking everything but interesting, so i just used the "iron fist" approach.

ALL:
thank you for your ideas. I do agree with the general conclusion that identical UUIDS were messing the system up preventing from booting properly.
thank you!
 
  


Reply

Tags
inspiron, second drie, ssd, uefi



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
UEFI/GPT Slackware64 14.1 install "no Linux partitions detected" error. globetrotterdk Slackware 11 02-22-2016 05:23 AM
Elementary Os Freya 0.3.1 UEFI install "workaround" (the grub2 shell only - error) Tih8710 elementary OS 0 11-07-2015 02:45 PM
A Win8 "slave" disk is using "UEFI secure boot" - How to copy data from it with Linux ghost123uk Linux - Software 8 08-15-2015 06:28 AM
Confused about "generic" vs. "386" linux kernel SaintDanBert Linux - Software 6 09-29-2009 11:51 PM
hard drives come up "no partition table" and "in use by another program" marti972 Linux - Newbie 3 03-16-2009 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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