Questions tagged [tmpfs]
tmpfs is a common name for a temporary file storage facility on many Unix-like operating systems. It is intended to appear as a mounted file system, but stored in volatile memory instead of a persistent storage device.
18
questions with no upvoted or accepted answers
3
votes
1
answer
1k
views
Mount TMPFS instead of ro /dev
I am working on a ARM-Based embedded system with a custom Debian Linux based on kernel 2.6.31. In the final system, the Root file system is stored as squashfs on flash. Now, the folder /dev is created ...
3
votes
0
answers
8k
views
How do I unmount a tmpfs that is missing from /etc/mtab?
I have the following line in /etc/fstab:
none /home/hydra/tmp tmpfs user,noauto,size=1000M,uid=1001,gid=1001 0 0
I can do mount ~/tmp as user hydra and it gets mounted ok. The only problem is ...
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 ...
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
--- ...
1
vote
0
answers
153
views
Build Docker image on tmpfs
I have a Dockerfile that change file permissions to various folders, one of that is a node_modules
RUN chown -R 0:0 . ...
1
vote
0
answers
407
views
Give space to a tiny computer (tmpfs with swap over nfs)
I have a tiny computer with not so much RAM (1-2GiB) and very little disk space in which I installed Gentoo. I also have space on a shared NFS.
In order to be able to compile any package, even the ...
1
vote
1
answer
661
views
Is it possible to create tmpfs inside lvm puppet module?
we have autoprovisioning of linux machines (using trusty and xenial) and we are using puppet for it.
We are using LVM in puppetlabs/lvm and specifying it in hiera.
Example:
lvm::volume_groups:
...
1
vote
1
answer
604
views
Linux volatile user home areas
This is actually a 2 part question, one for design decisions, and the other a technical question:
In our current network, we have Linux clients that authenticate against a server, and mount the user'...
1
vote
0
answers
1k
views
In linux is it possible to extend a ramdisk with a physcial drive in a logical volume?
I do not like how tmpfs behaves with swap and will allow memory to be exhausted before using the swap on physical disk (yes swappiness can be adjusted but it's still affecting the rest of the OS by ...
0
votes
0
answers
131
views
Why does booting tmpfs overlayroot filesystem on read-only disk boot to emergency mode?
I enabled tmpfs overlayroot running following.
$ sudo sed -i 's/overlayroot=""/overlayroot="tmpfs"/g' /etc/overlayroot.conf
After rebooting, Ubuntu boots as read-only and ...
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*...
0
votes
0
answers
2k
views
How to take full advantage of your RAM on Linux
On the downloads page of Garuda Linux, they say that "we believe in the principle that unused RAM is wasted RAM". There are some performance comparisons on youtube, it wasn't well in stress ...
0
votes
0
answers
97
views
Why my /tmp on Debian 9 have 15GB
My Debian 9 /tmp folder have 15GB (44 days uptime).
Am I supposted to manually (or with cronjob) delete /tmp contents?
OR something is wrong :D
0
votes
0
answers
331
views
When mounting dir to RAM, will contents remain after computer reboot
I mounted a cache directory to tmpfs for faster performance on my website using this command:
tmpfs on /var/cache type tmpfs (rw,relatime,size=102400k,mode=777)
It seems to be working well, however, ...
0
votes
1
answer
1k
views
Changing permissions of /tmp
I know that 1777 is the default mode of /tmp on many Linux distros.
I haven't been able to find much online, but I'm wondering if making /tmp group- and/or world-readable is really necessary.
Can ...