LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-17-2021, 02:01 AM   #1
bfdbfd
LQ Newbie
 
Registered: Nov 2020
Posts: 12

Rep: Reputation: Disabled
Dualboot Ubuntu WITHOUT Grub??


Hi there

I want to install Ubuntu 21.10 *without* the installer installing Grub. I currently have Windows 11 on a 2TB SSD and want to install Ubuntu for testing on a 240GB SSD.

I want to be able to select my OS via the BIOS (UEFI) boot selection tool.

I don't want any dramas if I decide to get rid of Ubuntu, which is why no GRUB!

Cheers
 
Old 10-17-2021, 02:31 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,905
Blog Entries: 1

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
You need a bootloader to load the Linux kernel and initrd. If not Grub, what? You think you'd be better off with LILO?

If you put Grub on the 240, it won't stop you from using the UEFI BBS menu to select which SSD to boot from.
 
Old 10-17-2021, 02:33 AM   #3
bfdbfd
LQ Newbie
 
Registered: Nov 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
OK, didn't know that.

How do I make sure that GRUB is installed on the 240GB drive and not the 2TB with Windows 11?

Thanks
 
Old 10-17-2021, 03:40 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by bfdbfd View Post
How do I make sure that GRUB is installed on the 240GB drive and not the 2TB with Windows 11?
I'm pretty sure the installer asks you where you want to install GRUB to.
 
1 members found this post helpful.
Old 10-17-2021, 09:51 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,705
Blog Entries: 19

Rep: Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503Reputation: 4503
Quote:
Originally Posted by mrmazda View Post
You need a bootloader to load the Linux kernel and initrd.
I think you can do it without a bootloader but it's fiddly. You would need to build your own kernel with efistubs and either a built-in filesystem driver (so that you wouldn't need an initrd) or a built-in initramfs image. I think distribution kernels already have efistubs but not the other stuff obviously. But you could do it. If you then stored that kernel on the ESP as a .efi file, it would boot directly from the firmware.
 
Old 10-17-2021, 01:39 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,905
Blog Entries: 1

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Quote:
Originally Posted by hazel View Post
I think you can do it without a bootloader but it's fiddly.
Context matters. A newbie who doesn't know what Grub is for doesn't need to see this edge case.
 
1 members found this post helpful.
Old 10-17-2021, 02:27 PM   #7
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,413

Rep: Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599Reputation: 1599
create and format the partitions on the drive before installing, select "something else" at the partitioning stage, select the the efi partition prevously created on the 240gb drive to mount to /boot/efi.

Last edited by colorpurple21859; 10-17-2021 at 02:28 PM.
 
1 members found this post helpful.
Old 10-18-2021, 05:52 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,604

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
You need to disconnect the windows drive or disable it in the BIOS if you can. If you don't do this, the Ubiquity installer of Ubuntu will install the EFI files for Ubuntu on the windows drive if it sees it. This has nothing to do with Grub, it is the Ubuntu installer which does this on Ubuntu. A discussion of this problem is at the link below. Note that it goes back to Ubuntu version 14.04. THere are workarounds but but new users won't know they need a workaround until it is too late. THis doesn't affect most other Linux instasllations.

https://bugs.launchpad.net/ubuntu/+s...y/+bug/1396379
 
Old 10-18-2021, 05:59 AM   #9
bfdbfd
LQ Newbie
 
Registered: Nov 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
You need to disconnect the windows drive or disable it in the BIOS if you can.
Neither of these are a possibility for me, unfortunately. The Windows SSD is an NVME and I'm not comfortable removing it. Also, there is no firmware setting to disable it. I think I will give up installing it directly, and just use Vmware Workstation as I am now. I plan to switch to Linux when a bunch of Windows apps I rely on are workable on Linux via wine. It's not there yet, but maybe in a year or two.

Cheers!
 
Old 10-18-2021, 06:16 AM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,161

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Quote:
Originally Posted by bfdbfd View Post
How do I make sure that GRUB is installed on the 240GB drive and not the 2TB with Windows 11?
Simply install Linux to wherever you want. It will add a directory (folder) to the filesystem on your Win11 EFI partition, and make it the default boot option. You can always change the default later in need.

Your concerns are bourne of BIOS systems using MBR - that is no longer relevant.
 
Old 10-18-2021, 10:35 AM   #11
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by ondoho View Post
I'm pretty sure the installer asks you where you want to install GRUB to.
And in my many experiences with it, will ignore your choice if the drive chosen is not the first one in the system. To guarantee the choice will be respected you need to leave it no choice at all by having only one drive to install it to, with all others disconnected for the install. Once installed the UUIDs are set in the configuration files and updates that re-install GRUB will not mess with the system as they are installed to those UUIDs. Who knows perhaps they have fixed that years long mess with the latest version but it has been present so long I doubt it.
 
Old 10-19-2021, 06:31 AM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,604

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
The OP would need to install Grub with Ubuntu (or some bootloader) with efi files on the current EFI partition. For the purposes mentioned by the OP, simply deleting the directory (folder) created by Ubuntu on the EFI partition would be enough. And obviously, formatting the partition Ubuntu was installed to using some windows filesystem. So for the purposes the OP wants, it is not that complicated.

Not installing Grub isn't an option without using another bootloader. My focus was on the Ubuntu installer and the not installing Grub part of the OP's initial post. Although the problems discussed in the link I posted are ongoing and have been for years, they don't really apply in this case as all that is needed it to removed the Ubuntu diectory from the EFI partition as suggested above in post 12 and formatting the Ubuntu partition for use with windows.

Changing the boot order in the BIOS generally isn't that difficult but I would suggest reading and obtaining the information on how to do this with your specific hardware before proceeding.

Last edited by yancek; 10-19-2021 at 06:33 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
grub "error: file '/boot/grub/i386-pc/normal.mod' not found" after reinstalling Ubuntu in dualboot Windows 10 and choosing sdb as bootloader Dante404 Linux - Laptop and Netbook 5 09-28-2021 09:42 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
Dualboot XP Mandrake with grub atom Linux - Newbie 4 02-22-2004 06:00 AM
dualboot win2k w/ntfs & fedora w/grub? bewildered Fedora 2 12-19-2003 09:33 AM

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

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