From 5ef3797c41c01e9565b7616a2d97be8a8f94b51f Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Thu, 24 Jan 2002 00:13:05 +0000 Subject: [PATCH] [Bug 183] /etc/mtab --> /proc/mounts symlink added git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1475 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 3 +++ chapter06/chapter06.xml | 1 + chapter06/mtablink.xml | 24 ++++++++++++++++++++++++ index.xml | 1 + 4 files changed, 29 insertions(+) create mode 100644 chapter06/mtablink.xml diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index b9ca99060..fea0a5fd6 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -23,6 +23,9 @@ +January 23rd, 2002 [markh]: Chapter 6: Added the section +Create /etc/mtab symlink. + January 23rd, 2002 [gerard]: Removed the file -C command from the file installation. This package runs this command at the very end of the installation so we don't need to do this anymore. diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index ac8f2742d..3c7601438 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -7,6 +7,7 @@ &c6-bashprofile; &c6-chroot; &c6-changingowner; +&c6-mtablink; &c6-glibc; &c6-makedev; &c6-manpages; diff --git a/chapter06/mtablink.xml b/chapter06/mtablink.xml new file mode 100644 index 000000000..a573bd62b --- /dev/null +++ b/chapter06/mtablink.xml @@ -0,0 +1,24 @@ + +Creating the /etc/mtab symlink + + +The next thing to do is to create a symlink pointing from +/etc/mtab to /proc/mounts. This is done using the following +command: + +ln -s /proc/mounts /etc/mtab + +Creating this symlink avoids problems which can occur if / is +mounted read-only and the information in /etc/mtab is stale (i.e. out of +date). By creating the symlink to /proc/mounts, we ensure that +/etc/mtab will always be up-to-date. + +Note that using this symlink requires that you have /proc +filesystem support compiled into your kernel. This is included by +default and should not be removed unless you really +know what you are doing as many more things than just the /etc/mtab +symlink depend on /proc being present. In summary, make sure you have +/proc filesystem support in your kernel. + + + diff --git a/index.xml b/index.xml index 5f55bb377..e376d884e 100644 --- a/index.xml +++ b/index.xml @@ -197,6 +197,7 @@ +