📄 495-497.html
字号:
<HTML>
<HEAD>
<TITLE>Using Linux:Managing the Filesystem</TITLE>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!--ISBN=0789716232//-->
<!--TITLE=Using Linux//-->
<!--AUTHOR=William Ball//-->
<!--PUBLISHER=Macmillan Computer Publishing//-->
<!--IMPRINT=Que//-->
<!--CHAPTER=29//-->
<!--PAGES=495-497//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="493-495.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="498-500.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H4 ALIGN="LEFT"><A NAME="Heading6"></A><FONT COLOR="#000077">Using Red Hat’s <I>cabaret</I> Tool
</FONT></H4>
<P>There are times when it is not possible to use Red Hat’s filesystem manager (<TT>fstool</TT>, discussed later in this chapter) under the X Window System—for example, when X doesn’t run because it wasn’t installed, or when X does run but too slowly, such as when you are on the wrong end of a slow Internet link. In these cases, it is useful to implement Red Hat’s <TT>cabaret</TT> program, which runs on any kind of text display (the text-mode console, or a terminal emulator on another computer, for example).</P>
<H4 ALIGN="LEFT"><A NAME="Heading7"></A><FONT COLOR="#000077">Starting <I>cabaret</I>
</FONT></H4>
<P><TT>cabaret</TT> resides in the <TT>/usr/sbin</TT> directory with many of the administration programs (the others are stored in <TT>/sbin</TT>). You start it by typing the following:</P>
<!-- CODE SNIP //-->
<PRE>
..../usr/sbin/cabaret
</PRE>
<!-- END CODE SNIP //-->
<TABLE BORDER="2" BORDERCOLOR="#0000" ALIGN="CENTER">
<TR><TD><FONT SIZE="+1"><B>Filesystem mount points</B></FONT>
<BR>If you mount a filesystem on a directory, this hides anything that was previously there. When you unmount the filesystem, it is again visible.</TABLE>
<P><FONT SIZE="+1"><B>Adding a New Local Filesystem by Using <I>cabaret</I>
</B></FONT></P>
<P>If you want to add a filesystem on an unused part of a hard disk, you must make an empty partition first. Please see Chapter 7, “Working with Hard Drives,” for instructions on this. If the partition already exists, either because it belongs to another operating system, or because you just finished following the instructions in Chapter 7, please continue.
</P>
<P><FONT SIZE="+1"><B><I>Adding a filesystem to an existing partition</I></B></FONT></P>
<DL>
<DD><B>1.</B> Press the Tab key until the Add button is highlighted and then press Enter. (Alternatively, just press F2.)
<DD><B>2.</B> Choose from the provided list the type of the filesystem that you want to add.
<DD><B>3.</B> Select Add (as in step 1).
<DD><B>4.</B> Type in the name of the directory in which you want to mount the filesystem (this directory must already exist; if you need to create it, you can back out of the current procedure by selecting Cancel).
<DD><B>5.</B> In the Device text box, enter the name of the device containing the filesystem (for example, <TT>/dev/fd0</TT> is the first floppy disk). Select Continue.
<DD><B>6.</B> The Options dialog box that appears next allows you to change certain options for this filesystem. The defaults are usually appropriate. Click Done when you are finished.
<DD><B>7.</B> Select Save and confirm that you want to save these changes to the <TT>/etc/fstab</TT> file by selecting Save in the Confirmation dialog box.
</DL>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>SEE ALSO</B><BR>• For additional information on partitioning, formatting, and mounting other filesystems with Red Hat’s <TT>cabaret</TT> command, see page 106.<HR></FONT>
</BLOCKQUOTE>
<P><FONT SIZE="+1"><B>Adding a New Network Filesystem by Using <I>cabaret</I>
</B></FONT></P>
<P>If you want to mount a network filesystem, you must first ensure that you can communicate over the network to the server machine. For more information about this, please see Chapter 27, “Managing Network Connections.” You also need to ensure that the remote machine permits you to mount its shared filesystems. You may need to consult with the administrator of that machine to confirm this.
</P>
<P><FONT SIZE="+1"><B><I>Ensuring that you can communicate with the server</I></B></FONT></P>
<DL>
<DD><B>1.</B> Start the <TT>cabaret</TT> command. Select Add from <TT>cabaret</TT>’s main menu.
<DD><B>2.</B> Select the appropriate filesystem type (<TT>smb</TT> for a Windows share, or <TT>nfs</TT>, for example).
<DD><B>3.</B> For <TT>nfs</TT>, give the name of the server in the Choose Remote System dialog box. Select one from the list of available filesystems provided.
<BR>For <TT>smb</TT>, you must instead give the name of the remote system, the name of the share, and where the filesystem should be mounted on your machine.
<DD><B>4.</B> Select any options you require from the Options dialog box. The defaults are usually appropriate; for <TT>nfs</TT>, however, there is a separate Options dialog box, some of which it is useful to change. Select Done when you are finished.
<DD><B>5.</B> Select Save from the main menu, and then confirm that you want to save these changes to the <TT>/etc/fstab</TT> file by selecting Save in the Confirmation dialog box.
</DL>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>SEE ALSO</B>
<DL>
<DD><B>•</B> For hints on partitioning your system during the installation process, see page 632.
<DD><B>•</B> To add or delete partitions on your hard disks, see page 106.
<DD><B>•</B> For instructions on adding Zip drives, see page 123.
<DD><B>•</B> For more information on networked filesystems, see page 461.
</DL>
<HR></FONT>
</BLOCKQUOTE>
<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="493-495.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="498-500.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -