LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-07-2006, 12:53 AM   #1
donv2
Member
 
Registered: Nov 2004
Location: Upper right corner of USA
Distribution: Ubuntu/Mint, unSLUng (NSLU2), Arch/PlugApps (Dockstar)
Posts: 50

Rep: Reputation: 15
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]#
 
Old 05-07-2006, 01:48 AM   #2
wantabee
LQ Newbie
 
Registered: Apr 2006
Posts: 25

Rep: Reputation: 15
looking at your last code section....
a post that helped me referred to this posting.
 
Old 05-07-2006, 11:06 AM   #3
donv2
Member
 
Registered: Nov 2004
Location: Upper right corner of USA
Distribution: Ubuntu/Mint, unSLUng (NSLU2), Arch/PlugApps (Dockstar)
Posts: 50

Original Poster
Rep: Reputation: 15
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

Last edited by donv2; 05-07-2006 at 11:07 AM. Reason: fixed CODE markup tags
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add an existing linux on a newly added disk to grub ? glenn69 Linux - Newbie 1 10-07-2004 09:16 PM
syntax for grub.conf to add win98 to bootloader menu 7689mich Linux - Newbie 3 08-26-2004 12:13 AM
Howto: Existing Win98 + Linux, dual boot using GRUB TheSwine Linux - Newbie 3 01-03-2004 10:06 AM
Why cannot i boot win98 with it selected in lilo menu whepin Linux - Newbie 9 12-20-2001 10:01 PM
Installing Win98 on slave drive to pre-existing linux install on primary eliszka Linux - Software 8 11-07-2001 10:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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