🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.msdos
Article #564

Re: using dos diskettes on a sun(unix)

#564
From: Gene Saunders
Date: Sun, 16 Jun 1991 07:43
38 lines
2386 bytes
In article <16509@life.ai.mit.edu> stokes@churchy.gnu.ai.mit.edu (Perry Stokes) writes:
>In article <MATELGAR.91Jun14131800@dante.nmsu.edu> matelgar@nmsu.edu (Marek Telgarsky) writes:
>>
>>	I would like to be able manipulate files on a DOS diskette
>>while sitting at a SUN4. There is incompatibility with the file
>>allocator that unix uses with the one that dos does. Does anyone have
>>that type of a program, know of a site of where to find one, or has enough
>>information to program one (in C)? It is possible to read the blocks
>>on a dos diskette on a sun4, but it is straight reading and no
>>interpretation by the system. Hence, there is no way to seperate files
>>or to see whether there are different files. Any help would be
>>appreciated.
>
>Have you looked at mtools?
>
>It's a set of programs for reading/writing/creating MS DOS filesystems
>on the 3.5" disk drive on a sun4.

I tried emailing directly to stokes@churchy.gnu.ai.mit.edu, but that bouunced,
hence the post to the net.  

SunOS (at least the current SunOS 4.1.1-B revision - I think it started
in SunOS 4.1) includes support for PC-formatted floppies.  Run a man
page on "pcfs" (PC filesystem) and you'll see what you're after.
Basically, you mount the floppy disc onto Unix:

	# mount -t pcfs /dev/fd0 /pcfs

and then you can "cp", "mv", etc files from Unix onto that floppy.
Unix filenames are mapped into the DOS 8+3 format (longfilename.wk3
becomes longfile.wk3, for example).  I use this all the time when
moving stuff from PCs onto my SPARCstation1+ at work .. and mtools is
no longer needed.

--
Gene Saunders	 | gene.saunders@West.Sun.COM | Save a tree; use AnswerBook.
Sun Microsystems | ..!uunet!sun!gsaunders     | 
I'm the one your mother warned you about: views stated herein are my own.
Technical Details
Message-ID: <1804@west.West.Sun.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!west!gesundheit.West.Sun.COM!saunders
References: <MATELGAR.91Jun14131800@dante.nmsu.edu> <16509@life.ai.mit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!west!gesundheit.West.Sun.COM!saunders
From: saunders@gesundheit.West.Sun.COM (Gene Saunders)
Newsgroups: comp.unix.msdos
Subject: Re: using dos diskettes on a sun(unix)
Summary: SunOS includes support for PC floppies
Keywords: pcfs, SunOS, MS-DOS, floppy
Message-ID: <1804@west.West.Sun.COM>
Date: 16 Jun 91 07:43:45 GMT
References: <MATELGAR.91Jun14131800@dante.nmsu.edu> <16509@life.ai.mit.edu>
Sender: news@west.West.Sun.COM
Organization: Sun Microsystems, Inc.
Lines: 38