LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 10-29-2011, 02:41 PM   #1
shivam garg
LQ Newbie
 
Registered: Oct 2011
Posts: 1

Rep: Reputation: 0
dual boot, grub problem


i upgraded my system frm 11.04 to 11.10.
whenever i start my pc, the grub shows Ubuntu as the only OS on my pc, although i have windows as my 2nd OS.

pls help me in bringing windows as an option in grub.

thnx
 
Old 10-29-2011, 03:45 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,537

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Try opening a terminal and running this command: sudo os-prober
If that fails or you get a message that os-prober is not installed, install it with: sudo apt-get install os-prober
Run the command again and then run: sudo update-grub

This is assuming you are booting from Grub on your new Ubunt install??
 
Old 10-29-2011, 03:47 PM   #3
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
On my system, the entry in grub.cfg would look something like this:
Code:
menuentry "Windows (on /dev/sda1)" --class windows --class os {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root 365829FF5829BF0D
        drivemap -s (hd0) ${root}
        chainloader +1
}
You can run the command
Code:
sudo blkid -c /dev/null
in a terminal window to get the proper uuid
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't select XP OS in a dual boot at boot screen (grub problem i think) incz Linux Mint 1 06-08-2011 05:52 AM
[SOLVED] Can't select XP OS in a dual boot with Isadora at boot screen (grub problem) faby1321 Linux Mint 10 08-10-2010 06:07 PM
Dual-boot problem 'cause of GRUB MichaelYoung Debian 14 05-23-2007 11:16 PM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 05:26 AM
Dual boot GRUB problem mansion108 Linux - Newbie 5 11-18-2005 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:50 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration