| View previous topic :: View next topic |
| Author |
Message |
CODonnell n00b

Joined: 27 Mar 2012 Posts: 13
|
Posted: Mon Apr 02, 2012 5:50 am Post subject: Problem with grub |
|
|
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 |
|
 |
eccerr0r Advocate

Joined: 01 Jul 2004 Posts: 3001 Location: USA
|
Posted: Mon Apr 02, 2012 7:18 am Post subject: |
|
|
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 |
|
 |
Lokesh n00b

Joined: 01 Apr 2012 Posts: 3
|
Posted: Mon Apr 02, 2012 9:43 am Post subject: |
|
|
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 |
|
 |
eccerr0r Advocate

Joined: 01 Jul 2004 Posts: 3001 Location: USA
|
Posted: Mon Apr 02, 2012 2:18 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|
|