LinuxQuestions.org
Review your favorite Linux distribution.
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 01-03-2004, 09:28 AM   #1
TheSwine
Member
 
Registered: Dec 2003
Location: London
Distribution: Debian
Posts: 34

Rep: Reputation: 15
Howto: Existing Win98 + Linux, dual boot using GRUB


Having no website to put this on, I'm submitting this HOWTO here....


I've created a dual boot of existing Windows 98 and Linux using GRUB.
On my machine there is one hard drive divided like so (in brackets - GRUB Device Names):

hda1 (hd0,0) FAT 32 - Win98
hda5 (hd0,4) ext2 - Linux
hda6 (hd0,5) swap - Linux swap


Before overwriting my MBR I tried the GRUB setup from a floppy, to install GRUB on a floppy:

From /sbin I ran grub-install '(fd0)'

and then in /boot/grub I've create a menu.lst

Code:
#
# Boot menu configuration file
#

# Boot automatically after a 10 seconds. 
timeout 10

# By default, boot the first entry.
default 0

# For booting Linux
title  Linux
root (hd0,4)
kernel /boot/vmlinuz-2.4.22-1-686 root=/dev/hda5 
initrd /initrd.img

# For booting windows 98
title Windows 98
rootnoverify (hd0,0)
chainloader +1
makeactive
Then reboot with the floppy in, to check if the configuration works - it did.

Then:

From /sbin I ran grub-install /dev/hda

That's it fox!
 
Old 01-03-2004, 09:43 AM   #2
TheSwine
Member
 
Registered: Dec 2003
Location: London
Distribution: Debian
Posts: 34

Original Poster
Rep: Reputation: 15
May I also add, that this is quite a cool and easy boot loader.

It lets you test everything from a floppy before you commit the boot loader on the MBR.

Also, if you're not sure about the configuration, running the GRUB without menu.lst will enter a command prompt where you can type the commands one after the other. (followed by the boot command.)

Note that all you need to read from its manual (http://www.gnu.org/software/grub/man...index.html#Top) to get it running, is the first 5 sections (Introduction - Configuration).

Worth checking out.
 
Old 01-03-2004, 10:00 AM   #3
johnklvr
Member
 
Registered: Dec 2003
Posts: 31

Rep: Reputation: 15
How do I get grub-install in /sbin? I didn't set up my network settings so I can't connect to the internet while using linux. If I could get the grub-install in /sbin I shoudl be able to follow those instructions.
 
Old 01-03-2004, 10:06 AM   #4
TheSwine
Member
 
Registered: Dec 2003
Location: London
Distribution: Debian
Posts: 34

Original Poster
Rep: Reputation: 15
With Debian, you can get it with dselect. I don't know about other distributions...

if you do manage to get and internet access, this page will direct you to an FTP.
 
  


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 Linux + Win98 with GRUB raypen Slackware 14 12-29-2004 05:31 PM
hOw to dual boot linux suse with a dual boot win98/xp pc walterkai SUSE / openSUSE 1 12-14-2004 05:04 PM
Dual boot "merge" from existing 98 & existing Linux atsmith Linux - Newbie 4 07-13-2003 03:46 PM
Linux/Win98 Dual Boot, Win98 won't boot TIMMY! Linux - Software 21 04-18-2001 03:17 PM
Win98/Linux - dual boot : windows boot says logical drives exist past z ashpai Linux - Software 3 03-22-2001 09:00 AM

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

All times are GMT -5. The time now is 10:59 PM.

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