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