Can we mount /var with tmpfs instead of device:/dev/xvda3
As I'm new to linux I'm not sure whether we can mount /var with tmpfs instead of raw device..
Please confirm..
# df -hP
df: `/pthy4i/udump': Stale file handle
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 2.0G 781M 1.1G 42% /
tmpfs 32G 4.0K 32G 1% /dev/shm
/dev/xvda7 988M 3.3M 917M 1% /home
/dev/xvda5 3.9G 8.0M 3.7G 1% /oem
tmpfs 4.0G 650M 3.4G 16% /tmp
/dev/xvda2 4.8G 2.4G 2.2G 53% /usr
/dev/xvda3 2.9G 343M 2.4G 13% /var <<<===
]# grep tmpfs /etc/fstab
tmpfs /tmp tmpfs defaults,size=4g,mode=1777,nosuid,nodev 0 0
tmpfs /dev/shm tmpfs defaults 0 0
You have new mail in /var/spool/mail/root