LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Enabling boot of existing Win98 install on second disk under Grub menu (https://www.linuxquestions.org/questions/linux-newbie-8/enabling-boot-of-existing-win98-install-on-second-disk-under-grub-menu-442386/)

donv2 05-07-2006 12:53 AM

Enabling boot of existing Win98 install on second disk under Grub menu
 
Hi,

Still working my new installation of Linux, etc. I have several OS images installed on a new SATA disk, plus an original Win98 install I'm moving off of which is on an existing SATA drive. The original Win98 disk is now on the secondary SATA port (swapped disks), and I am booting from Grub that was installed as part of a Fedora Core 5 installation on the new disk (now primary). The FC5 install shares a disk with a new (totally unused) Win98 install and a Solaris 10 U1 installation.

In the short term, I would like to be able to boot into the original Win98 from a Grub menu choice. I tried what I thought would be the solution (see last section of grub.conf provided below), but this does not work - the menu entry is there when I boot to grub but it just comes back to the same menu if I try to select it. I've included df and mount command outputs from within FC5 to provide further information.

I would appreciate the information I need to revise my grub.conf file to enable booting into the original Win98 install.

Code:

[donv@localhost ~]$ df -m
Filesystem          1M-blocks      Used Available Use% Mounted on
/dev/hde3                9917      4994      4411  54% /
tmpfs                      252        0      252  0% /dev/shm
/dev/hde5                9917      758      8647  9% /home
/dev/hdf1                19993    15268      4726  77% /mnt/oldwin98
/dev/hdf5                74990    42605    32385  57% /mnt/oldwin98_d
/dev/hde1                10235      243      9992  3% /mnt/new98

Code:

[donv@localhost ~]$ mount
/dev/hde3 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/hde5 on /home type ext3 (rw)
/dev/hdf1 on /mnt/oldwin98 type vfat (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
automount(pid2377) on /net type autofs (rw,fd=4,pgrp=2377,minproto=2,maxproto=4)
/dev/hdf5 on /mnt/oldwin98_d type vfat (rw)
/dev/hde1 on /mnt/new98 type vfat (rw)

Code:

[root@localhost donv]# more /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,2)
#          kernel /boot/vmlinuz-version ro root=/dev/hde3
#          initrd /boot/initrd-version.img
#boot=/dev/hde
default=0
timeout=5
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
#hiddenmenu
password --md5 <<password hash deleted from posting>>
title Fedora Core (2.6.16-1.2080_FC5)
        root (hd0,2)
        kernel /boot/vmlinuz-2.6.16-1.2080_FC5 ro root=LABEL=/
        initrd /boot/initrd-2.6.16-1.2080_FC5.img
title Fedora Core (2.6.15-1.2054_FC5)
        root (hd0,2)
        kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/
        initrd /boot/initrd-2.6.15-1.2054_FC5.img
title Solaris 10 U1
        rootnoverify (hd0,1)
        chainloader +1
title Windows
        rootnoverify (hd0,0)
        chainloader +1
title OldWin98
        rootnoverify (hd1,0)
        chainloader +1
[root@localhost donv]#


wantabee 05-07-2006 01:48 AM

looking at your last code section....
a post that helped me referred to this posting.

donv2 05-07-2006 11:06 AM

Thanks wantabee... that post got me to the ultimate location of http://www.gnu.org/software/grub/gru...aq.en.html#q10 which explained the magic so I could make it work for Win98. I ended up changing my grub.conf to the following and it worked like a charm!
Code:

...all the prior stuff...
title OldWin98
        map (hd0) (hd1)
        map (hd1) (hd0)
        rootnoverify (hd1,0)
        chainloader +1



All times are GMT -5. The time now is 04:35 PM.