LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-08-2013, 03:12 PM   #1
Ormu
Member
 
Registered: Jun 2011
Posts: 92

Rep: Reputation: 15
Windows 98 acts weirdly when booted from GRUB


I installed Debian on an old computer which already had Windows 98 installed. Windows and its original bootloader is on /dev/sda, Debian on /dev/sdb and GRUB on the MBR of /dev/sdb. I also created a FAT32 partition on /dev/sdb to get some extra space to be used in Windows.

However, when Windows 98 is booted via GRUB, it doesn't see the new partition or the CD drives. It also warns about possible virus on the MBR (:D). If I change the BIOS boot order so that it boots the Windows disk directly everything is fine.

Is there a way (more convenient than messing with the BIOS boot menus) to solve this problem? Should I edit some GRUB settings?

My partition scheme:

/dev/sda
===============================
MBR: Windows/DOS bootloader
/dev/sda1: 10GB, FAT32

/dev/sdb
===============================
MBR: GRUB
/dev/sdb1: 250MB, ext2, /boot
/dev/sdb2: 120GB, ext4, /
/dev/sda3: ~38GB, FAT32
/dev/sda4: 1.8GB, swap


Computer specs:

-Compaq motherboard
-AMD K7 Athlon CPU, 500MHz
-128MB RAM
-3dfx Voodoo3 GPU
-HDDs as above
-2x CD drives
-Floppy drive
 
Old 01-08-2013, 03:42 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Grub 0.97 or Grub 2? The old grub could map the drives; if you look at some old threads... Grub 2, I have no idea, it's a PITA. Try google "grub map drives windows" the first entry is http://blog.firetree.net/2005/08/26/...ows-with-grub/

Last edited by mostlyharmless; 01-08-2013 at 03:44 PM.
 
Old 01-09-2013, 03:39 AM   #3
Ormu
Member
 
Registered: Jun 2011
Posts: 92

Original Poster
Rep: Reputation: 15
It's GRUB2 (although it says "1.98xyz..." in the boot menu). The config file that apparently contains the Windows entry is /etc/grub.d/30_otheros and it looks like this:

Code:
#!/bin/sh
exec tail -n +3 $0

#<comment>

menuentry "Windows 95/98/Me" {
set root=(hd0,msdos1)
search --no-floppy -fs-uuid --set 157e-1300
drivemap -s (hd0) $root
chainloader +1
}
 
Old 01-09-2013, 12:20 PM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Well, as I said, I haven't played with grub 2 much. I'd probably backup the MBR on sda and install grub on sda...
Is it Win 98 or the BIOS or another program complaining about a virus? I wasn't aware that Win 98 had a built in virus checker. If it does it is almost certainly obsolete, as are any BIOS virus scanners, so I'd probably disable those.
 
Old 01-09-2013, 02:25 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
You might take a look at the link below. This person resolved the mapping (post number 2). You might try that. I would make a backup of your windows 98 menuentry in a text file somewhere in case it fails:

http://forums.justlinux.com/showthre...mapping-drives

There is some additional useful information further down in the post if you are interested.
The number in the 'search' line of your entry after 'set' doesn't look right. It is usually a uuid number which you should be able to get by running the blkid command in Linux for your windows 98 partition.
 
Old 01-20-2013, 10:32 AM   #6
Ormu
Member
 
Registered: Jun 2011
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mostlyharmless View Post
Well, as I said, I haven't played with grub 2 much. I'd probably backup the MBR on sda and install grub on sda...
Is it Win 98 or the BIOS or another program complaining about a virus? I wasn't aware that Win 98 had a built in virus checker. If it does it is almost certainly obsolete, as are any BIOS virus scanners, so I'd probably disable those.
Installing GRUB to /dev/sda is not an option, I wan't to keep the Windows disk untouched.

The virus warning seems to be a feature of Win 98. Did boot sector viruses exist during Windows 98 era? Such a check could actually be useful now that there are MBR-based rootkits in the wild (TDL-4 for example), although most rootkit makers would probably try to disable it right away.



Quote:
Originally Posted by yancek
You might take a look at the link below. This person resolved the mapping (post number 2). You might try that. I would make a backup of your windows 98 menuentry in a text file somewhere in case it fails:

http://forums.justlinux.com/showthre...mapping-drives

There is some additional useful information further down in the post if you are interested.
The number in the 'search' line of your entry after 'set' doesn't look right. It is usually a uuid number which you should be able to get by running the blkid command in Linux for your windows 98 partition.
Thanks, I'll try that out.
 
Old 01-20-2013, 11:28 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
The virus warning seems to be a feature of Win 98. Did boot sector viruses exist during Windows 98 era?
ooohhhh boy did they exist

transferred from 5 in floppy to 5 in floppy and "mac" disk to "mac" disk ( 3.5 hard"floppy" )
 
Old 01-21-2013, 09:48 PM   #8
m1rr0rm3
LQ Newbie
 
Registered: Jan 2013
Location: Planet Earth
Distribution: RHEL v7.6
Posts: 28

Rep: Reputation: Disabled
Windows 98/Linux

Come on just use Linux
 
Old 01-22-2013, 11:24 AM   #9
Ormu
Member
 
Registered: Jun 2011
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by m1rr0rm3 View Post
Come on just use Linux

No, I need Windows 98 as the primary use of that computer is to run old software such as legacy phone service tools that don't work properly on modern OSes. I installed Linux just for fun.


Ok, removing the search line results in "invalid signature" error when trying to boot Windows. More tests next weekend...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB Error 2 + a weirdly uncooperative BIOS = confusion nsreporter Linux - Newbie 3 01-18-2010 04:09 PM
Avant Windows Navigator acting weirdly - graphical glitches... Adamantus Linux - Desktop 0 02-19-2009 01:49 AM
Anyone booted OpenBSD natively from Grub? Randux *BSD 4 08-28-2007 02:09 AM
Getting GRUB to Load Last Booted bjmurph Linux - Software 2 10-25-2004 09:49 PM
ML 9.2 acts like windows oldator1940 Mandriva 4 11-21-2003 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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