[Bug 478520] Re: mountall does not clean /tmp directory with "--tmptime=0" option.

Steve Langasek steve.langasek at canonical.com
Sat May 19 06:53:26 UTC 2012


*** This bug is a duplicate of bug 655447 ***
    https://bugs.launchpad.net/bugs/655447

** This bug is no longer a duplicate of bug 478392
   /tmp is not cleaned when on a separate partition
** This bug has been marked a duplicate of bug 655447
   mounted-tmp uses 'find' -- but if /usr is not yet available it will fail

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mountall in Ubuntu.
https://bugs.launchpad.net/bugs/478520

Title:
  mountall does not clean /tmp directory with "--tmptime=0" option.

Status in “mountall” package in Ubuntu:
  New

Bug description:
  Binary package hint: mountall

  Hello everyone,

  I did a fresh standard installation of Ubuntu Karmic Koala on my IBM
  Thinkpad T42p.

  Usually, after each reboot, the system cleans the /tmp directory. On
  my previous 8.04.3 LTS Hardy Heron, it was handle by the very
  transparent /etc/init.d/bootclean script, which use the TMPTIME
  variable set to 0, from /etc/default/rcS.

  I was very surprised when I discovered that my Koala does not perform
  it as usual. So, I checked that the TMPTIME variable was set to 0 in
  /etc/default/rcS, and it was.

  The bootclean script was replaced with the binary mountall. mountall
  take a "--tmptime" option. The /etc/init/mountall.conf which reads the
  TMPTIME variable and executes mountall as daemon seems to be right.

  I did some tests, but without any success :

  1) I force the "--tmptime=0" option in the mountall.conf, without using the TMPTIME variable.
  2) After having unmounted the /tmp directory, I launched mountall --tmptime=0 manually. /tmp has been remounted without being cleaned. 

  According to mountall --help :
  --tmptime=HOURS         Grace to give files in /tmp

  It's very weird. I wonder if I'm the only one to have this issue...

  Here some useful info :

  1) The release of Ubuntu :
  Description:	Ubuntu 9.10
  Release:	9.10

  2) The version of the mountall :
  mountall:
    Installed: 1.0
    Candidate: 1.0
    Version table:
   *** 1.0 0
          500 http://fr.archive.ubuntu.com karmic/main Packages
          100 /var/lib/dpkg/status

  3) Expected : /tmp cleaned at boot time with TMPTIME=0.

  4) Happened : /tmp is never cleaned at boot time even if TMPTIME=0.

  5) Simplified fstab (full fstab in attachment)

  sda1   ext4   /boot            512MB
  sda5   swap                   2048MB
  sda6   ext4   /var            4096MB
  sda7   ext4   /tmp           2048MB
  sda8   ext4   /work       40960MB
  sda9   ext4   /                 8192MB   
  sda10 ext4   /usr/local    8192MB
  sda11 ext4   /home      31930MB

  6) cat /proc/partitions output

     8        0   97685784 sda
     8        1       497983 sda1
     8        2                 1 sda2
     8        5     4000153 sda5
     8        6     4000153 sda6
     8        7     2000061 sda7
     8        8   40001818 sda8
     8        9     8000338 sda9
     8       10    8000338 sda10
     8       11   31182133 sda11

  7) syslog : no error. /dev/sda7 mounted without a hitch.

  Nov  8 16:14:37 BlackBeast-T42p kernel: [    1.561308]  sda1 sda2 < sda5 sda6 sda7 sda8 sda9 sda10 sda11 >
  Nov  8 16:14:37 BlackBeast-T42p kernel: [   11.593596] EXT4-fs (sda7): barriers enabled
  Nov  8 16:14:37 BlackBeast-T42p kernel: [   11.595848] kjournald2 starting: pid 831, dev sda7:8, commit interval 5 seconds
  Nov  8 16:14:37 BlackBeast-T42p kernel: [   11.596181] EXT4-fs (sda7): internal journal on sda7:8
  Nov  8 16:14:37 BlackBeast-T42p kernel: [   11.596184] EXT4-fs (sda7): delayed allocation enabled
  Nov  8 16:14:37 BlackBeast-T42p kernel: [   11.596320] EXT4-fs (sda7): mounted filesystem with ordered data mode


  Thank you very much in advance. :)

  Best regards,

  vyncere from France.

  ProblemType: Bug
  Architecture: i386
  Date: Sun Nov  8 17:10:31 2009
  DistroRelease: Ubuntu 9.10
  InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.2)
  Package: firefox-3.5 3.5.4+nobinonly-0ubuntu0.9.10.1
  ProcEnviron:
   LANGUAGE=en_US.UTF-8
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
  SourcePackage: firefox-3.5
  Uname: Linux 2.6.31-14-generic i686

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/478520/+subscriptions




More information about the foundations-bugs mailing list