toolboc / psx-pi-smbshare

A swiss army knife for enhancing classic game consoles with Raspberry Pi
387 stars 34 forks source link

Updated automount-usb.sh to look for a particular parition label "NAS" #90

Open bmahabirbu opened 3 months ago

bmahabirbu commented 3 months ago

This aims to fix the issue where the udev rule spits out a random partition in sda that might not contribute to the partition that has the games.

For example lets say we have a USB drive that has sda sda1 - 30m sda2 - 200gb

since the udev rule will detect sda being added it will always forward the first partition and update the samba share config with sda1 instead of sda2

at first, the idea was to sort the partitions by size but it was finicky. In the end I settled on looking for a label as it was more straightforward

georgewoodall82 commented 3 months ago

I see you undone all changes to automount-usb.sh made in the last commit. was this intentional?

bmahabirbu commented 3 months ago

It was not my mistake, I ended up replacing the contents of automount-usb.sh as my debugging environment was different than the repo I cloned.

bmahabirbu commented 3 months ago

I updated my forked repo so it only shows the changed I added