[Pkg-sysvinit-devel] Bug#558000: Bug#558000: files left over in /tmp hidden by tmpfs

Petter Reinholdtsen pere at hungry.com
Wed Nov 25 21:07:40 UTC 2009


[Dan Jacobson]
> Maybe add a comment mentioning:
> For those of you using e.g.,
>     tmpfs /tmp tmpfs defaults 0 0
> in /etc/fstab, this script (/lib/init/bootclean.sh) cannot be aware of
> any files left on the original place where you mounted /tmp from that
> day way back when you first started using tmpfs, using up disk space
> all the way up till now, unnecessarily.

Well, I am not quite convinced bootclean.sh is the best way to teach
basic file system skills. :)

> You can see if you have any such files by using
> # umount /tmp
> # find /tmp -mindepth 1
> You could then remove them by hand, leaving of course /tmp itself.
> Then put back the tmpfs
> # mount -t tmpfs tmpfs /tmp

A better way keeping /tmp intact in the process is to bind-mount / to
somewhere else and remove the files in /tmp/ that way.

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-sysvinit-devel mailing list