Debian's grub doesn't detect Ubuntu

June 27th, 2012 - 03:40 am ET by Mika Suomalainen | Report spam
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)

Hi,

I have three OSes on this computer. They are Debian Sid, Ubuntu Precise
and Windows 7.

It seems that Debian's grub can only detect Debian and Windows 7, but
not Ubuntu.

I have tried Googling and running update-grub some times, but I haven't
found anything useful.

What should I try now?

Thanks in advantage.

[Mika Suomalainen](https://mkaysi.github.com/) ||

NOTICE! I am on mobile broadband with very limited time, so I cannot
read emails very much.
The best time to contact me is probably weekends when I have better
connectivity with good luck.

[gpg --keyserver pool.sks-keyservers.net --recv-keys
4DB53CFE82A46728](http://mkaysi.github.com/PGP/key.txt) ||
[Why do I sign my
emails?](http://mkaysi.github.com/PGP/WhyDoISignEmails.html) ||
[Do you have problems verifying my PGP/MIME signature on mailing
list?](http://mkaysi.github.com/PGP/PGP-MIME.html) ||
[Please don't send
HTML.](http://mkaysi.github.com/articles/c.../HTML.html) ||
[This signature](https://gist.github.com/2643070#file_icedove.md)

[Please reply below this
line](http://mkaysi.github.com/articles/c...sting.html)

____________________________






To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/4FEAB824.8080500@hotmail.com
email Follow the discussionReplies 14 repliesReplies Make a reply

Similar topics

Replies

#11 Tom H
July 01st, 2012 - 01:20 pm ET | Report spam
On Wed, Jun 27, 2012 at 11:35 AM, Helgi Örn Helgason
wrote:
On 27 June 2012 07:37, Mika Suomalainen wrote:

I have three OSes on this computer. They are Debian Sid, Ubuntu Precise
and Windows 7.

It seems that Debian's grub can only detect Debian and Windows 7, but
not Ubuntu.

I have tried Googling and running update-grub some times, but I haven't
found anything useful.

What should I try now?



Did you mount the Ubuntu partition before running update-grub?
If not, then try that. Usually that will help.



There's no need to mount the Ubuntu "/" or "/boot" partition for
os-prober to detect and add Ubuntu.


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/CAOdo=SzQbc...kfnLKNkTC=
Replies Reply to this message
#12 Tom H
July 01st, 2012 - 01:20 pm ET | Report spam
On Wed, Jun 27, 2012 at 10:31 AM, Siard wrote:
Mika Suomalainen wrote:

It seems that Debian's grub can only detect Debian and Windows 7, but
not Ubuntu.



First make sure that Ubuntu's /boot/grub/grub.cfg contains a menuentry
for Ubuntu in the section starting with
### BEGIN /etc/grub.d/10_linux ###



os-prober doesn't need "/boot/grub/grub.cfg" in Ubuntu to exist in
order to create an entry in the Debian "/etc/grub.d/30_os-prober"
section.

If "/boot/grub/grub.cfg" exists in Ubuntu, os-prober uses its kernel
options in the Debian "/etc/grub.d/30_os-prober" section.


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/CAOdo=
Replies Reply to this message
#13 Siard
July 02nd, 2012 - 10:40 am ET | Report spam
Tom H wrote:
Siard wrote:
> Mika Suomalainen wrote:
> > It seems that Debian's grub can only detect Debian and Windows 7,
> > but not Ubuntu.
>
> First make sure that Ubuntu's /boot/grub/grub.cfg contains a
> menuentry for Ubuntu in the section starting with
> ### BEGIN /etc/grub.d/10_linux ###

os-prober doesn't need "/boot/grub/grub.cfg" in Ubuntu to exist in
order to create an entry in the Debian "/etc/grub.d/30_os-prober"
section.



I have Squeeze and Wheezy. I uninstalled Wheezy's grub, but then
Squeeze's grub did not detect kernel upgrades in Wheezy. After
reinstalling Wheezy's grub, things worked right again.
That's why I concluded that Wheezy's /boot/grub/grub.cfg is needed.

If "/boot/grub/grub.cfg" exists in Ubuntu, os-prober uses its kernel
options in the Debian "/etc/grub.d/30_os-prober" section.



Yep, I once moved Wheezy to another partition. Wheezy's grub.cfg still
contained the old partition, and Squeeze's os-prober adopted that.
I had to correct the partition in Wheezy's grub.cfg to get it working
right again.


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/
Replies Reply to this message
#14 Tom H
July 04th, 2012 - 04:40 am ET | Report spam
On Mon, Jul 2, 2012 at 10:30 AM, Siard wrote:
Tom H wrote:
Siard wrote:
Mika Suomalainen wrote:

It seems that Debian's grub can only detect Debian and Windows 7,
but not Ubuntu.



First make sure that Ubuntu's /boot/grub/grub.cfg contains a
menuentry for Ubuntu in the section starting with
### BEGIN /etc/grub.d/10_linux ###



os-prober doesn't need "/boot/grub/grub.cfg" in Ubuntu to exist in
order to create an entry in the Debian "/etc/grub.d/30_os-prober"
section.



I have Squeeze and Wheezy. I uninstalled Wheezy's grub, but then
Squeeze's grub did not detect kernel upgrades in Wheezy. After
reinstalling Wheezy's grub, things worked right again.
That's why I concluded that Wheezy's /boot/grub/grub.cfg is needed.



This hasn't been my experience with grub2 at all. Just in case, I've
just tested in a VM with two disks one with sid and one with quantal.
sid's grub2 recognized and added quantal when (1) quantal's grub2 was
installed and "/boot/grub/grub.cfg" existed (it used the kernel
options in grub.cfg), (2) quantal's grub2 was installed and quantal's
"/boot/grub/grub.cfg" was deleted, (3) quantal's grub* was
uninstalled, (4) quantal's grub* was uninstalled and the first 446 of
quantal's MBR and quantal's bios_boot partition were blanked out with
dd.


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/CAOdo=Szcp_2oLoCJAuv+
email Follow the discussion Replies Reply to this message
Help Create a new topic Previous pageReplies Make a reply
Search Make your own search