Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tmpfs]

The tag has no usage guidance.

3
votes
2answers
63 views

Reading and writing data temporarily without using the filesystem

I'm using ansible in a vagrant environment managing a debian box. Due multiple ansible provisioners with vault encrypted data (e. g. database root password) I have to enter the vault password once by ...
0
votes
0answers
70 views

Boot custom CentOS 7 Live ISO from hard disk to RAM

I'm trying to create a customized package of CentOS 7, which could be placed in an internal hard drive of a non-virtualized server, and booted to RAM using a bootloader (e.g. grub) in a UEFI ...
0
votes
0answers
22 views

How to use lvm directly on tmpfs?

LVM can use devices as backing store for physical volumes but not directories. tmpfs can be mounted at any mountpoint but mountpoints are always directories. How can the two be reconciled? I’m ...
4
votes
1answer
101 views

Group permissions for root not working in /tmp

I experience a strange behaviour in my /tmp directory. Although a user belong to a group has permissions to read/write a file, he cannot do so. In this example, I create a new file /tmp/test.txt as ...
2
votes
1answer
61 views

Does a tmpfs (/dev/shm) use Linux Page Cache? If it does, then how?

AFAIK, Linux has a page cache to improve performance (example, if you open a file, linux caches that file in RAM), then if file is requested again and it's cached, the OS avoids read the file from ...
1
vote
1answer
22 views

Cumulative tmpfs exceeds available virtual memory

I wondered, what would happen, if more tmpfs space is assigned than there is physical memory - and they are filled. More in-detail: Suppose I have 4GB RAM, 4GB swap. mount -o size=4G -t tmpfs tmpfs ...
1
vote
1answer
44 views

Mount SSHFS to tmpfs/Memory/MiniDLNA just write to RAM

to reduce the I/O on my low end Raspberry Pi, I want to set my SSHFS/NFS to be mounted in RAM. MiniDLNA then will stream it to my Network. As I can see in IOtop, Minidlna uses 99% of IO usage, and I ...
0
votes
0answers
12 views

Run Minidlna from RAMDisk

I am using Raspberry Pi to stream movies to my LAN. The movies are mounted using sshfs and streamed with MiniDLNA. Now the Pi has very slow SD-Card I/O, at iotop I can see minidlna uses <95% I/O ...
3
votes
1answer
150 views

tmpfs /run/user/1000 ran out of inodes, but it only has 30 files

So today I bother notice an error message being generated by gui program: (FreeFileSync:21930): dconf-CRITICAL **: 11:46:39.475: unable to create file '/run/user/1000/dconf/user': No space left on ...
3
votes
1answer
250 views

Why is /tmp mounted with permissions 0755 when fstab has 1777?

For /tmp in /etc/fstab, I have mode=1777, but after a reboot, the permissions on /tmp are 0755. Another directory /var/tmp is configured in exactly the same way but does not have this problem (see ...
-1
votes
1answer
49 views

Copy dir and its contents in RAM and backup on the original dir

I'd like to copy a dir and its contents in RAM, do my routines and periodically make some backups/sync on my original dir. So if I have a dir mydir/ with 2 files: $ ls mydir/ file1.tex file2.tex I ...
0
votes
1answer
29 views

Filesystem in RAM that swaps to disk after a specified size

I have a process on a Linux machine that fetches some chunk of data from a host and sends it to another host. I do not control the size of the chunks I fetch, but I have a general idea of their median/...
10
votes
4answers
2k views

Temporary folder that automatically destroyed after process exit

Can we use temporary folders like temporary files TMP=$(mktemp ... ) exec 3<>$TMP rm $TMP cat <&3 which will be destroyed automatically after this shell exit?
1
vote
1answer
367 views

How to create / delete $XDG_RUNTIME_DIR at login / logoff

Today I was surprised to ssh into my box running Arch Linux and find that /run/user/$(id -u) didn't exist. The XDG Base Directory Specification says: $XDG_RUNTIME_DIR defines the base directory ...
0
votes
1answer
27 views

Need to switch debian FS readonly writable layer from tmpfs to aufs to not lose files after booting

I'm trying to have this done on a debian 9 based embedded system. The fs that come for root is mounted as such in /etc/fstab: # /etc/fstab: static file system information. # /dev/mmcblk1p1 / ext4 ...
1
vote
1answer
109 views

mount /var as tmpfs && backup to disk @ shutdown && restore from disk @ boot

I run a fedora 27 server mainly for an email service, that is mainly used for temporary email communications by a software. Almost nothing permanent need to be stored on the /var, maybe except it's ...
0
votes
1answer
113 views

Where does the “tmpfs” file system reside?

Where does the tmpfs file system reside? In RAM or swap?
-1
votes
1answer
155 views

tmpfs with r/w access for all users anytime

I want to share a tmpfs folder (/mnt/ramdisk) between different users. All users should be able to read/write all files from that folder (just like fat32/fuse/samba) Its particularly useful for ...
2
votes
1answer
304 views

is there a way to atomically move file and directory from tempfs to ext4 partition on eMMC

We have beaglebone black based custom board with 256MB RAM and 4GB eMMC. Board runs Linux kernel 4.9 we are running into a situation where we create a file in tempfs and then after validation, we ...
1
vote
2answers
379 views

What's the difference between /tmp and /swap and /system/volatile in Solaris 11

My Solaris 11 df output has different swap entries root@hostname:/# df -h | egrep "tmp|swap" /tmp 108G 5.1G 103G 5% /tmp swap 150G 119G 31G ...
1
vote
2answers
492 views

ceph luminous osd memory usage

I am trying to build small CEPH cluster on single box - testing in the lab, before switching bigger probject to it. Run into memory problems and can not find way to control it. We have old Core2Duo ...
1
vote
1answer
263 views

can a full ram-disk cause swapping?

I have a application that is using /opt/otrs/var/tmp for caching a lot of temporary data. The vendor suggest that one option could be also to put this directory on a ramdisk (If you have enough RAM). ...
6
votes
1answer
224 views

Make or force tmpfs to swap before the file cache

Consider the following scenario. You have a slow read-only media (e.g. write-protected Thumb Drive, CD/DVD, whatever) that you installed Linux on (not a Live CD per se, but a normal build), and use it ...
1
vote
2answers
2k views

tmpfs usage and resizing

I am trying to understand the stuff. I have a machine with 80G storage. It looks like that: Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 50G 7.1G 43G 15% /...
3
votes
1answer
299 views

Cannot create NFS on a tmpfs drive

OS: SLES 12.3 Running these commands: mkdir /foo/ramdisk mount -t tmpfs -o size=100m tmpfs /foo/ramdisk Creating a NFS on /foo/ramdisk produces this result when I run showmount -e <IP>: ...
0
votes
1answer
257 views

Read-only filesystem - Considerations and Loss of Functionality

I'm creating an embedded system using Buildroot. Currently, my Buildroot configuration ensures the rootfs is remounted as read/write during startup. However I would like to remove this feature and ...
1
vote
2answers
952 views

Mount /var/logs as tmpfs, with help of overlayfs to save changes sometimes

Instead of just mounting tmpfs on /var/log I want to use overlayfs. /var/log are writable tmpfs, but containing files were there before tmpfs mount. This old files are not in memory of tmpfs but in ...
1
vote
0answers
1k views

tmpfs /run full

I have a problem with /run partition, its size NEVER decrease so when it's full, I have to reboot. [root@centos]# df -H Filesystem Size Used Avail Use% Mounted on ... tmpfs 6.4G 6.3G ...
0
votes
0answers
319 views

/var/log mounted as a tmpfs failing to get umounted on FreeBSD

I have /var/log mounted as a tmpfs, where log files are synced periodically to the disk by the cron on FreeBSD. The process is done by the rc script. I am mounting it like: mount -t tmpfs -o nosuid,...
0
votes
1answer
339 views

Cannot get rid of tmpfs

Using Arch Linux - 4.14.4 /dev, /run, /dev/shm, /sys/fs/cgroup and /run/user/1000 is using as tmpfs on my system, I want to disable tmpfs due to some reasons. [~] df -h ...
2
votes
1answer
4k views

/tmp directory size in Fedora

I am using Fedora 26 and have some troubles with /tmp on tmpfs. By default Fedora sets the /tmp size to a half of RAM size. In my case it is 4/2=2GB. But I noticed this causes faults during some ...
1
vote
2answers
4k views

How can I create an ext4 ramdisk?

First, I have create the directory that I will want to mount to. mkdir /mnt/ramdisk Now, I could easily turn this into a ramdisk using ramfs or tmpfs via mount -t tmpfs -o size=512m tmpfs /mnt/...
8
votes
1answer
23k views

How to increase /tmp folder size manually

I have no free space left on /tmp folder in Fedora 26. That cause several problems. Folder /tmp takes up all the free RAM: $ df -h /tmp Filesystem Size Used Avail Use% Mounted on tmpfs ...
0
votes
1answer
354 views

Multiple tmpfs entries in fstab

I've got a system which needs to be read-only - therefore, I've added a number of tmpfs entries into /etc/fstab, such as: tmpfs /var/lib/sudo tmpfs defaults 0 0 tmpfs /var/lib/systemd tmpfs ...
2
votes
1answer
814 views

How to extend tmpfs with physical volume?

I'm using 2G of tmpfs for /tmp dir to increase performance for java unit-testing: they are performing IO operations intensively in /tmp.Here is my tmp section from /etc/fstab file: tmpfs /tmp tmpfs ...
2
votes
0answers
228 views

How to mount tmpfs to rootfs?

I am trying to do a factory reset mechanism as a command. For that I am following these steps: Copy the default rootfs files to /tmp Kill all the currently running processes Mount tmp as root file ...
1
vote
1answer
936 views

Is there ramdrive on AWS EC2 instance by default?

I found my df command says the following: $ df Filesystem 1K-blocks Used Available Use% Mounted on udev 31428656 0 31428656 0% /dev tmpfs 6288016 9136 ...
2
votes
1answer
569 views

Is there easier way to find free disk space in a script than 'df'?

I need to find amount of free disk space on a RAM disk in a portable script (not GUI, not anything distro-specific). The df utility does the job, but it spews quite a lot of output so I have to fish ...
4
votes
3answers
2k views

Which filesystem / filesystem option to use for /tmp partition

When using a separate disk partition for /tmp, ie /dev/sda4, what filesystem is most suitable ? ext4 seems inappropriate: I don't need journal, I don't need that lost+found directory there either. ...
1
vote
0answers
169 views

Files (but not directories) lost from tmpfs

For the past few weeks (my system hasn't been rebooted in the meanwhile!) I had a bunch of files temporarily placed in /tmp tmpfs on /tmp type tmpfs (rw,nosuid,nodev) I now decided to move them to ...
3
votes
2answers
2k views

tmpfs does not overflow to swap

I've configured tmp in /etc/fstab like this: tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 2 The problem is that now /tmp is limited to half of the machine's memory, and when it reaches that limit I'...
2
votes
2answers
3k views

How to disable user specific tmpfs /run/user/1000, tmpfs

Is there any way to disable system creating user specific tmp mount /run/user/1000, tmpfs per each log-in session? I know this is a new feature, but I want to get the system running older way. -...
0
votes
1answer
145 views

moving /media mounted drives on tmpfs

I recently bought a new usb to run my linux-on-the-go system. I am aware of block limited write-cycles, so I am trying to minimize disk writes. I know that when I insert a disk, it mounts inside /...
1
vote
1answer
377 views

Limit the size of tmpfs with overlayroot

Recently I found out that it's possible to use overlayroot with tmpfs to create stateless readonly root. However I couldn't find any info about limiting the size of tmpfs. Is it possible?
0
votes
1answer
779 views

resize devtmpfs on /etc/fstab [duplicate]

I try resize my devtmpfs size, by add a row to /etc/fstab. This is my fstab file : # <file system> <mount point> <type> <options> <dump> <pass> # / was ...
1
vote
1answer
3k views

Which tmpfs to use?

When I run df | grep tmpfs | sed "s/[0-9]/*/g" I get tmpfs ******* **** ******* *% /run tmpfs ******* *** ******* *% /dev/shm tmpfs **** ...
1
vote
1answer
912 views

/tmp mounting options as tmpfs: Compatibility & Security

Having a SSD - it is recommended to mount /tmp as tmpfs. Examples: https://askubuntu.com/questions/550589/best-way-to-mount-tmp-in-fstab https://yktoo.com/en/blog/post/233 https://askubuntu.com/...
5
votes
1answer
7k views

Systemd backed tmpfs | How to specify /tmp size manually

I mount /tmp on tmpfs using: sudo systemctl enable tmp.mount sudo systemctl start tmp.mount But this way /tmp takes up all the free RAM: $ df -h /tmp Filesystem Size Used Avail Use% Mounted ...
12
votes
1answer
516 views

What could explain this strange sparse file handling of/in tmpfs?

On my ext4 filesystem partition I can run the following code: fs="/mnt/ext4" #create sparse 100M file on ${fs} dd if=/dev/zero \ of=${fs}/sparse100M conv=sparse seek=$((100*2*1024-1)) count=1 2&...
0
votes
1answer
696 views

Working example of udisks2 (udisksctl) mount with tmpfs [closed]

A Google search for '+udisksctl +tmpfs' returned no hits. I've tried many, many variants on this but all of them fail. Here's my current best guess: udisksctl mount -t tmpfs --options size=100 -b /...