@Clyde said in Adding roms directly:
@UberLumby said in Adding roms directly:
@UberLumby never mind lubuntu is giving me permission denied when copying files to the retropie sd LOL
Linux distinguishes users by their user id (uid). If your uid on Lubuntu is different than that of pi on RetroPie (normally 1000), you won't have write access to it even if the username on both systems is the same, e.g. you made a pi user on Lubuntu just for that.
Vice versa, you would have full access if the usernames are different but the uids are equal, say "pi" on RetroPie and "lubuntu" on Lubuntu both had the uid 1000 on their systems.
You can see the uids and gid (group ids) of files and directories with the -n ("numeric ids") option of ls:
$ ls -n
drwxr-xr-x 6 1000 1000 4096 Apr 28 02:38 RetroPie
drwxr-xr-x 7 1000 1000 4096 Sep 19 19:01 RetroPie-Setup
If your uid and gid differ on RetroPie and Lubuntu, you could change the ownership of the directories only temporarily, and change them back after working with the files:
sudo chown -R lubuntu /media/lubuntu/retropie/home/pi/retropie/roms/dreamcast # use your username or uid for "lubuntu" here.
# Do your stuff.
sudo chown -R 1000 /media/lubuntu/retropie/home/pi/retropie/roms/dreamcast # Provided that pi's uid is 1000 on RetroPie
To me this is more "elegant" than the chmod way, as it doesn't mess with the files permissions. But this may be mere preference. And as with chmod, be sure to not to use it globally as it can mess up thinks equally bad. Use it only on directories where all files and subdirs have the same uid from the start.
Okay noted thanks! My rom folder IS gonna be okay I hope hahaha