77 lines
4.4 KiB
HTML
77 lines
4.4 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>2.3.5 Creating the filesystems</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<meta name="description" value="2.3.5 Creating the filesystems">
|
|
<meta name="keywords" value="gs">
|
|
<meta name="resource-type" value="document">
|
|
<meta name="distribution" value="global">
|
|
<P>
|
|
<BR> <HR><A NAME=tex2html2652 HREF="node76.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html2650 HREF="node70.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html2644 HREF="node74.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html2654 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html2655 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
|
<B> Next:</B> <A NAME=tex2html2653 HREF="node76.html">2.3.6 Installing the software</A>
|
|
<B>Up:</B> <A NAME=tex2html2651 HREF="node70.html">2.3 Installing the Linux </A>
|
|
<B> Previous:</B> <A NAME=tex2html2645 HREF="node74.html">2.3.4 Creating the swap </A>
|
|
<BR> <HR> <P>
|
|
<H2><A NAME=SECTION00435000000000000000>2.3.5 Creating the filesystems</A></H2>
|
|
<P>
|
|
<A NAME=secinstalllinuxmkfs> </A>
|
|
<A NAME=secinstalllinuxmke2fs> </A>
|
|
<P>
|
|
<A NAME=1376> </A>
|
|
<A NAME=1402> </A>
|
|
<A NAME=1403> </A>
|
|
<P>
|
|
Before you can use your Linux partitions to store files, you must create
|
|
<b>filesystems</b> on them. Creating a filesystem is analogous to formatting
|
|
a partition under MS-DOS or other operating systems. We discussed
|
|
filesystems briefly in Section <A HREF="node68.html#secinstalllinuxreqs">2.2.3</A>.
|
|
<P>
|
|
There are several types of filesystems available for Linux. Each filesystem
|
|
type has its own format and set of characteristics (such as filename
|
|
length, maximum file size, and so on). Linux also supports several
|
|
``third-party'' filesystem types such as the MS-DOS filesystem.
|
|
<P>
|
|
The most commonly used filesystem type is the <b>Second Extended
|
|
Filesystem</b>, or <em>ext2fs</em>. The <em>ext2fs</em> is one of the most
|
|
efficient and flexible filesystems; it allows filenames up to 256 characters
|
|
and filesystem sizes of up to 4 terabytes. In Chapter <A HREF="node155.html#chapsysadm">4</A>,
|
|
we'll discuss the various filesystem types available for Linux. Initially,
|
|
however, we suggest that you use the <em>ext2fs</em> filesystem.
|
|
<P>
|
|
If you are installing the Slackware distribution, filesystems are
|
|
created automatically for you by the installation procedure
|
|
described in the next section. If you wish to create your filesystems
|
|
by hand, however, follow the procedure described here.
|
|
<P>
|
|
To create an <em>ext2fs</em> filesystem, use the command
|
|
<P><TT> mke2fs -c <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img62.gif"> <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img63.gif"> <P></TT>
|
|
where <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img64.gif"> is the name of the partition, and
|
|
<IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img65.gif"> is the size of the partition in blocks. For example, to
|
|
create a 82080-block filesystem on <tt>/dev/hda2</tt>, use the command
|
|
<P><TT> # <em>mke2fs --c /dev/hda2 82080</em>
|
|
<P></TT>
|
|
<P>
|
|
If you're using multiple filesystems for Linux, you'll need to use the
|
|
appropriate <tt>mke2fs</tt> command for each filesystem.
|
|
<P>
|
|
If you have encountered any problems at this point, see
|
|
Section <A HREF="node81.html#secinstallprobs">2.5</A> at the end of this chapter.
|
|
<P>
|
|
<A NAME=1399> </A>
|
|
<A NAME=1404> </A>
|
|
<A NAME=1405> </A>
|
|
<P>
|
|
<BR> <HR><A NAME=tex2html2652 HREF="node76.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html2650 HREF="node70.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html2644 HREF="node74.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html2654 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html2655 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
|
<B> Next:</B> <A NAME=tex2html2653 HREF="node76.html">2.3.6 Installing the software</A>
|
|
<B>Up:</B> <A NAME=tex2html2651 HREF="node70.html">2.3 Installing the Linux </A>
|
|
<B> Previous:</B> <A NAME=tex2html2645 HREF="node74.html">2.3.4 Creating the swap </A>
|
|
<BR> <HR> <P>
|
|
<BR> <HR>
|
|
<P><ADDRESS>
|
|
<I>Matt Welsh <BR>
|
|
mdw@sunsite.unc.edu</I>
|
|
</ADDRESS>
|
|
</BODY>
|