mounting.html
来自「lfs3.1 从源代码构建linux。html版本。」· HTML 代码 · 共 206 行
HTML
206 行
<HTML><HEAD><TITLE>Mounting the new partition</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.63"><LINKREL="HOME"TITLE="Linux From Scratch"HREF="../index.html"><LINKREL="UP"TITLE="Preparing a new partition"HREF="../chapter04/chapter04.html"><LINKREL="PREVIOUS"TITLE="Creating a file system on the new partition"HREF="../chapter04/creatingfs.html"><LINKREL="NEXT"TITLE="Creating directories"HREF="../chapter04/creatingdirs.html"></HEAD><BODYCLASS="sect1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Linux From Scratch: Version 3.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="../chapter04/creatingfs.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 4. Preparing a new partition</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="../chapter04/creatingdirs.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="sect1"><H1CLASS="sect1"><ANAME="ch04-mounting">4.4. Mounting the new partition</A></H1><P>Now that we have created a file system, it is ready for use. All we haveto do to be able to access the partition (as in reading data from and writing data to) is mount it. If it is mounted under /mnt/lfs, this partition can be accessed by cd'ing to the /mnt/lfs directory. This book will assume that the partition was mounted under /mnt/lfs. It doesn't matter which directory is chosen, just make sure you remember what you chose.</P><P>Create the /mnt/lfs directory by running:</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen"><TTCLASS="userinput"><B>mkdir -p /mnt/lfs</B></TT></PRE></FONT></TD></TR></TABLE></P><P>Now mount the LFS partition by running:</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen"><TTCLASS="userinput"><B>mount /dev/xxx /mnt/lfs</B></TT></PRE></FONT></TD></TR></TABLE></P><P>Replace <SPANCLASS="QUOTE">"xxx"</SPAN> by the partition's designation (like hda11).</P><P>This directory (/mnt/lfs) is the $LFS variable you have read about back in chapter 2. If you were planning to make use of the $LFS environment variable, <TTCLASS="userinput"><B>export LFS=/mnt/lfs</B></TT> has to be executed now.</P></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="../chapter04/creatingfs.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../index.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="../chapter04/creatingdirs.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Creating a file system on the new partition</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../chapter04/chapter04.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Creating directories</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?