View previous topic :: View next topic |
Author |
Message |
SxN Apprentice
Joined: 08 Jan 2007 Posts: 165 Location: Toronto, ON, Canada
|
Posted: Thu Oct 11, 2007 3:53 am Post subject: Help creating a Win98 partition |
|
|
Hi All,
On my Gentoo machine I have to have Windows for several applications which are not ported in Linux (and I'm not smart enough to port them myself).
I prepared the partitions as follows:
Code: | # fdisk -l /dev/hda
Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 5 40131 83 Linux
/dev/hda2 6 68 506047+ 82 Linux swap / Solaris
/dev/hda3 69 816 6008310 83 Linux
/dev/hda4 817 4864 32515560 5 Extended
/dev/hda5 * 817 1563 6000246 c W95 FAT32 (LBA)
/dev/hda6 1564 4864 26515251 83 Linux
|
From another drive I moved a working Windows:
Code: | # dd of=/dev/hda5 if=/dev/sda1
|
I modified grub.conf, so it reads:
Code: | # cat /boot/grub/grub.conf
# Which listing to boot as default. 0 is the first, 1 the second etc.
default 0
# How many seconds to wait before the default listing is booted
timeout 5
# splash
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.18-hardened
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /boot/kernel-2.6.18 root=/dev/hda3 #vga=773 resume=swap:/dev/hda3
title=Gentoo Linux 2.6.22-suspend2
root (hd0,0)
kernel /boot/kernel-2.6.22 root=/dev/hda3 resume=swap:/dev/hda3
title=Windows 98 Second Edition
map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)
rootnoverify (hd0,4)
chainloader +1
|
And now the moment of truth... when selecting Windows 98, I end up with:
Code: | Booting 'Windows 98 Second Edition'
map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)
rootnoverify (hd0,4)
chainloader +1
|
then for a brief moment I see Windows' splash, then:
Code: | Type the name of the Command Interpreter (e.g., C:\WINDOWS\COMMAND.COM)
C>_
|
And here I'm stuck. Typing the name of the interpreter doesn't help. There are two copies of command.com, one in C:\, and one in C:\windows.
Although it looks more like a Windows question, maybe there is someone with a similar experience and a solution?
Thanks for your advice,
SxN |
|
Back to top |
|
|
Steve Bell n00b
Joined: 09 Oct 2007 Posts: 18 Location: Shetland
|
Posted: Thu Oct 11, 2007 5:24 am Post subject: |
|
|
This might sound a bit silly, but how did you manage to get 2 bootable partitions. Surely the only one that needs the bootable flag is /dev/hda5.
I believe that map is intended to be used for swapping hard disks (i.e. swap /dev/hda with /dev/hdb), not for swapping partitions. I would try the following:
title=Windows 98 Second Edition
rootnoverify (hd0,4)
# makeactive
chainloader +1
The makeactive line might be needed.
I hope this helps |
|
Back to top |
|
|
Steve Bell n00b
Joined: 09 Oct 2007 Posts: 18 Location: Shetland
|
Posted: Thu Oct 11, 2007 5:27 am Post subject: |
|
|
Sorry, missed a bit.
You might have to add
boot
at the end of the above.
Check section 4.1.2 (Load another boot loader to boot unsupported operating systems) and 4.2.6 (DOS/Windows) of the grub manual. |
|
Back to top |
|
|
fangorn Veteran
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Thu Oct 11, 2007 7:05 am Post subject: |
|
|
MS DOS and any other MS Bootloader does not boot of logical partitions. They do only boot of active primary partitions with the correct size parameters. _________________ Video Encoding scripts collection | Project page |
|
Back to top |
|
|
SxN Apprentice
Joined: 08 Jan 2007 Posts: 165 Location: Toronto, ON, Canada
|
|
Back to top |
|
|
tarpman Veteran
Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Thu Oct 11, 2007 10:40 pm Post subject: |
|
|
SxN wrote: | If I take out the bootable flag from /dev/hda1, would I be able to boot Gentoo? |
Yes. _________________ Saving the world, one kilobyte at a time. |
|
Back to top |
|
|
SxN Apprentice
Joined: 08 Jan 2007 Posts: 165 Location: Toronto, ON, Canada
|
Posted: Fri Oct 12, 2007 4:35 am Post subject: |
|
|
Following your suggestions I removed the "bootable" flag from /dev/hda1. The world did not collapsed. I inserted a "makeactive" in grub.conf, this one didn't work. According to the grub manual, "makeactive" works only for primary partitions, so this explains it. Finally, I put a "boot" after "chainloader +1" and it made no difference at all.
If I would have been on a pure Windows box, I would have tried first an "fdisk /mbr" (using, of course, Win's fdisk). But I'm not...
Thanks for ideas, and looking forward for new ones
SxN |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|