Skip to content

Conversation

i-jey
Copy link
Collaborator

@i-jey i-jey commented Sep 23, 2024

When the scope shuts down expectedly, rarely it will produce a 'ghost' SamsungSSD folder under /media/pi. The current way of picking the SSD folder blindly uses /media/pi/SamsungSSD if it exists, and then immediately errors out since the ghost folder has no storage.

This improvement checks that /media/pi/SamsungSSD exists and has sufficient storage. If not, it loops through all the other folders in /media/pi/ and tries to find one with sufficient storage. In the error case above where the ghost folder is made, the actual SSD shows up as SamsungSSD1.

…k the first one which is valid. This is an update over the original method which simply picked the first folder in /media/pi if the expected SamsungSSD folder was not found.
@i-jey i-jey merged commit 7840e1d into develop Sep 23, 2024
4 checks passed
@i-jey i-jey deleted the find_alternate_ssd_folder branch September 23, 2024 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants