[comp.unix.sysv386] DOS under UNIX

mark@diasonx.UUCP (Mark Quattrocchi) (01/16/91)

I'm sure this question has been hashed over many times before here, but since
I'm new to the group I get to bug you all just one more time asking my silly
question.
 
I want UNIX. I also want to be able to run DOS programs under UNIX. I have used
the Miroport UNIX with DOS Merge but when running games or other programs that
like to use interrupts/timers/etc., the entire box would just hang. Rebooting
UNIX is no fun since it takes a year to fsck.
 
So to the question...
 
Is there a version of UNIX or combination of UNIX and a DOS Merge program that
really works for all DOS programs?
 
FYI... I currently run MKS (UNIX like), and can bounce back and forth running 
whatever I want, except for multiple processes :-)

Thanks
Mark Quattrocchi, {3comvax|cygnet}!diasonx!mark, mark@diasonx

larry@nstar.rn.com (Larry Snyder) (01/16/91)

mark@diasonx.UUCP (Mark Quattrocchi) writes:

>Is there a version of UNIX or combination of UNIX and a DOS Merge program that
>really works for all DOS programs?

We have Interactive Unix (release 2.1) with VPIX (release 1.2 (I think)) and
just about every DOS package I've tried runs with this combination -

-- 
   Larry Snyder, NSTAR Public Access Unix 219-289-0282 (HST/PEP/V.32/v.42bis)
                        regional UUCP mapping coordinator 
  {larry@nstar.rn.com, ..!uunet!nstar!larry, larry%nstar@iuvax.cs.indiana.edu}

dvb@emisle.uucp (David Van Beveren) (01/17/91)

In article <1903@diasonx.UUCP> mark@diasonx.UUCP (Mark Quattrocchi) writes:
>I'm sure this question has been hashed over many times before here, but since
>I'm new to the group I get to bug you all just one more time asking my silly
>question.
> 
>I want UNIX. I also want to be able to run DOS programs under UNIX. I have used
>the Miroport UNIX with DOS Merge but when running games or other programs that
>like to use interrupts/timers/etc., the entire box would just hang. Rebooting
>UNIX is no fun since it takes a year to fsck.
.
.
.
VPIX and Interactive Unix seem to work for me.

I have a related question. My primary HD has three partitions. Two are the DOS
primary and secondary ones, 32MB each, and the third is a 140MB Unix partition.
How can I get at the dos partitions from unix. I know this is possible, since
I once used a system in that configuration, and it was set up before my eyes
by an ISC salesman. I want to access the files from unix, not VPIX.

I tried dossette, and it tells me (when I say c:)
	'unable to open device /dev/rdsk/0p0'

Accessing the dos hard disk from within unix has to do with the /etc/partitions
file, as well as /etc/fstab, but I cannot find docs as to how to modify the
files. Help is appreciated.

PS Hard drive is Conner 3404 (3402?) 200MB IDE jobber. Works great, ammost
   silent and tiny (3.5" half height)

dvb

David Van Beveren                           INTERNET: emisle!dvb@ism.isc.com
EIS ltd. Professional Software Services     UUCP:   ..uunet!emisle!dvb
voice: (818) 587-1247

fangchin@portia.Stanford.EDU (Chin Fang) (01/18/91)

In article <1991Jan16.214119.1110@emisle.uucp> emisle!dvb@ism.isc.com (David Van Beveren) writes:
>In article <1903@diasonx.UUCP> mark@diasonx.UUCP (Mark Quattrocchi) writes:
>>I'm sure this question has been hashed over many times before here, but since
>>I'm new to the group I get to bug you all just one more time asking my silly
>>question.
>> 
>>I want UNIX. I also want to be able to run DOS programs under UNIX. I have used
>>the Miroport UNIX with DOS Merge but when running games or other programs that
>>like to use interrupts/timers/etc., the entire box would just hang. Rebooting
>>UNIX is no fun since it takes a year to fsck.
>.
>.
>.
>VPIX and Interactive Unix seem to work for me.
>
>I have a related question. My primary HD has three partitions. Two are the DOS
>primary and secondary ones, 32MB each, and the third is a 140MB Unix partition.
>How can I get at the dos partitions from unix. I know this is possible, since
>I once used a system in that configuration, and it was set up before my eyes
>by an ISC salesman. I want to access the files from unix, not VPIX.
>
>I tried dossette, and it tells me (when I say c:)
>	'unable to open device /dev/rdsk/0p0'
>
 
Try Emmet Gary's mtools v2.0, available for annon ftp at 
 
cerl.cecer.army.mil (129.229.1.10ll.                 

I believe this collection of tools contains everything both of you are looking
for.

Regards,
 
Chin Fang
Mechanical Engineering Department
Stanford University
fangchin@portia.stanford.edu

ps.
>PS Hard drive is Conner 3404 (3402?) 200MB IDE jobber. Works great, ammost
>   silent and tiny (3.5" half height)
>
Agreed. (from experience with eight such drives so far)

jim@crom2.uucp (James P. H. Fuller) (01/19/91)

dvb@emisle.uucp (David Van Beveren) writes:

>I have a related question. My primary HD has three partitions. Two are the DOS
>primary and secondary ones, 32MB each, and the third is a 140MB Unix partition.
>How can I get at the dos partitions from unix. I know this is possible, since
>I once used a system in that configuration, and it was set up before my eyes
>by an ISC salesman. I want to access the files from unix, not VPIX.

>I tried dossette, and it tells me (when I say c:)
>	'unable to open device /dev/rdsk/0p0'

>Accessing the dos hard disk from within unix has to do with the /etc/partitions
>file, as well as /etc/fstab, but I cannot find docs as to how to modify the
>files. Help is appreciated.

>David Van Beveren                           INTERNET: emisle!dvb@ism.isc.com
>EIS ltd. Professional Software Services     UUCP:   ..uunet!emisle!dvb
>voice: (818) 587-1247

   No doubt six other people will tell you this because it's not very deep,
but here's my $.02 worth.  An old Unix hand would say RTFM but since I'm a
relative beginner I'll even tell you *where* in the FM to R!  It's in ISC 
Sys.Vr3.2 Operating System Guide (the very first of your big fat books) in the
Ver.2.2 release notes, p.41 appendix c: USING DOS FIXED DISK PARTITIONS.
The thing to do is to mount those DOS partitions as part of your Unix file
system.  Extended DOS partitions are mountable just like the primary one, but
only if the primary DOS partition is first in the fdisk table (i.e. was
installed first.

   To mount a couple of DOS partitions on your Unix root directory, do this
(with the primary and extended DOS partitions already in place):
  
   1) log in as root

   2) in the root directory (/) do
   
         mkdir /dos1 /dos2

      This gives you a couple of mount points, just as the /mnt directory
      is a mount point for your floppies.

   3) enter

         echo /dev/dsk/0p1 /dos1 DOS >> /etc/fstab
         echo /dev/dsk/0p5 /dos2 DOS >> /etc/fstab

      or edit fstab directly with your editor, however you choose just get
      the stuff between "echo" and ">>" into fstab somehow.  You can have up
      to 11 ext-DOS partitions, named /dev/dsk/0p5 through /dev/dsk/0p15.

Then power down and reboot -- your DOS partitions should be mounted automatic-
ally when the boot sequence calls mountall.

   The outcome of the above is that everything on DOS partition #1 is visible
to unix as subdirectories under /dos1 and everything on partition #2 is avail-
able under /dos2.  You can copy back and forth using the ordinary Unix utili-
ties and if you run VP/ix do the same with DOS utilities (except of course
you'll be locked out of Unix directories which have names that don't conform to
DOS's 88888888.333 filename requirements.)  You can operate on DOS filesystem
data using Unix programs and vice versa, and nothing gets messed up.  For
instance you never need bother with wretched "more" or "pg" again, if you want
to look at text files in your Unix file system you can use LIST.EXE, the best
file browser Crom ever created. (If the file you want to browse happens to
be hidden on the wrong side of a weird.long.subdirectory.name just cp it
up to /tmp and LIST it there.)  

rbraun@spdcc.COM (Rich Braun) (01/19/91)

larry@nstar.rn.com (Larry Snyder) writes:
>We have Interactive Unix (release 2.1) with VPIX (release 1.2 (I think)) and
>just about every DOS package I've tried runs with this combination -

Try running Netware or some other DOS network product.  Does Interactive
support LAN cards under its VP/ix?  SCO does not.  Perhaps ISC does?

-rich

rbraun@spdcc.COM (Rich Braun) (01/19/91)

jim@crom2.uucp (James P. H. Fuller) writes:
>>I have a related question. My primary HD has three partitions...
>>How can I get at the dos partitions from unix.

A followup says:
>Extended DOS partitions are mountable just like the primary one, but
>only if the primary DOS partition is first in the fdisk table (i.e. was
>installed first.

Is this also true of SCO Unix?  I installed my DOS partition before I
brought up my Unix partition, but it's listed as partition number 4.  An
extended DOS partition is number 3, and Unix is listed as number 1.
Attempts to mount the extended partition fail.

Do I merely have to change the order of my partition table?  Is there
any way to do that without zapping the hard disk?

-rich