LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-06-2018, 05:41 PM   #1
etcetera
Member
 
Registered: Aug 2004
Posts: 132

Rep: Reputation: 15
How to designate a Linux drive as bootable in BIOS


I run MSI Titan GT80, it has 4 different SSDs:

1) PCIe NVMe 2280 with Win10 on it
2) PCIe NVMe 2280 that's a clone of (1)
3) M.2 SATA 2280 that has Fedora on it
4) Windows Data Disk 2.5" SATA

I use bcdedit / bcdboot utility to designate (1) and (2) as bootable. By default, it goes to (1). How do I designed (3) to be one of the boot options that I can pick from the BIOS boot menu?

When I ran Fedora installer, I specifically pointed to the (3) SSD and only it, no other drives were involved.

Last edited by etcetera; 12-06-2018 at 05:44 PM.
 
Old 12-06-2018, 08:18 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,150

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
If you have windows 10 it should be EFI and you should have a key on boot to select Boot Options to select the drive on which you have Fedora. Did you install Fedora EFI? If you have an EFI partition on one of the drives, Fedora should have created a directory for its EFI files. You can set Fedora to boot first and have windows as a menuentry in its boot file. Knowing the type of installs you have would help. You should be able to get EFI boot info from Fedora with efibootmgr run from a terminal as root.
 
Old 12-06-2018, 10:18 PM   #3
etcetera
Member
 
Registered: Aug 2004
Posts: 132

Original Poster
Rep: Reputation: 15
Yes, the machine is UEFI

If I get Fedora to boot first in Boot Options, how do I boot Windows on another SSD?

Each operating system gets its own SSD.
 
Old 12-07-2018, 12:28 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,242

Rep: Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638
os-prober will find windows and add it to the grub boot list - Linux tools tend not to be as brain-dead as the M$oft ones.
 
Old 12-07-2018, 07:52 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,150

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
You would run the grub-mkconfig command from fedora. See the link at the fedoraproject site below.

https://fedoraproject.org/wiki/GRUB_2
 
Old 12-07-2018, 01:46 PM   #6
etcetera
Member
 
Registered: Aug 2004
Posts: 132

Original Poster
Rep: Reputation: 15
I want Win10 to be my primary boot drive with Linux being one of the choices. Can that scheme be setup under Linux Grub bootloader?
 
Old 12-07-2018, 05:06 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,242

Rep: Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638
Under [U]EFI there is no "primary boot drive" in the old sense - that is BIOS thinking. So last century.
Fedora will install itself in the Win10 EFI partition - maybe that will qualify.

Stop fretting about Windows - there is no MBR being over-written, just a matter of adjusting which is the default boot manager. They are all always there.
 
Old 12-07-2018, 05:15 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,150

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
You can set windows or any other OS to be the default system to boot with Grub by editing the /etc/default/grub file. In that file find the line:

Quote:
GRUB_DEFAULT=0
Change the zero ( 0 ) to the correct number. If your windows menuentry in Grub is the third entry put a two ( 2 ) there as Grub counts from zero in this instance. After doing this, you will need to run grub-mkconfig in Fedora to make the change permanent. Expplained in detail at the link below which also explains other methods.

http://tipsonubuntu.com/2016/07/20/g...-ubuntu-16-04/
 
Old 12-07-2018, 10:33 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 18,629

Rep: Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786
Once you get to bcd you can't easily return to bios choice.

UEFI has a lot more tricks that aren't being used but the simple part of it is that you have a few ways to select the boot device in any bios usually. You move the boot order in one or more places.
 
Old 12-08-2018, 02:57 AM   #10
mrmazda
Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 842

Rep: Reputation: 248Reputation: 248Reputation: 248
Quote:
Originally Posted by etcetera View Post
3) M.2 SATA 2280 that has Fedora on it
Exactly where and how is this installed? IIUC, if mounted to M.2 interface on a PCIe slot card in a motherboard that has not a new enough chipset, or the PCIe card is not intended for SATA M.2 devices even though they fit the interface, it will be incapable of being a BIOS/UEFI bootable device. It would have to be chainloaded from elsewhere to be booted.
 
Old Yesterday, 11:25 AM   #11
etcetera
Member
 
Registered: Aug 2004
Posts: 132

Original Poster
Rep: Reputation: 15
Fedora is installed on the SanDisk X400 SATA M.2 2280 SSD. It's in the correct slot, in the M.2 SATA (non-PCIe slot).
I previously cloned Windows 10 to that SSD and apparently my BIOS cannot boot non-PCIe devices at all and this seems to extend to Linux also (no matter what is on the SSD).

I have two PCIe devices, both used for Windows (One primary boot, the other backup boot or clone)

I am beginning to think I might have to installed Linux on the PCIe SSD, the alternative boot one. The SATA ones are not even showing up in the BIOS boot options, I need to double check this. The 2.5" SATA Samsung 850 is definitely not showing up so no matter what OS I put on it, it won't boot. It's a BIOS issue. The machine is in the UEFI mode. I tried Legacy mode to no avail.
 
Old Yesterday, 12:57 PM   #12
mrmazda
Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 842

Rep: Reputation: 248Reputation: 248Reputation: 248
Can you tell us which chipset your Titan GT80 has? Msi.com is giving nothing but errors trying to fetch manual and specifications, and all of the googled sites seem to have kept this secret. All I know for sure is the i7-4720HQ is a Haswell, which is on the border of support for NVMe booting, while the GT80 has far more storage interfaces than I expected ever to find on one laptop. The latter characteristic suggests to my instincts that there may be some boot limitations, maybe less than all M.2 interfaces can be booted from, due to at least one being intended for RAID0.
 
Old Yesterday, 01:43 PM   #13
etcetera
Member
 
Registered: Aug 2004
Posts: 132

Original Poster
Rep: Reputation: 15
The model is MSI Titan GT80S SLI "SkyLake" edition 6QE.

I cloned my primary boot drive, well the one currently designed as such via bcdboot/bcdedit, from PCIe to SATA (both 2280 drives) and I could not boot, the BIOS does not see the non-PCIe (NVMe) drives. This is not a Windows issue, but a BIOS issue with my computer, just the way it's set up. I installed Linux on that SanDisk X400 and have no way to getting it to be seen in the boot option menu.

So I am thinking of putting Linux on the backup boot drive, where currently Windows lives but that means I lose a clone of my primary drive. So decisions, decisions.

Last edited by etcetera; Yesterday at 01:48 PM.
 
Old Yesterday, 02:35 PM   #14
mrmazda
Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 842

Rep: Reputation: 248Reputation: 248Reputation: 248
The reason I asked for specifications, chipset specifically, is because of:
https://www.intel.com/content/www/us...iast-ssds.html
Skylake I would expect to have full NVMe support, like the prior Broadwell, but not the 2nd prior Haswell.

Cloning is a possible reason for your trouble. Literal clones can't go back into the same machine simultaneously with a disk cloned from, except after adjustments on either clone or original to compensate for the cloned UUIDs, which neither BIOS nor operating systems nor bootloaders are equipped to accommodate. Duplicated UUIDs cause unpredicable behavior at best, corruption at worst.
 
Old Yesterday, 03:42 PM   #15
etcetera
Member
 
Registered: Aug 2004
Posts: 132

Original Poster
Rep: Reputation: 15
I don't have a problem booting from NVMe. It boots just fine. The problem seems to be that you cannot boot from both NVMe *and* SATA. You have to pick one and a machine configured to boot from PCIe/NVMe cannot also boot from the SATA disk, no matter what operating system you put on it, Linux or not. I installed Linux on the SATA disk but cannot even get it to be seen by the machine in BIOS to boot off of it.
Quote:
Using an NVMe device to boot a computer system requires:

System BIOS configured to enable UEFI* version 2.3.1 and support NVMe boot

Last edited by etcetera; Yesterday at 04:47 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Reisers file system designated LVM engineerwell Linux - General 1 02-19-2006 07:49 PM
Serial Port, what is it designated? kellinjar Linux - Hardware 3 01-11-2006 04:06 PM
Command to run a program at designated times nigma Linux - Software 5 05-06-2003 10:07 AM
Designated forum janitors sewer_monkey LQ Suggestions & Feedback 2 05-15-2002 06:11 AM
authoritative name servers & designated mail exchangers iquadri1 Linux - Networking 0 09-29-2001 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration