Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with grub
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
CODonnell
n00b
n00b


Joined: 27 Mar 2012
Posts: 13

PostPosted: Mon Apr 02, 2012 5:50 am    Post subject: Problem with grub Reply with quote

I used
Code:
(chroot) ubuntu / # emerge grub


To get grub then afterwards i type

Code:
(chroot) ubuntu / # nano -w /boot/grub/grub.conf

To configure it, after i was all finish, I went to finish it and it said
Quote:
Error writing /boot/grub/grub.conf: No such file or directory

I am not sure where i went wrong.
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 2994
Location: USA

PostPosted: Mon Apr 02, 2012 7:18 am    Post subject: Reply with quote

Are you using a separate boot partition, is that boot partition mounted?

I think you need to go through grub-install before editing grub.conf... did you run that? was grub.conf an empty file or did it have stuff in it?

There's a distinct possibility you're trying to dual boot two Linuxes from the same harddrive, are you trying to use the same boot partition for both Linux?
_________________
Core-i7-2700K@4.1GHz/8GB RAM/180GB SSD/Intel HD3000 graphics
What the heck am I advocating?
Back to top
View user's profile Send private message
Lokesh
n00b
n00b


Joined: 01 Apr 2012
Posts: 3

PostPosted: Mon Apr 02, 2012 9:43 am    Post subject: Reply with quote

Hello,
severe Grub issues here, too. Your answers imply you might know some advice.
eccerr0r wrote:
Are you using a separate boot partition, is that boot partition mounted?

I do, so does the separate boot partition need to be mounted before chroot, or after, or not at all??

eccerr0r wrote:
I think you need to go through grub-install before editing grub.conf... did you run that?

this resulted in error messages, therefore I installed Grub from the (running) Ubuntu.

eccerr0r wrote:
There's a distinct possibility you're trying to dual boot two Linuxes from the same harddrive

you got it!!!
eccerr0r wrote:
are you trying to use the same boot partition for both Linux?

Yes I do. Even a manual entry into the grub.conf, using UUIDs, did not help. Entry for Linux 1=Ubuntu and Linux2= Gentoo was identical but for the root UUID (the second entry, the first is the uuid for the boot partition).

My start up results in "no controller found" when I try to boot Gentoo, and a Kernel panic. The issue seems to be the root partition of Gentoo but why?

Lokesh
_________________
Frustrated Linux User
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 2994
Location: USA

PostPosted: Mon Apr 02, 2012 2:18 pm    Post subject: Reply with quote

If you have grub installed for Ubuntu, you can use ubuntu's grub to boot Gentoo if desired (if you have enough disk space on Ubuntu's boot partition). Or the other way around too. Then you don't even need to use/install grub, just edit the menu.lst/grub.conf of Ubuntu to point to your Gentoo install.

If you want to use Ubuntu's grub this, you don't need to even emerge grub, and surely don't run grub-install, it's not needed... You can put Gentoo's kernel and initramfs if needed into that partition as well.

Keep in mind that you cannot use UUID= if you do not have an initrd/initramfs that understands UUID. That may be the reason why UUID does not work for your Gentoo. (If you use genkernel and make the initramfs (or make the initramfs manually), it should work just like Ubuntu.)
_________________
Core-i7-2700K@4.1GHz/8GB RAM/180GB SSD/Intel HD3000 graphics
What the heck am I advocating?
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