Re: Re: 7r5beta bug report (/etc/mtab)

From: Dave Houghton (
Date: Mon Dec 27 1999 - 02:11:17 CET

On 26 Dec 1999, Michele Andreoli <> wrote:

>On Sat, Dec 25, 1999 at 10:30:13PM +0000, Clive Wright nicely wrote:
>> Running 7r5 with all addons on /dev/hda1 umsdos
>> file /etc/mtab grows an extra line following each shutdown (using
>> shutdown -h)
>Uhm! An old question for me. UMSDOS and RAM system acts differently.
>I will take a look. Thanks.
>How you discovered the bug?!

in /etc/rc.4 after you set the PATH but immediately before you mount the "real" root file system add the following line:-

rm -f /etc/mtab 2>/dev/null

That's it, don't know why we didn't spot that one before !
While we are talking about growing junk, after you remove /etc/mtab in rc.4 how about doing a file search of /tmp for files more than say three days old and remove them because on a cloned system /tmp rapidly becomes full of rubbish.. old chimera pages, temp modules,and loads of other odd bits+pc's. Nice thought but find=mufind=sed/tr script so we would have to add creation date parsing to find...Oh well :^(

Dave g0mxw
muLinux U.K. mirror

To unsubscribe, e-mail:
For additional commands, e-mail:

This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:12 CET