LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-09-2021, 10:47 PM   #16
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153

Quote:
The presence of the ESP partition overwhelmingly implies Manjaro has been installed in UEFI mode.
True but completely irrelevant for this thread. Since the MB firmware can't access the NVMe drive it doesn't matter what type of bootloader was installed as it can't be used.

The actual kernel and initramfs for a Linux installation are identical regardless of whether the installation is legacy or EFI. If they copy the kernel and initramfs to another /boot directory and create a grub menu entry they can use a legacy BIOS GRUB to boot into Manjaro. The kernel itself does not care what type of bootloader loads it into memory.

Quote:
Jumpstarting from your main SSD would require it be wiped and partitioned GPT.
Actually no as if they copy the kernel and initramfs to the main SSD they can use legacy BIOS GRUB to boot into Manjaro for the reasons mentioned above.

It would make more sense to wipe the NVMe drive and re-install Manjaro in legacy mode as it has never been booted and has no data. The main SSD is a working system and holds the OP's /home directory and data.

Last edited by tofino_surfer; 07-10-2021 at 04:24 AM.
 
Old 07-10-2021, 01:29 AM   #17
babag
Member
 
Registered: Aug 2003
Posts: 419

Original Poster
Rep: Reputation: 31
well, i've actually made a little progress, thanks to the folks here and this post:

https://delightlylinux.wordpress.com...en-using-nvme/

after trying lots of combinations of settings i was finally able to get manjaro to boot from the nvme via a usb stick with the boot files on it. the advice that the usb stick should be set up during install rather than just copying /boot to it seems to have made the difference. that and the info gleaned from the linked post got me through this phase so, thanks!


these are the settings that worked:

Quote:
nvme drive: msdos partition table (gpt worked also with some weirdness), mount point = /, ext4 format

usb stick: gpt partition table, two partitions, first partition = 8mb unformatted with bios-grub flag, second partition = rest of the stick, mount point = /boot, ext4 format

bootloader is set to install to the mbr of the usb stick.

next task would be to see if the manjaro nvme and ubuntu studio ssd can be made to co-exist so i don't have to pull the drives to make a switch.

Quote:
It would make more sense to wipe the NVMe drive and re-install Manjaro in legacy mode as it has never been booted and has no data. The main SSD is a working system and holds the OP's /home directory and data.
this sounds right, or at least appealing, to me. i have no problem wiping manjaro. i installed and reinstalled it several times today (also garuda linux which also booted in a similar setup) so, to me, wiping it again is just part of testing this whole setup.

the whole process of dealing with uefi vs legacy mode is not something i've ever had to deal with and i find it very confusing. i've always been able to simply load some installation media and follow the defaults pretty much. it's always been AFTER the install that i'd put a lot of time into configuring. dealing with so much configuration right up front is very new to me.

in any event, not sure what it means to 're-install Manjaro in legacy mode.' i assumed that was what i'd been doing all along. i'll investigate the bios settings and post back after with more detail as to how the bios is set up currently. i've not changed it since the successful install of manjaro. though separate, ubuntu studio is still booting normally.

the way things are now, i just have to pull the usb stick during reboot and manjaro becomes invisible, leaving me with my original ubuntu studio grub menu. i've not tried rebooting with both the usb stick and ubuntu studio drives in place. so far, out of an abundance of caution, i've treated the process as either/or.

thanks again,
babag

Last edited by babag; 07-10-2021 at 01:35 AM.
 
Old 07-10-2021, 12:49 PM   #18
babag
Member
 
Registered: Aug 2003
Posts: 419

Original Poster
Rep: Reputation: 31
my mobo bios has a setting labeled: windows 8 features. it is set to 'other os.'

there is a subsection labeled 'boot mode selection.' it is set to 'legacy only.' the options are 'uefi only,' 'legacy only,' and 'uefi and legacy.'

thanks,
babag
 
Old 07-10-2021, 01:10 PM   #19
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
You are dual booting so the boot is either / or regardless of which you boot, but it would be easy to set it up for dual boot using the usb with both drives in and eliminate the drive switching.

To dual boot using the usb you should be able to leave both drives connected, set the bios to boot from usb first and the SSD second. Then it should boot manjaro if you insert the usb and ubuntu if you do not insert the usb.

An alternate way, and the one I would use for long term , would be to do a little manipulation of the partitions on the ubuntu drive so the ubuntu grub boot loader could dual boot for you. This can be done using gparted and booting live to gparted so the ssd is not in use while doing this.

1. shrink /dev/sda5 to leave enough space for the manjaro /boot
2. move the smaller /dev/sda5 all the way to the right so the free space is at the beginning of the drive and adjacent to /dev/sda1
3. shrink the extended partition (/dev/sda2) to move the free space outside the extended partition. This would simply mean that the left end would be moved to be at the new left end of /dev/sda5.
4. create a new primary partition in the free space between the end of /dev/sda1 and the beginning of the extended partition.
5. Finally, reinstall manjaro with both drives in place, putting the manjaro /boot on the new partition of the SSD and the OS on the nvme.

This sounds like a lot, but with gparted steps 1 - 4 are really easy and I personally have never seen gparted error in what it does.

Once both systems will boot this way the only thing you need to be cautious of is that when doing updates the grub boot loader can be an issue since the last one updated can take control of the boot loader. There are several fixes for this on this forum so a little care can keep your favorite os in charge of booting.
 
Old 07-11-2021, 10:54 AM   #20
obobskivich
Member
 
Registered: Jun 2020
Posts: 596

Rep: Reputation: Disabled
Quote:
Originally Posted by babag View Post
my mobo bios has a setting labeled: windows 8 features. it is set to 'other os.'

there is a subsection labeled 'boot mode selection.' it is set to 'legacy only.' the options are 'uefi only,' 'legacy only,' and 'uefi and legacy.'

thanks,
babag
This is likely the enable/disable switch for CSM - you need it set to 'uefi and legacy' unless you know all of your devices can deal with uefi exclusive (that is, they don't need CSM on boot). It hurts nothing to leave it as uefi/legacy (except adding maybe 1 or so seconds to boot time, which has become (for reasons that I cannot fathom) the almighty metric of 'performance' in recent years). 'other OS' is the correct setting for the Windows 8 mode itself.
 
Old 07-11-2021, 06:16 PM   #21
babag
Member
 
Registered: Aug 2003
Posts: 419

Original Poster
Rep: Reputation: 31
thanks for the further replies. i was afraid that the dual boot idea might require partition manipulation. for now, that's not something i want to get into. i'll continue to poke around with manjaro as a separate boot process and leave the ubuntu studio drive as is. i have plenty to keep me busy investigating manjaro for the time being. i'm also not crazy about the idea that system updates could hijack grub or something like that.

i think the more prudent path for me to take, now that i've succeeded in booting the manjaro nvme, is to keep the systems separate and, if after fully investigating my workflow in a manjaro environment, i decide i like it better than ubuntu studio, then i can make a switch. i've been working for quite a while with ubuntu studio as a single system. seems like i could just keep them as fully separate, discreet systems for now and make a choice later as to whether to stick with the existing or switch to manjaro.

thanks again for all the help,
babag
 
Old 07-11-2021, 07:55 PM   #22
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
You certainly may keep them separate. Another alternative, since you have Ubuntu on the 1TB drive, would be to create a vm and install manjaro into the vm on ubuntu. Then you would still only have one os for the physical boot but could start and run manjaro in the vm and literally have both running at the same time.

Just something to consider, and the nvme drive is and would be accessible as long as one of the OSes was actually running.
 
Old 07-11-2021, 11:09 PM   #23
lovemeslk
Member
 
Registered: Feb 2020
Location: Rantoul IL
Distribution: Slackware
Posts: 350

Rep: Reputation: 72
Have you tried F8 or F10 at boot time see the hard drives to choose from to boot with. Try it.
This is why I always install grub to all me drives. if your using eufi-grub same thing.
Quote:
i think the more prudent path for me to take,
First time you update either system they will write to /boot/grub/grub.cfg
All the drives that are active and have /boot/vmliniz and a /boot/intrid.gz
that's what grub program does.

Last edited by lovemeslk; 07-11-2021 at 11:14 PM.
 
Old 07-16-2021, 12:53 AM   #24
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
Quote:
thanks for the further replies. i was afraid that the dual boot idea might require partition manipulation. for now, that's not something i want to get into.
Actually partition manipulation is not required for crude dual booting. You can easily copy the Manjaro kernel and initramfs into the Ubuntu /boot directory and insert a custom grub.cfg entry so you wouldn't have to use the usb stick everytime. The grub bootloader doesn't know or care which Linux distro a kernel belongs to. It would be best to create a subdirectory for Manjaro to keep things separate.

This would be a crude short term solution compared to post #19 but it would eliminate the need to have the usb stick plugged in for each boot.
 
  


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
LXer: Data in a Flash, Part II: Using NVMe Drives and Creating an NVMe over Fabrics Network LXer Syndicated Linux News 0 05-20-2019 11:41 PM
Migrate Linux/win10 dual boot from MBR nvme drive to a new GPT nvme drive bluemoo Linux - Software 7 09-25-2018 06:42 PM
Need to understand more about booting up, bout legacy bios vs efi, about dual-booting. 842Mono Linux - Newbie 11 02-13-2017 11:13 AM
mobo friedn in my windoze workstation. replace original mobo or upgrade to new cpu? sneakyimp General 1 11-05-2013 12:56 AM

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

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