/[gentoo]/xml/htdocs/doc/en/gentoo-x86-install.xml
Gentoo

Diff of /xml/htdocs/doc/en/gentoo-x86-install.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.88 Revision 1.89
809all our partitions for use:</p> 809all our partitions for use:</p>
810 810
811<pre caption="Initializing our partitions (example)"> 811<pre caption="Initializing our partitions (example)">
812# mke2fs -j /dev/hda1 812# mke2fs -j /dev/hda1
813# mkswap /dev/hda2 813# mkswap /dev/hda2
814# mkreiserfs /dev/hda3 814# mkreiserfs /dev/hda3
815</pre> 815</pre>
816 816
817<p>We choose ext3 for our <c>/dev/hda1</c> boot partition because it is a robust journaling 817<p>We choose ext3 for our <c>/dev/hda1</c> boot partition because it is a robust journaling
818filesystem supported by all major boot loaders. We used <c>mkswap</c> for our <c>/dev/hda2 818filesystem supported by all major boot loaders. We used <c>mkswap</c> for our <c>/dev/hda2
819</c> swap partition -- the choice is obvious here. And for our main root filesystem on 819</c> swap partition -- the choice is obvious here. And for our main root filesystem on
820<c>/dev/hda3</c> we choose ReiserFS, since it is a solid journaling filesystem offering excellent 820<c>/dev/hda3</c> we choose ReiserFS, since it is a solid journaling filesystem offering excellent
821performance. Now, go ahead and initialize your partitions. Here are the various commands 821performance. Now, go ahead and initialize your partitions. Here are the various commands
822available to create various filesystem types:</p> 822available to create various filesystem types:</p>
823 823
824 <p>To initialize the swap partition:</p> 824 <p><c>mkswap</c> is the command that is used to initialize swap partitions:</p>
825<pre caption="Initializing Swap"> 825<pre caption="Initializing Swap">
826# <c>mkswap /dev/hda2</c> 826# <c>mkswap /dev/hda2</c>
827</pre> 827</pre>
828<p>You can use the <c>mke2fs</c> command to create ext2 filesystems.</p> 828<p>You can use the <c>mke2fs</c> command to create ext2 filesystems:</p>
829<pre caption="Creating an ext2 Filesystem"> 829<pre caption="Creating an ext2 Filesystem">
830# <i>mke2fs /dev/hda1</i> 830# <i>mke2fs /dev/hda1</i>
831</pre> 831</pre>
832<p>If you would like to use ext3, you can create ext3 filesystems using 832<p>If you would like to use ext3, you can create ext3 filesystems using
833 <c>mke2fs -j</c>.</p> 833 <c>mke2fs -j</c>:</p>
834<pre caption="Creating an ext3 Filesystem"> 834<pre caption="Creating an ext3 Filesystem">
835# <c>mke2fs -j /dev/hda3</c> 835# <c>mke2fs -j /dev/hda3</c>
836</pre> 836</pre>
837 <note>You can find out more about using ext3 under Linux 2.4 at 837 <note>You can find out more about using ext3 under Linux 2.4 at
838 <uri>http://www.zip.com.au/~akpm/linux/ext3/ext3-usage.html</uri>.</note> 838 <uri>http://www.zip.com.au/~akpm/linux/ext3/ext3-usage.html</uri>.</note>
839 <p>To create ReiserFS filesystems, use the <c>mkreiserfs</c> command.</p> 839 <p>To create ReiserFS filesystems, use the <c>mkreiserfs</c> command:</p>
840<p>Use <c>mkreiserfs</c> to create a ReiserFS filesystem</p>
841<pre caption="Creating a ReiserFS Filesystem"> 840<pre caption="Creating a ReiserFS Filesystem">
842# <c>mkreiserfs /dev/hda3</c> 841# <c>mkreiserfs /dev/hda3</c>
843</pre> 842</pre>
844 <p>To create an XFS filesystem, use the <c>mkfs.xfs</c> command.</p> 843 <p>To create an XFS filesystem, use the <c>mkfs.xfs</c> command:</p>
845<pre caption="Creating a XFS Filesystem"> 844<pre caption="Creating a XFS Filesystem">
846# <c>mkfs.xfs /dev/hda3</c> 845# <c>mkfs.xfs /dev/hda3</c>
847</pre> 846</pre>
848 <note>You may want to add a couple of additional flags to the 847 <note>You may want to add a couple of additional flags to the
849 <c>mkfs.xfs</c> command: <c>-d agcount=3 -l size=32m</c>. 848 <c>mkfs.xfs</c> command: <c>-d agcount=3 -l size=32m</c>.
850 The <c>-d agcount=3</c> command will lower the number of allocation groups. 849 The <c>-d agcount=3</c> command will lower the number of allocation groups.
851 XFS will insist on using at least 1 allocation group per 4 GB of your 850 XFS will insist on using at least 1 allocation group per 4 GB of your
852 partition, so, for example, if you have a 20 GB partition you will need 851 partition, so, for example, if you have a 20 GB partition you will need
853 a minimum agcount of 5. The <c>-l size=32m</c> command increases the 852 a minimum agcount of 5. The <c>-l size=32m</c> command increases the
854 journal size to 32 Mb, increasing performance.</note> 853 journal size to 32 Mb, increasing performance.</note>
855 854
856 <p>To create JFS filesystems, use the <c>mkfs.jfs</c> command.</p> 855 <p>To create JFS filesystems, use the <c>mkfs.jfs</c> command:</p>
857<pre caption="Creating a JFS Filesystem"> 856<pre caption="Creating a JFS Filesystem">
858# <c>mkfs.jfs /dev/hda3</c> 857# <c>mkfs.jfs /dev/hda3</c>
859</pre> 858</pre>
860 </body> 859 </body>
861 </section> 860 </section>
862 </chapter> 861 </chapter>
863 <chapter> 862 <chapter>
864 <title>Mount Partitions</title> 863 <title>Mount Partitions</title>
865 <section> 864 <section>
866 <body> 865 <body>
867 <p>Now, we will activate our newly-initialized swap volume, since we may need the additional virtual memory that it 866 <p>Now, we will activate our newly-initialized swap volume, since we may need the additional virtual memory that it
868 provides later: 867 provides later:
869 </p> 868 </p>
870<pre caption="Activating Swap"> 869<pre caption="Activating Swap">
871# <c>swapon /dev/hda2</c> 870# <c>swapon /dev/hda2</c>

Legend:
Removed from v.1.88  
changed lines
  Added in v.1.89

  ViewVC Help
Powered by ViewVC 1.1.20