>> 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? -Jon -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
