LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-19-2013, 08:27 AM   #1
esfahan2000
LQ Newbie
 
Registered: Jan 2012
Location: iran
Posts: 13

Rep: Reputation: Disabled
Debian update removed ubuntu from grub


Hi
I have Debian 6 and Ubuntu 10:10.
after installing debian.I upgrade my debian (its kernel upgraded to 2.6.32-5-686).after that i cant see my ubuntu 10:10 in grub.
this is the output of update-grub command:
Code:
root@Debian:~# update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
Found Ubuntu 10.10 (10.10) on /dev/sda11
done
it find's the ubuntu but after reboot is'nt in grub
thanks
 
Old 01-19-2013, 08:59 PM   #2
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 585

Rep: Reputation: 118Reputation: 118
Could you post the output of:
Code:
$ grep -1 ^menuentry /boot/grub/grub.cfg
 
Old 01-19-2013, 10:22 PM   #3
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,451

Rep: Reputation: 506Reputation: 506Reputation: 506Reputation: 506Reputation: 506Reputation: 506
Make sure os-prober is installed in Debian. If it isn't install it and update grub. You will find Ubuntu will probably reappear in Grub then. Also Ubuntu 10.10 is out of support and it is a possible security risk for you. I would recommend you update to a supported version of Ubuntu.
 
Old 01-20-2013, 12:40 AM   #4
esfahan2000
LQ Newbie
 
Registered: Jan 2012
Location: iran
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by towheedm View Post
Could you post the output of:
Code:
$ grep -1 ^menuentry /boot/grub/grub.cfg
this is the output:
Code:
root@Debian:~# grep -1 ^menuentry /boot/grub/grub.cfg
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
--
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
 
Old 01-20-2013, 12:41 AM   #5
esfahan2000
LQ Newbie
 
Registered: Jan 2012
Location: iran
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by k3lt01 View Post
Make sure os-prober is installed in Debian. If it isn't install it and update grub. You will find Ubuntu will probably reappear in Grub then. Also Ubuntu 10.10 is out of support and it is a possible security risk for you. I would recommend you update to a supported version of Ubuntu.
Yes it's installed in my system....
 
Old 01-20-2013, 03:10 PM   #6
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,451

Rep: Reputation: 506Reputation: 506Reputation: 506Reputation: 506Reputation: 506Reputation: 506
Are you able to get into your Ubuntu system using Nautilus in Debian? By this I mean can you see there is another partition and can you mount it and see the file system in there.

Have you tried Super Grub Disk?
 
Old 01-20-2013, 08:36 PM   #7
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 585

Rep: Reputation: 118Reputation: 118
Your output from /boot/grub/grub.cfg does not show an entry for your Ubuntu installation. That's why it's not on your menu.

Also, the fact that it shows up as detected in the update-grub output indicates that os-prober is seeing an Ubuntu installation. It may be that linux-boot-prober is not seeing any kernel in your Ubuntu installation. Run this command and post the output:
Code:
sudo linux-boot-prober /dev/sda11
This should return all vmlinuz and initramfs files found on /dev/sda11.

Alternatively, you can mount /dev/sda11 and manually look for the presence of those files:
Code:
sudo mkdir /mnt/ubuntu
sudo mount /dev/sda11 /mnt/ubuntu
ls /mnt/ubuntu/boot/{vmlinux,init}*    # Or, if it returns an error, try
ls /mnt/ubuntu/{vmlinuz,init}*
sudo umount /mnt/ubuntu
In either case, post your output.

BTW: Did you try running update-grub again to see if it works? I just tried it in a VM and it did not pick up the Ubuntu installation initially. However, after mounting and unmounting my Ubuntu partition and re-running update-grub, it worked. I have not looked at why it happened because my grub, os-prober and linux-boot-prober are heavily modified, so that could be why. Anyway, it sure won't hurt to re-run update-grub and see if that helps.

Last edited by towheedm; 01-20-2013 at 08:49 PM.
 
Old 01-20-2013, 08:59 PM   #8
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,451

Rep: Reputation: 506Reputation: 506Reputation: 506Reputation: 506Reputation: 506Reputation: 506
Something is drastically wrong. I'd try this
Code:
update-grub
note the ouput and copy it down into a txt file. Then
Code:
mount /dev/sda11 /mnt
update-grub
copy it down as above and compare the two, reboot and see how it goes. Theory, based on towheedm's post above, is that mounting sda11 may help Grub to find Ubuntu. I've seen it happen once before.

@ towheedm, I've never heard of linux-boot-prober so will go and do some reading to enlighten myself even further.
 
Old 01-20-2013, 09:56 PM   #9
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 585

Rep: Reputation: 118Reputation: 118
os-prober and linux-boot-prober work together.

os-prober probes your drives for others OSes such as other Linux installs, Windows, Gnu/Hurd, MacOS etc. If other Linux installation(s) are found, linux-boot-prober probe those partitions for their kernels and/or initramfs files.

You can look at the /etc/grub.d/30_os-prober script for an idea on how they work together.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: sun-java6 packages removed soon from Debian/Ubuntu (and all other linux distros) LXer Syndicated Linux News 0 08-29-2011 08:30 PM
[SOLVED] Unable to boot with Ubuntu and Windows 7 - grub bootloader getting removed Robhol Linux - General 1 09-02-2010 03:16 PM
sdb2 instead of sda2 is set in grub after every system-update on Debian skipidar Linux - Software 2 10-02-2009 08:41 AM
Boot grub menu list is accidentally removed from Ubuntu Jaunty and sysem boots to gru murtyvonna Ubuntu 2 08-11-2009 12:19 PM
Windows disappear in grub/menu.lst after update of debian-lenny bio2009 Linux - Newbie 4 06-20-2009 12:13 AM


All times are GMT -5. The time now is 11:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration