LinuxQuestions.org
Register a domain and help support LQ
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 08-22-2010, 07:09 AM   #1
thezig
LQ Newbie
 
Registered: Aug 2010
Posts: 5

Rep: Reputation: 0
Unhappy Dual boot


Hi guys

I'm not sure this is the right websire for my problem but i'll try anything now.

I have a laptop with Windows XP. I partitioned the drive and installed opensolaris on the second partition. No wheneveri turn on the laptop, Grub opens and only gives me the option for Solaris and not wiondows. I haven't been able to boot to Windows since. I've seen alot about editing the command lines for Grub but i'm new to this.

Does anyone have any idea's on how to solve this? i feel like it's not such a big thing but it's beating me right now.

Big thanks
 
Old 08-22-2010, 07:44 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 697

Rep: Reputation: 93
I'd suggest that you boot opensolaris and add an entry for Windows to grub.

Add these lines to /boot/grub/menu.lst:
Code:
title Windows XP
root (hd0,0)
chainloader +1
The hd0,0 refers to the first drive (0) and the first partition (0). If
Windows were installed on the third partition of the second drive you would
use hd1,2 instead.

To answer your question about the command line, just type "root (hd0,0)"
and "chainloader +1".
 
Old 08-22-2010, 07:58 AM   #3
thezig
LQ Newbie
 
Registered: Aug 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Hey

how do I access the menu.lst?? Do I have to open the Terminal?

If so I did that and there wasn't a manu.lst. I created one using touch manu.lst and then used vi to add the command lines.

This didn't work. Can you see where i'm going wrong?

Thnaks for your help
 
Old 08-22-2010, 08:08 AM   #4
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 697

Rep: Reputation: 93
Delete the file you created. Some systems use /etc/grub.cnf or
/boot/grub/grub.cnf. Look through the /etc, /boot and /boot/grub
directories for a file named menu.lst or grub.cnf. When you find
the right file it will have many lines, and the new entry you add
should go at the bottom.
 
Old 08-22-2010, 08:42 AM   #5
thezig
LQ Newbie
 
Registered: Aug 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Hi

I looked in both directories and can't find either grub.cnf or menu.lst

I can see nbgrub and pxegrub in the boot/grub directory..

What if I make the windows partition active using some other software that I have? Will it then boot to Windows?

Appreciate your help with this
 
Old 08-22-2010, 09:10 AM   #6
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 697

Rep: Reputation: 93
Can you check all three directories, /etc, /boot and /boot/grub?

Odds are the Windows partition is already active. You can tell
by running "fdisk -l". What we need to do is update the early
booting process to allow that partition as an option.
 
Old 08-22-2010, 09:36 AM   #7
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,422
Blog Entries: 33

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
What version of grub are you using?
Code:
cat /boot/grub/installed-version
 
Old 08-22-2010, 09:37 AM   #8
thezig
LQ Newbie
 
Registered: Aug 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Hey

I can't see either menu.lst or grub.cnf in any of those places.

After I type in fdisk -l what is the next step?

If i was to give up on this whole problem, could I just remove Solaris and get back to just using the windows partition? I have to use my laptop for work tomorrow and i'll be in a bit of bother if it's not sorted :-)
 
Old 08-22-2010, 09:52 AM   #9
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,344

Rep: Reputation: 184Reputation: 184
Is there a /boot/grub/grub.cfg file? sorry about that has it wrong the first time a around so reedited it.

Last edited by colorpurple21859; 08-22-2010 at 10:05 AM.
 
Old 08-22-2010, 10:08 AM   #10
thezig
LQ Newbie
 
Registered: Aug 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Sorry mate, I can't see grub.cfg either. I do see other files just not the one's we need.

I have found the menu.lst on the Solaris cd. It has some content to. can I copy this across?
 
Old 08-22-2010, 02:38 PM   #11
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,344

Rep: Reputation: 184Reputation: 184
Do you have this file here
Quote:
/rpool/boot/grub/menu.lst
if so edit this file to add windows.

Last edited by colorpurple21859; 08-22-2010 at 02:40 PM.
 
Old 08-22-2010, 10:12 PM   #12
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,422
Blog Entries: 33

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
If you must pop in the Windows Installer CD and boot to recovery console. Run the following commands to restore Windows as your primary boot...
Code:
fixboot
fixmbr
fschk c: /r
Of course the fschk command is optional. From there you can actually add entries to your Windows boot loader for booting Solaris.

How advanced are you with Unix/Linux in the terminal. Do you know your way around? Do you understand the general structure of the OS such as where stuff it booted from, startup, and where programs are installed?

I'm just trying to get a feel for where you stand as a user because it's quite possible that us telling you to run these commands may be ineffective if you don't know how to run them.

Please let us know...
SAM
 
  


Reply

Tags
dual boot, grub


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
My FC6 / XP dual boot to FC10 / XP dual boot upgrade plan... is this sane? rylan76 Fedora - Installation 6 02-03-2009 07:31 AM
Dual linux boot and dual windows boot together? Stuart36 Linux - General 8 05-01-2007 11:53 PM
Installing dual Boot 98/Linux - WONT 'LILO' Dual Boot !? L1nux3d Linux - Laptop and Netbook 15 02-11-2006 05:36 AM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
hOw to dual boot linux suse with a dual boot win98/xp pc walterkai Suse/Novell 1 12-14-2004 05:04 PM


All times are GMT -5. The time now is 06:52 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