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 11-13-2006, 12:51 PM   #1
ViperLinux
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Rep: Reputation: 0
Linux & windows dual boot issues


Hello, i'm kind of new to linux. I've been messing around w/ it for a couple years now but not very much.

I would love to really get back into it, but due to work I can't really totally blow out my laptop, and would like to keep Winxp on it. I know there's a way to mess with the Grub loader so it asks me which I would like to boot to, but I can't seem to remember how my friend did it. I was wondering - how do I do that? Any help would be appreciated. Remember, I know very little command-line wise, and It's a lappy, so no floppy-drive.

Thanks.

-Viper
 
Old 11-13-2006, 12:56 PM   #2
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
i'm confused, have you already installed linux?
The term you are lookgling for is 'dual boot'.
 
Old 11-13-2006, 01:02 PM   #3
ViperLinux
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Yes, it's installed, but I can easily blow it away if needed to do it right. My problem is I can't seem to get anything to ask me if I want to boot from Winblows or Linux. That's what I want. A menu that asks me "Hey, which one you want me to boot from?" I've had it before, and it's not that hard, I just can't remember how to save my life.
 
Old 11-13-2006, 01:20 PM   #4
bioalchemist
Member
 
Registered: Oct 2005
Distribution: mandriva
Posts: 106

Rep: Reputation: 15
Quote:
Originally Posted by ViperLinux
Yes, it's installed, but I can easily blow it away if needed to do it right. My problem is I can't seem to get anything to ask me if I want to boot from Winblows or Linux. That's what I want. A menu that asks me "Hey, which one you want me to boot from?" I've had it before, and it's not that hard, I just can't remember how to save my life.
so you currently have windows AND linux installed? if so does Grub come up and tell you it's going to boot Linux? If so, then you just need to add a line to your grub configuration file (menu.lst?) for windows. If not, if it boots strait to windows then grub is not installed in your MBR and you'll need to do that first.
 
Old 11-13-2006, 01:24 PM   #5
ViperLinux
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
I did have it installed straight up how it wanted to, so I assume it did it that way, and it just wen't striaght to windows. I'm reinstalling it right now so it installs in the MBR. Once that's done, if it doesn't give me a choice, i'll post again. May we for the sake of time, assume it doesn't and continues with it's persistant issue - goes straight to windows. What is the next course of corrective action?

Thanks.

-Viper
 
Old 11-13-2006, 01:27 PM   #6
ViperLinux
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Update: When I'm installing linux ( its RH9, Btw ) I get two boxes in the boot loader configuration screen.

---------------------------
O - DOS /dev/hda1
X - RH9 /dev/hda3
---------------------------

It's a laptop, so I only have one drive, and no floppy.

-Viper
 
Old 11-13-2006, 01:44 PM   #7
bioalchemist
Member
 
Registered: Oct 2005
Distribution: mandriva
Posts: 106

Rep: Reputation: 15
Quote:
Originally Posted by ViperLinux
Update: When I'm installing linux ( its RH9, Btw ) I get two boxes in the boot loader configuration screen.

---------------------------
O - DOS /dev/hda1
X - RH9 /dev/hda3
---------------------------

It's a laptop, so I only have one drive, and no floppy.

-Viper
you'll want to install grub on /dev/hda1
 
Old 11-13-2006, 01:48 PM   #8
ViperLinux
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Here's a complixated question... how do I do that?
 
Old 11-13-2006, 02:05 PM   #9
bioalchemist
Member
 
Registered: Oct 2005
Distribution: mandriva
Posts: 106

Rep: Reputation: 15
No idea - never installed RH9. There's usually a screen asking you where you want to install the Grub Bootloader. on that screen, you'd type in /dev/hda1
 
Old 11-13-2006, 02:14 PM   #10
ViperLinux
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Does it HAVE to be on /dev/hda1? And if so, then why is it installing on the hda3? Just wondering?
 
Old 11-13-2006, 02:17 PM   #11
bioalchemist
Member
 
Registered: Oct 2005
Distribution: mandriva
Posts: 106

Rep: Reputation: 15
No, it doesn't have to be on hda1, but that's probably where the MBR is. If you install it on the MBR, then your computer boots to grub. If you install it on hda3 and don't overwrite your windows bootloader on hda1, your computer won't boot linux. sometimes the setup will ask you if you want grub installed on the MBR - you want to answer yes to this.
 
Old 11-13-2006, 02:32 PM   #12
ViperLinux
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
It's not letting me install the Linux boot info on the /hda1. It insist upon installing on /hda3. I can change where the DOS one is, but not linux. I know of no way around this.
 
Old 11-13-2006, 02:33 PM   #13
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I think you actually want to install grub on /dev/hda---ie in the mbr of hda. (/dev/hda1 would put it in the partition boot sector---you would still need **something** in the mbr to get you there.

To install and configure grub:
(This assumes that the Linux /boot directory is on partition hda2, and that Windows is on hda1)
Running in Linux, do this as root:
Code:
grub     (starts the grub shell)
root (hd0,1)    (tells grub shell where /boot is)
setup (hd0)   (puts grub on the mbr of the first drive)
<<Note that grub counts from zero>>

Now setup the config file:
Code:
cd /boot
ls
note the name of the vmlinuz and initrd files. If they are not already aliased to simple names, you can do so like this (optional):
ln -s vmlinuz_blah_blah vmlinuz
ln -s initrd_blah_blah initrd
cd grub
ls   (look for a file named menu.lst or grub.conf
open with an editor, eg:
nano menu.lst
edit as required so that you have this:
title <Linux whatever>
    root (hd0,1)
    kernel /boot/<vmlinuz_whatever> root=/dev/hda2
    initrd /boot/<initrd_whatever>
title Windows
    root (hd0,0)
    makeactive
    chainloader +1
NOTES:
<> indicates where you substitute the actual names
If /boot is on its own partition, then omit "/boot" from the kernel and initrd lines
 
Old 11-13-2006, 02:42 PM   #14
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
that's right, the bootloader needs to go on hda, not on the windows partition. Also, sounds like you'll need to choose the option to install to MBR and not the root partition. You'll proabably be asked whether or not you want to do this by the installer.
Cheers
 
Old 11-13-2006, 03:31 PM   #15
ViperLinux
LQ Newbie
 
Registered: Nov 2006
Posts: 9

Original Poster
Rep: Reputation: 0
IT WORKED!!!! YOU GUYS ROCK!! thank you very much. I will for sure have more questions later on. ( i'm new )
 
  


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
Dual boot - sharing data between Linux & Windows alanbarnard Linux - General 8 02-13-2006 04:19 PM
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 35 02-07-2006 03:29 PM
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 4 11-10-2005 11:37 AM
Need Help Loading Windows XP & SuSe Linux version 8.2---to Make a Dual Boot System Howerton Linux - Newbie 7 09-23-2004 02:49 PM
Linux & Windows 98SE dual boot... will defrag mess up linux partition? herrtool Linux - General 5 10-31-2003 02:43 PM

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

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