All Questions
Tagged with tmpfs filesystems
6
questions
1
vote
0
answers
188
views
Why is the filesystem larger than logical volume?
On the machine, there is a logical volume /dev/lvm/tmp of size 500MiB with the same size partition /dev/mapper/tmp that is mounted on /tmp.
Checking the logical volume:
# lvdisplay /dev/lvm/tmp
--- ...
0
votes
0
answers
335
views
Cannot use newfs_hfs on ramdisk
I tried
ramfs_size_mb=2048
mount_point=/usr/local/var/mysql
# 1024 bytes per kibibyte
# 1024 kibibytes per mebibyte
# 512 bytes per sector
ramfs_size_sectors=$((${ramfs_size_mb}*1024*...
2
votes
0
answers
465
views
Prevent filesystem caching on tmpfs
Suppose that I want to put a big file (or a bunch of files) into a TMPFS, for whatever reason. Using dd with various combinations of direct and nocache flags, whether I copy a file from disk or create ...
24
votes
8
answers
82k
views
How to cleanup tmp folder safely on Linux
I use RAM for my tmpfs /tmp, 2GB, to be exact. Normally, this is enough but sometimes, processes create files in there and fail to cleanup after themselves. This can happen if they crash. I need to ...
25
votes
3
answers
39k
views
Why should I make a separate partition for /tmp?
Why should I make separate partitions for /tmp, /var and so on?
I can see more drawbacks than benefits. One benefit is that I can use ext4 with journaling for /home and ext4 without journaling for ...
4
votes
3
answers
2k
views
How can I allow normal users to mount tmpfs under subdirectories of their home directory?
How can I allow normal users to mount a tmpfs under any subdirectory owned by them?