LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-07-2020, 09:04 PM   #1
Cuauhtli
LQ Newbie
 
Registered: Sep 2020
Posts: 1

Rep: Reputation: Disabled
How to install two distros in one drive? UEFI gpt


Hello, I tried to install Manjaro and Ubuntu in a single HDD 250GB
But the grubs of the two distros are giving me headaches with the installations. I tried installing one distro first, the second one with sharing efi and swap, then updating the grub (sudo update-grub). But always I have problems, no matter if the first distro is manjaro or ubuntu.

My partition scheme is this:

EFI 512MB (shared)
swap 6GB (shared)
/ Manjaro
/ Ubuntu

Also, my specs:
i7 9700k | rtx 2060 | 32gb ram (dual channel) | 250GB HDD | b360n
 
Old 09-08-2020, 03:55 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
But the grubs of the two distros are giving me headaches
Give more detail in the problem. Normally the distro installed last will be the grub menu you see when you turn on the system.
If there is a kernel update in the other distro you will need to reboot back into the distro that controls the grub menu and rerun the command that updates the grub boot menu. If it isn't working as it should another option is to create a custom menuentry that will load the grub.cfg configfile of the other distro in the /etc/grub/40_custom file.

post the ouput of
Code:
parted -l

Last edited by colorpurple21859; 09-09-2020 at 03:17 AM.
 
2 members found this post helpful.
Old 09-09-2020, 06:14 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Did a test in a vm duel booting ubuntu and manjaro, I think I see what the problem is. The distros grub os-prober are not producing correct menu entries for booting the other system. A work around would be to create a /etc/grub.d/15_custom file in ubuntu with this in it:
Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Manjaro configfile"{
insmod part_gpt 
insmod ext2
set root='hd0,gpt?'
configfile /boot/grub/grub.cfg
}
where the ? will be the partition number of Manjaro counting from one. You can make a copy of the /etc/grub.d/40_custom and rename it 15_custom
You will have to make it exectable with
Code:
sudo chmod +x /etc/grub.d/15_custom
Then run
Code:
sudo update-grub
What this does is produces a ubntu grub menu entry that will upload manjaro boot menu.

Last edited by colorpurple21859; 09-17-2020 at 08:11 PM.
 
1 members found this post helpful.
Old 09-17-2020, 04:08 PM   #4
peter debba
LQ Newbie
 
Registered: Sep 2020
Location: san cristobel de las casas, chiapas, mexico
Distribution: i am using ubuntu together with manjaro
Posts: 1

Rep: Reputation: Disabled
thank you very much for this superb info

i am using manjaro alongside ubuntu and both work oke, the only thing is that ubuntu boots normally meanwhile i have to use an alternative boot for manjaro (initrans or something like this), the grub is the ubuntu grub,
i am trying to fix this and your information is great, its just that meanwhile i am not sure what these commands exactly mean i am first trying to figure it out a bit more before running them,
anyway, you are helping me greatly and giving me some confidence i will be able to work it out,
thank you
peter
 
Old 09-17-2020, 08:09 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
the grub is the ubuntu grub,
I edited post 3 to reflect this and additional information

Last edited by colorpurple21859; 09-17-2020 at 08:12 PM.
 
1 members found this post helpful.
  


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] Boot a GPT-partitioned hard drive from a non-UEFI machine tramni1980 *BSD 8 11-11-2018 07:12 AM
FreeBSD 11.2 ZFS dual boot with Linux in UEFI-GPT mode from a single hard drive deepclutch *BSD 0 10-23-2018 08:45 PM
[SOLVED] GPT table corrupted (again @%36372 GPT) BW-userx Linux - Hardware 5 08-29-2018 04:14 PM
slackware uefi gpt install porphyry5 Slackware - Installation 18 09-18-2013 04:06 PM
[SOLVED] Slackware 13.37 - gdisk choices, MBR, GPT or Blank GPT CFet Slackware - Installation 3 04-01-2011 04:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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