You are not logged in.

#1 2013-05-22 10:50:20

dartfira
Member
Registered: 2010-08-23
Posts: 104

[SOLVED] Grub problem with ubuntu

Some months ago I installed ubuntu on my pc, before there were Arch and Win7, the installation went well and Ubuntu replaced Archlinux's grub.
I notice the change but I simply pass over, afterall the system works correctly even with ubuntu's boot loader.
Yesterday I decided to drop the ubuntu's grub and use the one from Arch. I start the installation then when I reach the grub update I see that it doesn't put Archlinux in the OS menu. Unfortunately I reboot the system, there is the Arch bootload (I'm sure because i notice the theme) but there is no Arch menuentry.
Now I'm on Ubuntu partition, I succesful installed the ubuntu grub but in the same way it doesn't recognize Arch.
This is what I do:
I mount the Archlinux partition (sda5) then:

sudo update-grub
Creating grub.cfg ...
Found linux image: / boot/vmlinuz-3.5.0-28-lowlatency
Found initrd image: / boot/initrd.img-3.5.0-28-lowlatency
Found linux image: / boot/vmlinuz-3.5.0-27-lowlatency
Found initrd image: / boot/initrd.img-3.5.0-27-lowlatency
Found linux image: / boot/vmlinuz-3.5.0-23-lowlatency
Found initrd image: / boot/initrd.img-3.5.0-23-lowlatency
Found linux image: / boot/vmlinuz-3.5.0-22-lowlatency
Found initrd image: / boot/initrd.img-3.5.0-22-lowlatency
Found linux image: / boot/vmlinuz-3.5.0-17-lowlatency
Found initrd image: / boot/initrd.img-3.5.0-17-lowlatency
Found memtest86 + image: / boot/memtest86 +. Bin
Found Windows 7 (loader) on / dev/sda1
Found on Arch / dev/sda5
done

As you can see it found arch on sda5, so I should have it on grub.cfg but is not so.  I also tries to reboot to see if I just haven't seen it, but as before there is no Arch menuentry.
Do you have any solution?

Last edited by dartfira (2013-05-23 10:57:08)

Offline

#2 2013-05-22 15:02:29

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 456

Re: [SOLVED] Grub problem with ubuntu

i think tat is what you missed:

# grub-mkconfig -o /boot/grub/grub.cfg

look at the  wiki.

ezik

Offline

#3 2013-05-23 09:44:44

dartfira
Member
Registered: 2010-08-23
Posts: 104

Re: [SOLVED] Grub problem with ubuntu

@shulamy: shouldn't that be the same of grub-update command?

Is there a way to ad manually a menuentry in grub? If it is so, could you post your grub.cfg?

Offline

#4 2013-05-23 10:56:44

dartfira
Member
Registered: 2010-08-23
Posts: 104

Re: [SOLVED] Grub problem with ubuntu

Solved it. I've wrongly delete the kernel, chroot saved my ass.

Offline

Board footer

Powered by FluxBB