On 11/11/05, Jon Wahlmann <[EMAIL PROTECTED]> wrote: > >> Now, I'm trying to remember if it's possible to, say, have a > >> /home/root on the same partition as /home and mount that on > >> /root. I > >> seem to recall being able to do that but standard mount is only on > >> block or loopback devices. Perhaps I'm confusing mounting > >> host directories from inside UML... > > > > $ man mount > > # look at the --bind and --move options. > > > > At the moment, I'm not sure about the distinction between > > them, but I use --bind in a few places. Like binding > > /var/tmp and /usr/tmp, /usr/local and /home/local, and > > /dev/shm and /tmp. The last of these gives you /tmp in > > memory, which is faster and automatically cleared on reboot, > > for bettor or worse. > > > That's what I was looking for, thanks. Yeah, it's not clear to me either what > the difference is between --bind and --move. I'll have to dig some more. I > like the idea of mounting /tmp in memory, just need to make sure I have enough > space for it without it being swapped which would then defeat the purpose. > Or, is it forced to be "in-memory" all the time?
I believe that /dev/shm uses swap space if memory fills up. So your available /tmp can be the sum of spare memory and swap. _Using the virtual memory (VM) file system and bind mounts_ < http://www-128.ibm.com/developerworks/linux/library/l-fs3.html > is where it is today. carl -- carl lowenstein marine physical lab u.c. san diego [EMAIL PROTECTED] -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
