LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-27-2005, 07:44 PM   #1
dgermann
Member
 
Registered: Aug 2004
Distribution: Ubuntu 16.04 lts desk; Ubuntu 14.04 server
Posts: 366

Rep: Reputation: 31
Question Win95 install under qemu


Hi--

Hope someone can help me with this. I have tried to install Win95 under qemu and can get only so far.

The key, it seems to me, is that Win95 needs both a CD and a floppy to install.

I have done apt-get install qemu, created the virtual disk, etc.

I got a boot disk image from http://www.bootdisk.com and created a boot disk. Then I did this:
Code:
 # qemu -boot a -fda /dev/fd0 -hda /home/doug/qemu/hd.img
It got as far as to create an R:\ mapping, but it then when I try to switch to drive R:\ says "Not ready reading drive R:." Drives C: and D: are invalid drive specs. Yes, the Win95 CD is in the drive.

I tried to pkunzip the image file, got winb95b.IMA which I renamed to winb95b.img, and then used this code on it--it gets to "booting from floppy" and then hangs:
Code:
$ qemu -boot a -fda /path/to/my/bootdisk.img - hda /home/doug/qemu/hd.img
What I am missing it seems to me is a way to tell it to look to the bootdisk for the boot sequence, and then the CD for what to install. But I have not found an answer to this in any g4l searches.

Is this peculiar just to Win95?

And the big question: How can I get this to install?

Thanks for your help. I rely on you guys a lot. Maybe some day I can give advice to new(er) people, just like you folks!
 
Old 12-29-2005, 04:49 PM   #2
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
Quote:
Originally Posted by dgermann
Drives C: and D: are invalid drive specs. Yes, the Win95 CD is in the drive.
Two things. First, I don't see on the command line where you specified the CD drive. If you don't tell QEMU what file to use for the CD drive, I don't think it will use one at all. Second, did you partition and format the C: drive before trying to access it? If not, that would explain why it isn't a valid drive.
 
Old 12-29-2005, 08:15 PM   #3
dgermann
Member
 
Registered: Aug 2004
Distribution: Ubuntu 16.04 lts desk; Ubuntu 14.04 server
Posts: 366

Original Poster
Rep: Reputation: 31
Question

AdaHacker--

Thanks, you are giving me hope!

So after a few false starts from the hint to specify the cd drive, I did this:
Code:
qemu -boot a -fda /dev/fd0 -cdrom /dev/hda -hda /home/doug/qemu/hd.img
Then when it came to the A:> prompt I typed fdisk, chose large disk support, and let the defaults go for the rest of it. That completed, I typed format C: /s and got a drive formatted.

But I cannot seem to get any further--Can't actually get Win95 to install.

Restarting the original linux command just gives me an a:/ prompt and I can switch to a c: prompt. Perhaps I need to have some sort of cdrom support.

So what's next?

Thanks! I can almost taste getting this thing installed!
 
Old 12-30-2005, 05:01 PM   #4
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
Quote:
Restarting the original linux command just gives me an a:/ prompt and I can switch to a c: prompt. Perhaps I need to have some sort of cdrom support.
Well, now that you've copied the system files to the formatted drive, it's no longer to use A: as the boot drive, so you can change that option to '-boot c'.

I don't know exactly what boot disk you're using, but there's a chance that you'll need to install some generic ATAPI CD-ROM drivers before DOS will be able to see the CD drive. I know I've had to do that in the past.
 
Old 12-31-2005, 05:20 PM   #5
dgermann
Member
 
Registered: Aug 2004
Distribution: Ubuntu 16.04 lts desk; Ubuntu 14.04 server
Posts: 366

Original Poster
Rep: Reputation: 31
Question

AdaHacker--

OK, I changed the command line to:
Code:
# qemu -boot c -cdrom /dev/hda -hda /home/doug/qemu/hd.img
And got the same thing--except it flashed the Win95 splash screen for a split second. But it does not show any other drives, and indeed the A: drive is not a valid filespec either. I tried all drives from d: through z: one at a time.

So the question of the hour seems to be, where do I find the CD driver, and then how do I get it to where the virtual machine can see it? Copy it to the floppy and boot one more time from the floppy?

Close, so close....

Thanks, AdaHacker! And a Happy new year!
 
Old 01-01-2006, 08:02 AM   #6
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
OK, I just noticed this - you're giving the wrong device for the CD drive. Your CD drive is almost certainly not /dev/hda, unless you have a really bizarre hardware setup. More likely it's /dev/hdc or /dev/hdd.

As for the A: drive no longer being valid, that's because you didn't specify it on the command line this time. Try something like this:
Code:
# qemu -boot c -fda /dev/fd0 -cdrom /dev/hda -hda /home/doug/qemu/hd.img
At this point, you should at least be able to boot from the C: drive. I suggest you copy all the files from your boot disk over to C: and set yourself up a bare-bones DOS environment, just to make things a little easier.

Concerning CD-ROM drivers, Google is your friend. A quick search for "DOS generic ATAPI CD-ROM drivers" turned up this file, which may meet your needs. Note that I haven't tried this, so I can't vouche for its quality. The page I found that on also has lots of other drivers and information.
 
Old 01-02-2006, 08:31 PM   #7
dgermann
Member
 
Registered: Aug 2004
Distribution: Ubuntu 16.04 lts desk; Ubuntu 14.04 server
Posts: 366

Original Poster
Rep: Reputation: 31
Question

AdaHacker--

OK, I used the code you provided, booted up both floppy and the new C:\ drive, and copied the floppy contents over to the c:\ drive.

On the floppy I had:
Code:
root@doug2:/home/doug/qemu # ls  /media/floppy0
attrib.exe    chkdsk.exe    edit.com     io.sys      regedit.exe   xcopy.exe
autoexec.bat  command.com   extract.exe  label.exe   scandisk.exe
cd1.sys       config.sys    fdisk.exe    mem.exe     scandisk.ini
cd2.sys       debug.exe     find.exe     move.exe    sys.com
cd3.sys       deltree.exe   format.com   mscdex.exe  uninstal.exe
cd4.sys       drvspace.bin  himem.sys    msdos.sys   xcopy32.exe
As to the cd drive, when under gnome I go to system|administration|disks, this is what it tells me it is, unusual as it seems. I have tried running the qemu command with both the /dev/hda and /media/cdrom0 locations, both with the same (non)results.

Is there a command line way to find out where the cdrom actually is? I want to believe you are right, because it seems reasonable.

Is it possible that cdsys stuff is the cd drivers I need? What do I do with them.

Thanks AdaHacker for sticking with me on this. We are making progress!

Thanks to you, that is....
 
Old 01-02-2006, 08:36 PM   #8
dgermann
Member
 
Registered: Aug 2004
Distribution: Ubuntu 16.04 lts desk; Ubuntu 14.04 server
Posts: 366

Original Poster
Rep: Reputation: 31
OK, found a sloppy way to do what I asked: I put a cd in the cdrom drive and typed mount. What I got was:

Code:
/dev/hda on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,user=doug)
So it seems that /dev/hda is right, as is /media/cdrom0.

So it tells us, it seems to me, that we have to look elsewhere other than the possibility of the cdrom not being specified correctly. Do you see it the same way?

Thanks!
 
Old 01-02-2006, 09:27 PM   #9
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
Quote:
Originally Posted by dgermann
So it seems that /dev/hda is right, as is /media/cdrom0.
Well that's wierd. Not that it makes any difference what the device is as long as you know it's the right one. As for the mount point, qemu doesn't care about that. If all else fails, you could always rip an image of the CD and use that.

From the listing you posted, it looks like you probably already have CD drivers on your boot disk. Check your config.sys and autoexec.bat to see if they're being loaded. If you're booting from the C: drive, make sure you've copied both those files into C:\, otherwise the drivers won't be loaded on boot.
 
Old 01-03-2006, 09:18 PM   #10
dgermann
Member
 
Registered: Aug 2004
Distribution: Ubuntu 16.04 lts desk; Ubuntu 14.04 server
Posts: 366

Original Poster
Rep: Reputation: 31
AdaHacker--

Somehow you got me installed! I "din't change nuthin'!" I restarted qemu using

Code:
# qemu -boot c -fda /dev/fd0 -cdrom /dev/hda -hda /home/doug/qemu/hd.img
and this time the Win95 splash screen stayed on longer, then it reported there was an r:\ drive, and I could read the CDrom. I rechecked, and the config.sys already had the stuff in it as you suggested--must have somehow been added on this boot, although the file still had a 1999 date on it!

So is that the same code I will use to start up qemu from now on? Or should I switch it?

I have a bunch of new questions about what to do with it now that I have it installed, so I will start some new threads with those questions, since they are off topic for this thread.

Thanks AdaHacker for sticking with me and for all your help--you are a life saver!
 
Old 01-04-2006, 06:10 AM   #11
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
I'm glad you were able to get it working.

Quote:
Originally Posted by dgermann
So is that the same code I will use to start up qemu from now on? Or should I switch it?
If it works, stick with it. Strictly speaking, you only need to use the same image file, but if you leave out the fda or cdrom options, you won't have access to that hardware.
 
  


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
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-04-2005 11:25 PM
Redhat Samba with Win95 Hendon Linux - Networking 2 12-14-2004 10:39 AM
Samba works with win95 but not ME blainehilton Linux - Networking 8 07-24-2003 05:48 AM
Win95 and Samba Half_Elf Linux - Networking 19 06-16-2002 10:31 PM
win95 install... philfighter General 9 07-23-2001 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:08 AM.

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