zEitEr
Super Moderator
As what I've been reading about this on the net, it's not possible with "loop" when that is missing or when your /etc/fstab is rewritten after every reboot or the remount command is not allowed.
For what virtualization? With OpenVZ I've got the following:
Code:
[root@server /]# cat /etc/fstab
none /dev/pts devpts rw 0 0
none /tmp tmpfs rw,nodev,nosuid,noexec 0 0
[root@server /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 20G 13G 7.2G 65% /
none 1.0G 4.0K 1.0G 1% /dev
none 1.0G 0 1.0G 0% /tmp
[root@server /]#
And the partition /tmp re-mounts on every VPS restart.
Modifying /etc/fstab, as far as I know, might not work on XEN and KVM. Recently I had an issue with that, I had to use /etc/rc.d/rc.local to mount a custom partition.