Files
oldlinux-files/docs/Install-Guide/install-guide-2.2.2/node205.html
2024-02-19 00:23:35 -05:00

83 lines
4.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
<!Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
<HEAD>
<TITLE>5.2 Accessing MS-DOS Files</TITLE>
</HEAD>
<BODY>
<meta name="description" value="5.2 Accessing MS-DOS Files">
<meta name="keywords" value="gs">
<meta name="resource-type" value="document">
<meta name="distribution" value="global">
<P>
<BR> <HR><A NAME=tex2html4390 HREF="node206.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4388 HREF="node197.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4382 HREF="node204.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4392 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4393 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html4391 HREF="node206.html">5.3 Networking with TCP/IP</A>
<B>Up:</B> <A NAME=tex2html4389 HREF="node197.html">5 Advanced Features</A>
<B> Previous:</B> <A NAME=tex2html4383 HREF="node204.html">5.1.6 Running into trouble</A>
<BR> <HR> <P>
<H1><A NAME=SECTION00720000000000000000>5.2 Accessing MS-DOS Files</A></H1>
<P>
<A NAME=secmsdosmount>&#160;</A>
<A NAME=5665>&#160;</A>
<A NAME=5666>&#160;</A>
If, for some twisted and bizarre reason, you would have need to access
files from MS-DOS, it's quite easily done under Linux.
<P>
<A NAME=5667>&#160;</A>
<A NAME=5697>&#160;</A>
The usual way to access MS-DOS files is to mount an MS-DOS partition or
floppy under Linux, allowing you to access the files directly through the
filesystem. For example, if you have an MS-DOS floppy in
<tt>/dev/fd0</tt>, the command
<P><TT> # <em>mount -t msdos /dev/fd0 /mnt</em>
<P></TT>
will mount it under <tt>/mnt</tt>. See Section <A HREF="node178.html#secfloppy">4.6.2</A> for more
information on mounting floppies.
<P>
You can also mount an MS-DOS partition of your hard drive for access
under Linux. If you have an MS-DOS partition on <tt>/dev/hda1</tt>, the
command
<P><TT> # <em>mount -t msdos /dev/hda1 /mnt</em>
<P></TT>
will mount it. Be sure to <tt>umount</tt> the partition when you're done
using it. You can have your MS-DOS partitions automatically mounted
at boot time if you include entries for them in <tt>/etc/fstab</tt>;
see Section <A HREF="node184.html#secmanagefs">4.8</A> for details. For example, the following
line in <tt>/etc/fstab</tt> will mount an MS-DOS partition on <tt>/dev/hda1</tt>
on the directory <tt>/dos</tt>.
<P><TT> /dev/hda1 /dos msdos defaults
<P></TT>
<P>
<A NAME=5687>&#160;</A>
The <tt>Mtools</tt> software may also be used to access MS-DOS files.
For example, the commands <tt>mcd</tt>, <tt>mdir</tt>, and <tt>mcopy</tt> all
behave as their MS-DOS counterparts. If you installed <tt>Mtools</tt>,
there should be man pages available for these commands.
<P>
<A NAME=5693>&#160;</A>
<A NAME=5694>&#160;</A>
Accessing MS-DOS files is one thing; running MS-DOS programs from
Linux is another. There is an MS-DOS Emulator under development for
Linux; it is widely available, and even distributed with SLS. It can
be retrieved from a number of locations, including the various
Linux FTP sites (see Appendix <A HREF="node235.html#appftp">C</A> for details). The MS-DOS
Emulator is reportedly powerful enough to run a number of applications,
including Wordperfect, from Linux. However, Linux and MS-DOS are vastly
different operating systems. The power of any MS-DOS emulator under
UNIX is somewhat limited.
<P>
<A NAME=5696>&#160;</A>
In addition, work is underway on a Microsoft Windows emulator to run
under X Windows. Watch the newsgroups and FTP sites for more information.
<P>
<BR> <HR><A NAME=tex2html4390 HREF="node206.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4388 HREF="node197.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4382 HREF="node204.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4392 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4393 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html4391 HREF="node206.html">5.3 Networking with TCP/IP</A>
<B>Up:</B> <A NAME=tex2html4389 HREF="node197.html">5 Advanced Features</A>
<B> Previous:</B> <A NAME=tex2html4383 HREF="node204.html">5.1.6 Running into trouble</A>
<BR> <HR> <P>
<BR> <HR>
<P><ADDRESS>
<I>Matt Welsh <BR>
mdw@sunsite.unc.edu</I>
</ADDRESS>
</BODY>