Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5276

Troubleshooting • Re: Removable drives and permissions

$
0
0
Hello,

I am struggling with formatting, mounting, and premising

"premising"?
my removable drives in Raspbian.

Do you mean Raspberry Pi OS?
Is there a guide on how to use ext4 (or should I use something else?) to create a drive that is easily mounted and unmounted? And something that gives all users permissions like a normal NTFS file system would? I have done this once successfully but I cannot do it again for some reason.
NTFS has permissions just differrent ones with different defaults from Linux and that are unsupported by Linux.

ext4 is inherently multi-user. You can set permission wide open for all users (format it, mount it, then sudo chmod 777 mountpoint) but as soon as someone writes to it what they write will get their default permissions (which IIRC are usually rwxr-xr-x on directories and rw-r--r-- on files) and their default owner and group.

You'll also hit problems (or at least unexpected results) if you move an ext4 drive to a different machine with different users or where the user's numeric ID is not the same. Whether that's an issue for you or not depends on what you're using those removable drives for.

If you want it to be insecure and to stay insecure use an insecure filesystem and set mount options so that the faked in the driver permissions are what you need.

Not sure where you'd do that configuration for the desktop's automounter. If you're using fstab see Using fstab A Beginner's Guide
What is the stock RPi OS Automounter? I am struggling a lot with how this all worked. I tried to write permissioning and it auto corrected to what you saw. Anyway, I am struggling to figure out what file system would be easier to use than ext4 since every new directory is a hassle because I dont understand what is happening. I never would have thought windows did something easy until I encountered removable media in linux. pain.

Statistics: Posted by darkipod — Sat Jan 13, 2024 2:22 am



Viewing all articles
Browse latest Browse all 5276

Trending Articles