On Fri, Jun 12, 2009 at 5:52 PM, Maxim Wexler<maxim.wex...@gmail.com> wrote: > On 6/12/09, Mike Kazantsev <mk.frag...@gmail.com> wrote: >> On Fri, 12 Jun 2009 13:45:04 -0600 >> Maxim Wexler <maxim.wex...@gmail.com> wrote: >> >>> #shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 >> >> I wonder, what's the rationale behind commenting out shm? >> > > Good question. I was given to understand the new line was intended to > replaced the default, which I commented out. Perhaps that's a mistake. > That's how I configured the previous iteration of genteee before it > went south; maybe the new line had something to do with it. Should I > use both? > > mw
Hmm. 1) a tmpfs space is, by default, mounted on /dev/shm to meet some standard somewhere (can't recall, FHS I think). The important thing to note is that the name 'shm' is basically an unused placeholder (tmpfs doesn't operate on an actual block device like /dev/hda1), and that /dev/shm is the mount *point*. It should be there, and uncommented. 2) Yes it's 'legal' to mount the lvm volume onto /tmp *and* tmpfs space as you have your fstab lines there, but I can't say for sure which would truly be mounted first and which second, and in turn which would actually be used in the running system. IF you intend to use your system RAM to reduce read/write on your drive for temporary files, comment out the use of the LVM volume on /tmp and just leave the tmpfs mount on that point active (commenting leaves you free to change your mind anytime you like). 3) Vaguely related to your mention of it 'taking its place' about the /dev/shm and /tmp tmpfs mounts, the only time I've seen that mentioned was in a conversation somewhere about 'why not just use a --bind mount of /dev/shm onto /tmp to put it in tmpfs' ... which was answered with the simple fact that, by default everywhere I've seen it, /dev/shm is mounted noexec, while it's not altogether uncommon for things to be decompressed into /tmp before execution (which would fail if /tmp were mounted noexec). -- Poison [BLX] Joshua M. Murphy "Without a struggle, there can be no progress." - Frederick Douglass