applied seth's mtab changes

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2415 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Gerard Beekmans 2003-02-03 23:01:33 +00:00
parent 2b114b251e
commit 6f531d7b8c
3 changed files with 17 additions and 17 deletions

View File

@ -55,6 +55,9 @@
</itemizedlist> </itemizedlist>
</para></listitem> </para></listitem>
<listitem><para>February 3rd, 2003 [sklein]: Chapter 06: Changed
<filename>/etc/mtab</filename> from a symlink to a file.</para></listitem>
<listitem><para>January 29th, 2003 [gerard]: Chapter 06 - GCC: Changed the <listitem><para>January 29th, 2003 [gerard]: Chapter 06 - GCC: Changed the
install target to install-no-fixedincludes.</para></listitem> install target to install-no-fixedincludes.</para></listitem>

View File

@ -1,25 +1,22 @@
<sect1 id="ch06-mtablink"> <sect1 id="ch06-mtablink">
<title>Creating the mtab symlink</title> <title>Creating the mtab file</title>
<?dbhtml filename="mtablink.html" dir="chapter06"?> <?dbhtml filename="mtablink.html" dir="chapter06"?>
<para>The next thing to do is to create a symlink pointing from <para>The next thing to do is to create the <filename>/etc/mtab</filename> file.
<filename>/etc/mtab</filename> to <filename>/proc/mounts</filename>.
This is done using the following command:</para> This is done using the following command:</para>
<para><screen><userinput>ln -sf /proc/mounts /etc/mtab</userinput></screen></para> <para><screen><userinput>touch /etc/mtab</userinput></screen></para>
<para>Creating this symlink avoids problems which can occur if <para>As of LFS-Bootscripts 1.11 this file is handled correctly
<filename class="directory">/</filename> is mounted read-only and the so there are no errors even when booting after a crash.</para>
information in <filename>/etc/mtab</filename> is stale (i.e. out of date).
By creating the symlink to <filename>/proc/mounts</filename>, we ensure that
the information on currently mounted devices is always up-to-date.</para>
<para>Note that using this symlink requires that you have support for the <para>Note that this requires
proc filesystem compiled into your kernel. This support is included by support for the proc filesystem to be compiled into the kernel.
default, and should not be removed unless you <emphasis>really</emphasis> This support is included by default.
know what you are doing, as some more things besides the Don't remove it
<filename>/etc/mtab</filename> symlink depend on proc being present. unless you <emphasis>really</emphasis> know what you are doing,
In short, make sure you have proc filesystem support in your kernel.</para> as other important things also depend on it.
In short, make sure proc filesystem support is enabled in the kernel.</para>
</sect1> </sect1>

View File

@ -4,8 +4,8 @@
<!ENTITY book SYSTEM "book/book.xml"> <!ENTITY book SYSTEM "book/book.xml">
<!ENTITY version "20030129"> <!ENTITY version "20030203">
<!ENTITY releasedate "January 29th, 2003"> <!ENTITY releasedate "February 3rd, 2003">
<!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org"> <!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
<!ENTITY http-root "http://ftp.linuxfromscratch.org"> <!ENTITY http-root "http://ftp.linuxfromscratch.org">