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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-19-2005, 08:20 AM
|
#1
|
LQ Newbie
Registered: Sep 2004
Location: England
Distribution: Suse 9.1
Posts: 19
Rep:
|
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
|
|
|
01-19-2005, 08:33 AM
|
#2
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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.
|
|
|
01-19-2005, 08:56 AM
|
#3
|
LQ Newbie
Registered: Sep 2004
Location: England
Distribution: Suse 9.1
Posts: 19
Original Poster
Rep:
|
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.
|
|
|
01-19-2005, 11:15 AM
|
#4
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|