mtablink.xml 1004 B

123456789101112131415161718192021222324
  1. <sect1 id="ch06-mtablink">
  2. <title>Creating the /etc/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. /etc/mtab to /proc/mounts. This is done using the following
  6. command:</para>
  7. <para><screen><userinput>ln -s /proc/mounts /etc/mtab</userinput></screen></para>
  8. <para>Creating this symlink avoids problems which can occur if / is
  9. mounted read-only and the information in /etc/mtab is stale (i.e. out of
  10. date). By creating the symlink to /proc/mounts, we ensure that
  11. /etc/mtab will always be up-to-date.</para>
  12. <para>Note that using this symlink requires that you have /proc
  13. filesystem support compiled into your kernel. This is included by
  14. default and should not be removed unless you <emphasis>really</emphasis>
  15. know what you are doing as many more things than just the /etc/mtab
  16. symlink depend on /proc being present. In summary, make sure you have
  17. /proc filesystem support in your kernel.</para>
  18. </sect1>