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

75 lines
4.0 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>4.6.2 Using floppies as filesystems</TITLE>
</HEAD>
<BODY>
<meta name="description" value="4.6.2 Using floppies as filesystems">
<meta name="keywords" value="gs">
<meta name="resource-type" value="document">
<meta name="distribution" value="global">
<P>
<BR> <HR><A NAME=tex2html4032 HREF="node179.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4030 HREF="node176.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4026 HREF="node177.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4034 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4035 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html4033 HREF="node179.html">4.7 Upgrading and Installing </A>
<B>Up:</B> <A NAME=tex2html4031 HREF="node176.html">4.6 Using Floppies and </A>
<B> Previous:</B> <A NAME=tex2html4027 HREF="node177.html">4.6.1 Using floppies for </A>
<BR> <HR> <P>
<H2><A NAME=SECTION00662000000000000000>4.6.2 Using floppies as filesystems</A></H2>
<A NAME=secfloppy>&#160;</A>
<A NAME=4703>&#160;</A>
<A NAME=4704>&#160;</A>
<A NAME=4734>&#160;</A>
You can create a filesystem on a floppy just as you would on a hard
drive partition. For example,
<P><TT> # <em>mke2fs /dev/fd0 1440</em>
<P></TT>
creates a filesystem on the floppy in <tt>/dev/fd0</tt>. The size of the
filesystem must correspond to the size of the floppy. High-density
3.5&quot; disks are 1.44 megabytes, or 1440 blocks, in size. High-density
5.25&quot; disks are 1200 blocks.
<P>
<A NAME=4735>&#160;</A>
In order to access the floppy, you must <b>mount</b> the filesystem
contained on it. The command
<P><TT> # <em>mount -t ext2 /dev/fd0 /mnt</em>
<P></TT>
will mount the floppy in <tt>/dev/fd0</tt> on the directory <tt>/mnt</tt>.
Now, all of the files on the floppy will appear under <tt>/mnt</tt>
on your drive. The ``<tt>-t ext2</tt>'' specifies an ext2fs filesystem type.
If you created another type of filesystem on the floppy, you'll
need to specify its type to the <tt>mount</tt> command.
<P>
<A NAME=4720>&#160;</A>
The ``mount point'' (the directory where you're mounting the filesystem)
needs to exist when you use the <tt>mount</tt> command. If it doesn't exist,
simply create it with <tt>mkdir</tt>.
<P>
See Section <A HREF="node184.html#secmanagefs">4.8</A> for more information on filesystems, mounting,
and mount points.
<P>
<A NAME=4724>&#160;</A>
<A NAME=4736>&#160;</A>
<IMG ALIGN=BOTTOM ALT="(WARN)" SRC="bdt.gif">Note that any I/O to the floppy is buffered just as hard
disk I/O is.
If you change data on the floppy, you may not see the drive light come
on until the kernel flushes its I/O buffers. It's important that you
not remove a floppy before you unmount it; this can be done with the
command
<P><TT> # <em>umount /dev/fd0</em>
<P></TT>
Do not simply switch floppies as you would on an MS-DOS system; whenever
you change floppies, <tt>umount</tt> the first one and <tt>mount</tt> the
next.
<P>
<BR> <HR><A NAME=tex2html4032 HREF="node179.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4030 HREF="node176.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4026 HREF="node177.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4034 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4035 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html4033 HREF="node179.html">4.7 Upgrading and Installing </A>
<B>Up:</B> <A NAME=tex2html4031 HREF="node176.html">4.6 Using Floppies and </A>
<B> Previous:</B> <A NAME=tex2html4027 HREF="node177.html">4.6.1 Using floppies for </A>
<BR> <HR> <P>
<BR> <HR>
<P><ADDRESS>
<I>Matt Welsh <BR>
mdw@sunsite.unc.edu</I>
</ADDRESS>
</BODY>