i have a player that auto download the files if i plug in usb, for some pc its working smoothly but i got problem for some pc with same OS ( ubuntu ) but different type and i test to give full permission access ( 777 ) to the files manually with chmod and its working
try to edit fstab but the usb uuid not shown :
UUID=C0C2-706F /boot/efi vfat umask=0077 0 2
UUID=d2187334-fc44-48c1-9226-f23f6289d985 / ext4 defaults 0 1
result for the mount :
/dev/sda2 on /media/amg/TO1 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1001,fmask=0022,dmask=0022,codepage=437,ioc harset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
result for lsb_release -
a;uname -a :
amg@amg:~$ lsb_release -a;uname -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
Linux amg 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
result for lsblk ( usb at sda2 ):
amg@amg:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 7,3G 0 disk
├─sda1 8:1 1 200M 0 part
└─sda2 8:2 1 7,1G 0 part /media/amg/TO1
mmcblk0 179:0 0 29,1G 0 disk
├─mmcblk0p1 179:1 0 300M 0 part /boot/efi
└─mmcblk0p2 179:2 0 28,8G 0 part /
mmcblk0boot0 179:8 0 4M 1 disk
mmcblk0boot1 179:16 0 4M 1 disk
result for lsblk -e7 -o model,name,size,fstype,uuid :
amg@amg:~$ lsblk -e7 -o model,name,size,fstype,uuid
MODEL NAME SIZE FSTYPE UUID
Cruzer_Blade sda 7,3G
├─sda1 200M vfat 67E3-17ED
└─sda2 7,1G vfat D078-0D63
mmcblk0 29,1G
├─mmcblk0p1 300M vfat C0C2-706F
└─mmcblk0p2 28,8G ext4 d2187334-fc44-48c1-9226-f23f6289d985
mmcblk0boot0 4M
mmcblk0boot1 4M
my question is how to make the subfolder file get auto full permission when i plug in the usb ?
thanks