LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-31-2005, 07:24 AM   #1
RodWC
Member
 
Registered: Oct 2005
Distribution: Debian Etch i386, Lenny and Sid amd64
Posts: 177

Rep: Reputation: 30
Multiboot with Debian, Windows XP, and FreeDOS


Hi all. My current setup is with Debian on the first drive, XP on the second (that worked best, though I use XP more). The first drive is a 60gb, although with Debian I am using only a tenth of that and the rest is unpartitioned. I want to create a FAT32 partition and make a third boot option: FreeDOS (this would come in very handy for me). What I need to know is how to set up FreeDOS on the partition, and then how to configure the GRUB bootloader to add the option (this is probably the most important. The other I can probably figure out on my own).

The Windows XP was a bit of a trick, as I had to map/remap the drives in the bootloader. And I'm thinking that adding a third option may be even trickier.

Just for a recap, the current setup is:
hd0/0 - Bootloader and Debian 3.1
hd1/0 - Windows XP

Here's what I want:
hd0/0 - Bootloader and Debian 3.1
hd0/1 (or whatever it needs to be I guess) - FreeDOS
hd1/0 - Windows XP

Thanks for any suggestions/instructions!


Rod
 
Old 10-31-2005, 09:35 AM   #2
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
I will give you the sample grub config file for your ideal system:
Code:
title Debian
 root (hd0,0)
 kernel /boot/<the linux kernel>
 initrd /boot/<the initial ramdisk>
title Windows XP
 rootnoverify (hd0,1)
 chainloader +1
title Freedos
 rootnoverify (hd1,0)
 map (hd0) (hd1)
 map (hd1) (hd0)
 chainloader +1
To boot to your Debian you will have to give grub the path to linux kernel image (in common, its name start with vmlinuz) and init ramdisk
After the path is the kernel options, it depends on your distro. If your debian is OK, you should keep the line for Debian unchanged
Try it.
I hope it will work. But I can't quarranty anythings because I have not used windows for one year and I have never configure grub to boot DOS.
You may access the grub info page
Code:
info grub
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Poblem: Grub and Windows multiboot Paul L Linux - Newbie 6 07-19-2005 04:18 PM
Multiboot Fedora and Windows XP LemBit Linux - Newbie 6 08-08-2004 04:43 AM
How many of your Multiboot with Windows? lava Linux - General 46 08-19-2003 05:52 PM
can not multiboot linux with Windows XP fuzzylogix Linux - Newbie 2 02-27-2002 10:18 AM
Does anyone know how to multiboot Windows and redhat 7.1 steinberg Linux - Software 1 11-09-2001 03:58 AM


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

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