creatingfs.xml 839 B

12345678910111213141516171819202122232425262728293031
  1. <sect1 id="ch04-creatingfs">
  2. <title>Creating a file system on the new partition</title>
  3. <para>
  4. Once the partition is created, we have to create a new file system on
  5. that partition. If you want to create an ext2 file system, use the mke2fs
  6. command. If you want to create a reiser file system, use the mkreiserfs
  7. command. If you want to create a different kind of file system, use the
  8. appropriate command. Enter the new partition as the only option to the
  9. command and the file system will be created. If your partition is hda2
  10. and you want ext2 you would run:
  11. </para>
  12. <blockquote><literallayout>
  13. <userinput>mke2fs /dev/hda2</userinput>
  14. </literallayout></blockquote>
  15. <para>
  16. If you want reiserfs you would run:
  17. </para>
  18. <blockquote><literallayout>
  19. <userinput>mkreiserfs /dev/hda2</userinput>
  20. </literallayout></blockquote>
  21. </sect1>