kernfs.xml 745 B

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
  3. <sect1 id="ch-system-kernfs">
  4. <title>Mounting Virtual Kernel File Systems</title>
  5. <?dbhtml filename="kernfs.html"?>
  6. <para>Create the dirs:</para>
  7. <screen><userinput>mkdir -p $LFS/{proc,sys}</userinput></screen>
  8. <para>Now mount the file systems:</para>
  9. <screen><userinput>mount -t proc proc $LFS/proc
  10. mount -t sysfs sysfs $LFS/sys</userinput></screen>
  11. <para>Do some <quote>fake mounts</quote>:</para>
  12. <screen><userinput>mount -f -t ramfs ramfs $LFS/dev
  13. mount -f -t tmpfs tmpfs $LFS/dev/shm
  14. mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts</userinput></screen>
  15. </sect1>