You are not logged in.

#1 2015-02-24 19:11:21

easton741
Member
Registered: 2015-01-02
Posts: 12

[Solved] RAMFS / tmpfs Ownership Issue On fstab

I'm trying to make my ~/.cache & ~/Downloads directories a RAMFS to speed things up and make keep my downloads folder clean.
The issue is that the file-system always assigns ownership to root:root.

Here is the relevant part of my fstab:

#Cache RAMDisk
ramfs       /home/user/.cache       ramfs       uid=1000,gid=1000,mode=750,noexec,nodev       0       0

#Downloads
ramfs       /home/user/Downloads    ramfs       uid=1000,gid=1000,mode=750,noexec,nodev       0       0

From "ls -l -a ~/ | grep Downloads"

drwxr-x---  2 root root     0 Feb 24 12:06 Downloads

P.S. GNOME thinks that that ~/Downloads is a removable device for some weird reason as well.

Last edited by easton741 (2015-02-24 21:33:20)

Offline

#2 2015-02-24 19:28:56

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,572
Website

Re: [Solved] RAMFS / tmpfs Ownership Issue On fstab

$ man mount
[...]
Mount options for ramfs
       Ramfs is a memory based filesystem.  Mount it and you have it.  Unmount it and it is gone.
       Present since Linux 2.3.99pre4.  There are no mount options.

Try a tmpfs instead, it supports gid and uid.

Last edited by WorMzy (2015-02-24 19:29:30)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2015-02-24 21:33:02

easton741
Member
Registered: 2015-01-02
Posts: 12

Re: [Solved] RAMFS / tmpfs Ownership Issue On fstab

Many thanks. I'm almost embarrassed at how simple a fix that was. roll

Offline

Board footer

Powered by FluxBB