LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-08-2014, 11:10 AM   #1
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, XUbuntu 12.04
Posts: 504

Rep: Reputation: 44
Dual boot: Windows not showing up on Grub menu


I have installed Linux Mint 14 xcfe on a friend's desktop machine, previously running Windows XP. They wanted to do it dual-boot, so they still had access to their files stored on the Windows partition, and could still go into XP if they needed to.

However, even though I installed as dual-boot, no Windows option appear in Grub upon boot-up. So they can't go into Windows at all.

I checked grub.cfg and there is no Windows XP entry in there at all. The files are still accessible on the Windows partition; just that it won't boot into Windows anymore.

How can I correct this, without using the original Windows installation disc to fix the boot sector (and render Linux inoperable)? I do not know the text to enter into grub.cfg (or /etc/default/grub) to make a valid XP entry in the file...

We are both rather panicky at the moment, as I appear to have rendered her Windows installation on the machine inoperable, despite my assurances that this wouldn't happen! (She has several programs that only run in Windows, which is why she still needs XP, for the moment, so running Linux only is not an option).

Thank you for any help you can give.
 
Old 04-08-2014, 03:08 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,977
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Not sure if this is the same in Mint; but I had a similar problem in Fedora.

All I did was add this script...

Code:
# cat /etc/grub.d/31_windows-probe
#!/bin/sh -e
#
cat << EOF
menuentry "Microsoft Windows 7" {
  set root=(hd0,1)
  chainloader +1
}
EOF
#
Where set root=(hd0,1) is where Windows lives.

Then I ran

Code:
grub2-mkconfig
Please backup your file/system before trying this.

--C
 
Old 04-08-2014, 05:45 PM   #3
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, XUbuntu 12.04
Posts: 504

Original Poster
Rep: Reputation: 44
So do I add this script into /etc/grub.d, with the other scripts, calling it "31_windows-probe"?
 
Old 04-08-2014, 08:02 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,805

Rep: Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168
Just run "sudo update-grub" first to be sure - os-prober should find XP ok. Why not Mint 16 (petra) ?.
 
1 members found this post helpful.
Old 04-09-2014, 10:26 AM   #5
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,977
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by Steve W View Post
So do I add this script into /etc/grub.d, with the other scripts, calling it "31_windows-probe"?
Yes and make sure you make it executable with chmod.


Also I would do what syg00 says

--C
 
1 members found this post helpful.
Old 04-09-2014, 12:25 PM   #6
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Another vote here for "sudo update-grub"
If that doesnt do it you could install and run the grub repair tool

Here is the link https://help.ubuntu.com/community/Boot-Repair
 
1 members found this post helpful.
Old 04-10-2014, 03:41 AM   #7
Steve W
Member
 
Registered: Mar 2007
Distribution: Ubuntu 12.04, XUbuntu 12.04
Posts: 504

Original Poster
Rep: Reputation: 44
Success. I did "sudo update-grub2" as suggested, then rebooted. Windows XP then appeared as an OS at the bottom of the menu.

Other people with the same problem who may find this thread: please note it was "grub2" at the end, not "grub". I don't know whether "grub" would have worked as well, but as I understand it, grub2 is used more on distros these days.

syg00: "Why not Mint 16 (petra)?"

Version 14 was just what I had on a memory stick from a previous install. Although I wonder how supported it is still, since when I ran the updates most of them came up as "Fail" and "Not found".

Anyway, thank you all for the assistance.
 
Old 04-10-2014, 09:23 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,288

Rep: Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384
Quote:
Version 14 was just what I had on a memory stick from a previous install. Although I wonder how supported it is still, since when I ran the updates most of them came up as "Fail" and "Not found".
According to the Mint site, support for 14 ends this month.

http://www.linuxmint.com/oldreleases.php
 
1 members found this post helpful.
Old 04-10-2014, 09:30 AM   #9
rokytnji
LQ 5k Club
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 17 , ChromeOS
Posts: 5,117
Blog Entries: 20

Rep: Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382Reputation: 2382
Quote:
Version 14 was just what I had on a memory stick from a previous install. Although I wonder how supported it is still, since when I ran the updates most of them came up as "Fail" and "Not found".
Quote:
According to the Mint site, support for 14 ends this month.

http://www.linuxmint.com/oldreleases.php
There is your answer. From a guy running

Code:
 $ cat /etc/issue
Linux Mint 14 Nadia \n \l
I will run this unsupported version till next month and then install

http://blog.linuxmint.com/?p=2594

I like using the Mate Iso. I run all kinds of gear with all kinds of different Linux installs.
It depends on my gear on what I run.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Windows Xp not showing in grub menu Devinnavarro15 Fedora 8 02-09-2012 08:12 PM
Grub menu doesnt load at startup : dual boot : grub in the /boot partition jayesh.bhoot Linux - General 7 10-23-2010 03:58 AM
Installed Fedora as dual boot but Grub boot menu is not showing up nilocjin Linux - Newbie 4 06-03-2009 02:09 PM
Help w/ GRUB, menu.lst, dual boot Windows XP ryanryan Linux - Newbie 11 04-05-2007 08:26 PM
Grub - Delay before showing boot menu IK81 Linux - General 3 10-02-2006 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration