i'm not sure you even need to have user permissions, directly on the stick .
fstab is usually for fixed internal drives ; personally i wouldn't add a usb stick to that - but each to their own
So let me explain.. I have an SD card slot in my laptop ; when i want to create a timeshift snapshot i pop in one of my SD cards that is formatted to ext4 . Timeshift is evoked with sudo permissions , which means whats written to it has root permissions.
If i run :
Code:
fdisk -l
Disk /dev/sdb: 29.72 GiB, 31914983424 bytes, 62333952 sectors
Disk model: SD/MMC/MS PRO
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x337a2ad8
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 62332927 62330880 29.7G 83 Linux
So the SD card (itself ) is coming up as /dev/sdb
Theres a partition table of dos type - thats ok
and then there is a partition /dev/sdb1 thats the one i want to mount and play with.
Thats also the one that Timeshift writes to and like yours is formated to a linux file system ext4 in my case .
It did auto mount, but i unmounted and then mounted it manually.
Now the default place on my Arch where usb sticks and sd cards get mounted is /run/media
Inside that there was already a dir called andrew.
I intended to mount the partition /dev/sdb1 to /run/media/andrew/sdcard
but there wasn't a directory called sdcard so I made one.
Code:
cd /run/media/andrew
sudo mkdir sdcard
sudo chmod 775 sdcard -R
//here i decide to give dir called "sdcard" permissions of 775
Now i'm going to mount the partition /dev/sdb1 of the SD card ( /dev/sdb) at /run/media/andrew/sdcard
Code:
sudo mount /dev/sdb1 /run/media/andrew/sdcard
//that mounted no problem
now i change directory and go have alook:
Code:
[andrew@darkstar:~]$ cd /run/media/andrew/sdcard (09-13 17:49)
[andrew@darkstar:andrew/sdcard]$ ls -l (09-13 17:49)
total 20
drwx------ 2 root root 16384 Jun 22 13:42 lost+found/
drwxr-xr-x 9 root root 4096 Sep 10 12:56 timeshift/
[andrew@darkstar:andrew/sdcard]$ (09-13 17:49)
if you look at the image you can see i can now navigate to /run/media/andrew/sdcard and ls- l shows root ownership and permissions
If i wanted to write to the files I think i would do it on the mount
i.e sudo chown andrew: users /run/media/andrew/sdcard
// in the above andrew will be the owner users will be the group that andrew might belong to; you need to find out which group , you as a user belong. I set myself up when i installed Arch slightly different. Then if i want to set permissions :
Code:
sudo chmod 775 /run/media/andrew/sdcard -R
Now thats going to work while its mounted- not a whole solution but might help