LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-26-2004, 09:10 AM   #1
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
GRUB for Linux, WindowsXP and MSDOS - HOWTO?


I would like to consolidate my 3 old computers running DOS, Windows XP and Linux onto my new laptop with 60GB harddrive and 512MB RAM.

My problem is in what order the operating systems should be installed. We need DOS for legacy purposes (pure dos, not emulated) and it needs to be on C:

When booting Windows XP, Iwant the DOS partition to be hidden so that 1) Windows XP can live in its default location on C: and 2) I don't get my DOS-drive messed up by Windows files. The DOS-drive is pretty much a snapshot of 1990 and it works fine and I'd like to leave it there

When booting Linux there's obviously no problem as I can chose not to mount DOS and XP.

The BIG QUESTION is this:

In what order should the OS'es be installed, and HOW do I get GRUB to hide the OS'es not in use?

The common sense way to do it is

1: MSDOS
2: Windows XP
3: Linux

But - I need GRUB to be able to hide the DOS partition, and GRUB comes with Linux. So if I do it in that way, Windows XP will automatically become D: and not C:...

Can anyone offer any insight on how to install these three operating systems from scratch, using GRUB from Linux to hide the DOS partition from XP and Linux ?

Thank you so much in advance - been pondering over this one for weeks without success!
 
Old 10-26-2004, 12:18 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You're right, the second MS install will put a couple of files onto the "C:\" partition. That doesn't really do any harm unless you want to delete that first partition, because then the second install won't work eirther.

Anywho, if you want both Windows systems ( doesn't matter what versions ) to think they are alone on the disk, it's been a while but this is how I did it....

Install the first MS system on the "C:\" partition.

Boot up with a linux livecd such as systemrescue cd.
Create a second partition.
After you have created the second partition, make a note of what type of partition the first one is. ( should be fat ) then delete the first partition.
Save the new partition table.

Boot up with the XP cdrom and start the install.
Select to install on the "C:\" partition which in fact is your second partition.
After the install is complete, boot up XP to make sure it works ok.
Edit the boot.ini to have timeout=0 and the xp partition is going to be #2 .....
[boot loader]
timeout=0
default=multi(0)disk(0)rdisk(0)partition(2)\WINNT

Now you boot up with the linux rescuecd
Get into fdisk and re-create the first partition as type fat which it used to be.
Save the partition table.
DO NOT FORMAT ANY OF THOSE PARTITIONS.

Edit the grub.conf file in your linux system to add both versions of windows.
 
Old 10-26-2004, 02:01 PM   #3
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
Dear homey,

Thank you. This is yet another reason why I'm so happy with Linux - the community is helpful beyond my wildest dreams. I've been searching for this for ages, and what you are proposing makes good sense.

Now I have something to look forwards to this weekend :-)


-Yalla
 
Old 10-26-2004, 02:53 PM   #4
WhiteChedda
Member
 
Registered: Aug 2003
Location: Florida
Distribution: Mandrake 9.1 for now
Posts: 205

Rep: Reputation: 30
Re: GRUB for Linux, WindowsXP and MSDOS - HOWTO?

Quote:
Originally posted by Yalla-One
I would like to consolidate my 3 old computers running DOS, Windows XP and Linux onto my new laptop with 60GB harddrive and 512MB RAM.

My problem is in what order the operating systems should be installed. We need DOS for legacy purposes (pure dos, not emulated) and it needs to be on C:

When booting Windows XP, Iwant the DOS partition to be hidden so that 1) Windows XP can live in its default location on C: and 2) I don't get my DOS-drive messed up by Windows files. The DOS-drive is pretty much a snapshot of 1990 and it works fine and I'd like to leave it there

I think what you want it grub's hide command.
http://mirror.switch.ch/ftp/doc/Linu...boot-with-GRUB

Last edited by WhiteChedda; 10-26-2004 at 03:00 PM.
 
Old 10-26-2004, 02:55 PM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You're welcome!
 
  


Reply



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
Help: Accidentally installed GRUB to my WindowsXP NTFS partition Hasbro35 Ubuntu 1 08-05-2005 12:56 PM
Grub to Boot WindowsXP on SATA daveteusink Linux - Software 4 07-25-2004 06:32 PM
Canot Boot WindowsXP from GRUB snufferz Linux - Newbie 9 04-01-2004 11:34 AM
grub problem....windowsXP will not boot...please help me*tear* bock9259 Linux - Newbie 5 04-01-2004 11:29 AM
GRUB WindowsXP rubenmp Linux - Software 1 09-24-2003 07:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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