📄 creatingfs.html
字号:
<HTML><HEAD><TITLE>Creating a file system on 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 new partition"HREF="../chapter04/creatingpart.html"><LINKREL="NEXT"TITLE="Mounting the new partition"HREF="../chapter04/mounting.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/creatingpart.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/mounting.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="sect1"><H1CLASS="sect1"><ANAME="ch04-creatingfs">4.3. Creating a file system on the new partition</A></H1><P>Once the partition is created, we have to create a new file system onthat partition. The standard file system used these days is the ext2file system, but the so-called journaling file systems are becomingincreasingly popular too. It's of course up to you to decide which filesystem you want to create, but because we have to assume and work withsomething, we will assume you chose the ext2 file system.</P><P>To create an ext2 file system, use the mke2fs command. The LFS partitionis used as the only option to the command and the file system is created.</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen"><TTCLASS="userinput"><B>mke2fs /dev/xxx</B></TT></PRE></FONT></TD></TR></TABLE></P><P>Replace "xxx" by the partition's designation (like hda11).</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/creatingpart.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../index.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="../chapter04/mounting.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Creating a new partition</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../chapter04/chapter04.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Mounting the new partition</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -