Skip to main content

All Questions

Tagged with
1 vote
1 answer
1k views

Why am I able to mount arbitrary TMPFS as an unprivileged user with unshare?

While messing around with unshare, I stumbled on the following behavior in an unprivileged shell: foo@pc $ id foo uid=1000(foo) gid=1000(foo) groups=1000(foo),27(video),97(input) foo@pc $ unshare -r -...
Afalide's user avatar
  • 13
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, ...
danielb's user avatar
  • 103
1 vote
1 answer
2k views

Differences between symlink to /tmp and tmpfs

I'm trying to make a read-only file-system (Raspbian). One common way is to place some directory (that are to be writable) in a tmpfs. Example, I found some tutorials that suggest: rm -rf /var/lib/...
Mark's user avatar
  • 438
16 votes
1 answer
20k views

Why is a second "tmpfs" parameter necessary when mounting a tmpfs?

Excerpted from the documentation So 'mount -t tmpfs -o size=10G,nr_inodes=10k,mode=700 tmpfs /mytmpfs' will give you tmpfs instance on /mytmpfs which can allocate 10GB RAM/SWAP in 10240 inodes ...
xmllmx's user avatar
  • 444
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 ...
schiggn's user avatar
  • 41
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 ...
Kostas's user avatar
  • 150
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?
Thiago Padilha's user avatar
0 votes
1 answer
366 views

/tmp broken: mount doesn't show anything

I'm on Ubuntu 9.04 and I've got the following problem: The folder /tmp normally has a tmpfs mounted in it. On one machine, this isn't the case anymore. I don't know what happened to have it that way. ...
Atmocreations's user avatar