Hi,
on my VPS (cPanel server) I see this:
Code:
# mount
..
/tmp on /var/tmp type none (rw,noexec,nosuid,bind)
..
How is it possible to mount a folder on top of another?
I tried to do this but without success:
Code:
# dd if=/dev/zero of=/root/loopfile bs=512 count=1000
# mkfs.ext2 /root/loopfile
# mkdir /test
# mount -o loop /root/loopfile /test
# mount
/dev/sda3 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/root/loopfile on /test type ext2 (rw,loop=/dev/loop0) <===========
# mkdir /folder
# mount /test /folder
mount: you must specify the filesystem type
I think that in my case, /tmp is actually /usr/tmpDSK loop file.
Anyway, how can I track from which loop file (or device) is /tmp mounted?
Thank you