LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-19-2005, 08:20 AM   #1
Steve2001
LQ Newbie
 
Registered: Sep 2004
Location: England
Distribution: Suse 9.1
Posts: 19

Rep: Reputation: 0
Dual booting with Grub - installing Win 2000 from CD-Rom with an existing SuSe 9.1


Hi, hopefully somebody can help me with my problem, I have Suse 9.1 installed on my PC ( two hds: 4GB used for Suse + 40 GB hd used for Suse users data and where I want Windows) and no other op system, I want to make the PC dual boot for Suse and Win 2000, this is how far I have got:

1 -

I have set up an extended partition on hdc of about 34GB the results of sfdisk are shown below:

--------------------------------------------------------------------------------------
LINUXPC:/ # sfdisk -l

Disk /dev/hda: 8894 cylinders, 15 heads, 63 sectors/track
Units = cylinders of 483840 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hda1 0+ 806 807- 381276 82 Linux swap
/dev/hda2 807 8884 8078 3816855 83 Linux
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 0 - 0 0 0 Empty

Disk /dev/hdc: 79656 cylinders, 16 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hdc1 0+ 8322 8323- 4194760+ f W95 Ext'd (LBA)
/dev/hdc2 8323 79655 71333 35951832 c W95 FAT32 (LBA)
/dev/hdc3 0 - 0 0 0 Empty
/dev/hdc4 0 - 0 0 0 Empty
/dev/hdc5 0+ 2080 2081- 1048761 83 Linux
/dev/hdc6 2081+ 4161 2081- 1048792+ 83 Linux
/dev/hdc7 4162+ 6242 2081- 1048792+ 83 Linux
/dev/hdc8 6243+ 8322 2080- 1048288+ 83 Linux

--------------------------------------------------------------------------------------


2 I have modified grub file so it is as follows


--------------------------------------------------------------------------------------

color white/blue black/light-gray
default 0
# 3600 secs = 1 hour
timeout 8
gfxmenu (hd0,1)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SuSe Linux Professional 9.1
kernel (hd0,1)/boot/vmlinuz root=/dev/hda2 vga=0x317 splash=silent desktop resume=/dev/hda1 showopts
initrd (hd0,1)/boot/initrd

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe
kernel (hd0,1)/boot/vmlinuz root=/dev/hda2 showopts ide=nodma apm=off acpi=off vga=normal noresume nosmp noapic maxcpus=0 3
initrd (hd0,1)/boot/initrd

title Boot Windows from CD
chainloader (cdrecorder) +1

title Microsoft Windows Professional 2000
map(hd1,0)(hd1,1)
map(hd1,1)(hd1,0)
rootnoverify(hd1,1)
chainloader +1


--------------------------------------------------------------------------------------



Grub works OK for booting Linux, but what I am attempting to do is: when the grub menu comes up insert my Win 2000 bootable installtion CD and then select "Boot Windows from CD" from the grub menu then install Win 2000. Once I have installed Win 2000 I will then use "Microsoft Windows Professional 2000" which with the map commands will allow Win 2000 to boot even though it is not on the primary drive.


The problem is when the Win CD is in the CD drive and "Boot Windows from CD" selected from the grub menu I get the following grub error:

ERROR 23 - parsing error.

So i am guessing there's something wrong with chainloader (cdrecorder) +1.
syntax. Can any one help me please?

P.S in fstab I have
:

/dev/cdrecorder /media/cdrecorder subfs

and can cd to cdrecorder and view the cd contents
 
Old 01-19-2005, 08:33 AM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
fstab is meaningless to grub. Its not running Linux, it's completley seprate apart from accessing the drive for its stage and menu.list files.

To do what you want I think Win2K is already capable of being installed on something other than the first partition of the primary harddrive.

If not you could just rearrange the disks and tell your BIOS to boot from CD, install windows and then put the disks back in order. then use

map (hd0) (hd1)
map (hd1) (hd0)

This will trick windows into thinking the hdb is hda, and everthing will work.
 
Old 01-19-2005, 08:56 AM   #3
Steve2001
LQ Newbie
 
Registered: Sep 2004
Location: England
Distribution: Suse 9.1
Posts: 19

Original Poster
Rep: Reputation: 0
Yes, that what I am trying to do with the "Boot Windows from CD" section of the grub menu.

I can see now that I am missing the mappings to fool Windows in to thinking hd1,1 is the primary partition of the first disc. so I've now got this:


title Boot Windows from CD
map(hd1,0)(hd1,1)
map(hd1,1)(hd1,0)
chainloader (cdrecorder) +1

but I still get the same Grub parser error which I think is the chain command which should tell the PC to boot from the CD rom.
 
Old 01-19-2005, 11:15 AM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
I don't think Grub can boot a CD rom this way, stuff to do with the BIOS. Which is why I talked about setting this in the BIOS and physically swapping the drives.

I should point out that the map commands your using swap the second and first partitions on the second drive. NOT the first partition on the primary drive. (hd0,0) Is the first partition on the primary drive.
 
  


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 Booting SuSe 9.1 and WIN XP? CrYpTiC N1Nj4 Linux - Software 5 09-16-2004 01:09 PM
How do I do a dual boot with Linux Suse Pro and win 2000 corp? dade2 Linux - Newbie 4 06-15-2004 06:31 PM
Problem dual booting Linux and Win 2000 Mechanic Linux - General 4 08-19-2003 08:50 PM
Installing RedHat 9 onto an existing Win XP system as dual boot Michael2003 Linux - Newbie 9 07-16-2003 05:50 PM
Problems booting with GRUB on RH 7.3/ Win XP Dual Boot pasta4u2 Linux - Newbie 8 10-07-2002 11:22 PM


All times are GMT -5. The time now is 11:38 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration