Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem of dual-boot lubuntu 16.04 with gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
kenmux
n00b
n00b


Joined: 13 Apr 2014
Posts: 59

PostPosted: Fri Dec 23, 2016 3:08 am    Post subject: Problem of dual-boot lubuntu 16.04 with gentoo Reply with quote

Hi all,

These days I ran into an issue related with dual-boot lubuntu with gentoo.

I have 5 partitions:/dev/sda1~/dev/sda5:

Code:
Partition   Description
/dev/sda1   BIOS boot partition
/dev/sda2   Boot partition
/dev/sda3   Swap partition
/dev/sda4   Root partition
/dev/sda5   Lubuntu 16.4


At the very beginning, I first installed gentoo, then lubuntu 16.04.
The grub config was overwritten by lubuntu, all ran well.
I only assigned /dev/sda5 for lubuntu root, so gentoo shared swap with it.
One more info is that, I used openrc for gentoo, but lubuntu used systemd?

One day, I reinstalled gentoo, and the grub was overwritten by it.
Then, I could not boot lubuntu any more.
Of course, I emerged os-loader with grub2.
The lubuntu just complain that:

Code:
Welcome to emergency mode! After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to
try again to boot into default mode.
Press Enter for maintenance   
(or press Control-D to continue):


I tried using fsck but with no luck. Then what the hell goes wrong?
Any ideas? Please give me a hand! Thanks a lot.


Last edited by kenmux on Mon Dec 26, 2016 1:59 am; edited 2 times in total
Back to top
View user's profile Send private message
tshade
n00b
n00b


Joined: 01 Oct 2007
Posts: 21

PostPosted: Fri Dec 23, 2016 4:11 pm    Post subject: Reply with quote

Try editing grub.conf manually. You should add the needed lines to boot lubuntu (the problem here is: which options?). Or you can use SuperGrubDisk, maybe, but I can't promise it will work.
Back to top
View user's profile Send private message
kenmux
n00b
n00b


Joined: 13 Apr 2014
Posts: 59

PostPosted: Sun Dec 25, 2016 8:21 am    Post subject: Reply with quote

tshade wrote:
Try editing grub.conf manually. You should add the needed lines to boot lubuntu (the problem here is: which options?). Or you can use SuperGrubDisk, maybe, but I can't promise it will work.

Any guide? The grub.cfg became hard to read in grub2 you know.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Dec 25, 2016 2:28 pm    Post subject: Reply with quote

Quote:
One day, I reinstalled gentoo, and the grub was overwritten by it.

Why? If you already had Grub installed by Lubuntu, why didn't you use it?

Surprisingly, Grub has manual: https://www.gnu.org/software/grub/manual/grub.html#Configuration
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sun Dec 25, 2016 7:19 pm    Post subject: Reply with quote

easiest way is to hack the binary distro bootloader
and do not forget to make a backup of your grub.cfg

known issue that a second os overwrites the parts responsibile for booting

regardless if its spyware 10, noobuntu, nooblinuxmint or whateverit is

...

those opreating systems are made for newbies or guys with just one operating system
Back to top
View user's profile Send private message
kenmux
n00b
n00b


Joined: 13 Apr 2014
Posts: 59

PostPosted: Mon Dec 26, 2016 1:58 am    Post subject: Reply with quote

Jaglover wrote:
Why? If you already had Grub installed by Lubuntu, why didn't you use it?


Because, I thought the grub gui from gentoo looks much better than the one from ubuntu.
One more thing is that, ubuntu always put itself on the first place, and I'd prefer gentoo.
So, I reinstalled the grub with the fresh gentoo. The grub recognized ubuntu and did menu entries for it.
But, these entries could not boot ubuntu at all!

Roman_Gruber wrote:
known issue that a second os overwrites the parts responsibile for booting

Yes, from now on, I knew, ubuntu does something else, make it hard to boot from os-loader.
Very annoying, isn't it? Ubuntu, why you do the things different from others, just like Windows?
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Dec 29, 2016 7:13 pm    Post subject: Reply with quote

kenmux wrote:
Jaglover wrote:
Why? If you already had Grub installed by Lubuntu, why didn't you use it?


Because, I thought the grub gui from gentoo looks much better than the one from ubuntu.
One more thing is that, ubuntu always put itself on the first place, and I'd prefer gentoo.
So, I reinstalled the grub with the fresh gentoo. The grub recognized ubuntu and did menu entries for it.
But, these entries could not boot ubuntu at all!

Roman_Gruber wrote:
known issue that a second os overwrites the parts responsibile for booting

Yes, from now on, I knew, ubuntu does something else, make it hard to boot from os-loader.
Very annoying, isn't it? Ubuntu, why you do the things different from others, just like Windows?


Don *t worry, windows will also destroy your "boot" section without asking.
Microsoft made it that way, that the bios self searches for windows and activates it. too bad i have not really figured out how to abuse the uefi bios doing the same for my grub bootloader

when i swap in my windows hDD. it instantly is recognized and set up.

when you swap out your grub hdd, you have to reinitalize the UEFI bootloader maping.

--

Microsoft just has the money to dictate how things have to be. and they made it for the uefi bootloader for example.

--

And Windows works, well thats up to discussions.

I want to say something what i heard recently. Something may be the best for myself, but does not mean its the best for everyone
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum