Usbromservice changed all the rom folders to root permissions
-
I've been having a hard time getting everything working, and I thought I had finally got it fully working with a good microSD Card, formatted the HDD that I want roms to run off of as FAT32, but now the roms folders while working with Retropie, have only root permissions, preventing me from using the resetromdir in RetroPie Setup, or even signing in as root and using a chown -R.
Pi Model or other hardware: 4b
Power Supply used: official RPI USB type C power supply
RetroPie Version Used: 4.6
Built From: Raspberry Pi Imager
USB Devices connected: Samsung 840 Evo SSD via the nespi4 case
Error messages received: Permission denied when trying to transfer roms via SMB share. All folders show as root.
Guide used: (Mention if you followed a guide): USBRomservice guide on the official documentation. -
Errors when I try a sudo chown -R pi:pi /home/pi
chown: changing ownership of '/home/pi/RetroPie': Operation not permitted
-
Did you use the automated method or you added your own
/etc/fstab
/autostart.sh
entries ? -
@mitu Automated method. I created the retropie-mount folder
-
Can you post the output of the
mount
command ? -
I reformatted the SD Card, and don't seem to have the issue at the moment, but here's the output just in case:
/dev/mmcblk0p2 on / type ext4 (rw,noatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1867780k,nr_inodes=117763,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/sda1 on /media/usb0 type vfat (rw,nodev,noexec,noatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/sda1 on /home/pi/RetroPie type vfat (rw,nodev,noexec,noatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=399972k,mode=700,uid=1000,gid=1000)Note: I also did this fix
-
@SgtJimmyRustles said in Usbromservice changed all the rom folders to root permissions:
Errors when I try a sudo chown -R pi:pi /home/pi
chown: changing ownership of '/home/pi/RetroPie': Operation not permitted
Just a little explanation for this: FAT32 (
vfat
in Linux) is a Windows file system that doesn't support Linux file permissions and ownerships. Those are determined by the mount options (here:uid=1000,gid=1000,fmask=0022,dmask=0022
) and are immutable by commands likechmod
orchown
. Thus, the above error message ist normal behaviour for a vfat mount.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.