mtablink.xml 1.2 KB

12345678910111213141516171819202122232425
  1. <sect1 id="ch06-mtablink">
  2. <title>Creating the mtab symlink</title>
  3. <?dbhtml filename="mtablink.html" dir="chapter06"?>
  4. <para>The next thing to do is to create a symlink pointing from
  5. <filename>/etc/mtab</filename> to <filename>/proc/mounts</filename>.
  6. This is done using the following command:</para>
  7. <para><screen><userinput>ln -sf /proc/mounts /etc/mtab</userinput></screen></para>
  8. <para>Creating this symlink avoids problems which can occur if
  9. <filename class="directory">/</filename> is mounted read-only and the
  10. information in <filename>/etc/mtab</filename> is stale (i.e. out of date).
  11. By creating the symlink to <filename>/proc/mounts</filename>, we ensure that
  12. the information on currently mounted devices is always up-to-date.</para>
  13. <para>Note that using this symlink requires that you have support for the
  14. proc filesystem compiled into your kernel. This support is included by
  15. default, and should not be removed unless you <emphasis>really</emphasis>
  16. know what you are doing, as some more things besides the
  17. <filename>/etc/mtab</filename> symlink depend on proc being present.
  18. In short, make sure you have proc filesystem support in your kernel.</para>
  19. </sect1>