Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

device gets mounted only every second time on Raspberry Pi #9

Closed
fgebhart opened this issue Oct 6, 2020 · 4 comments · Fixed by #214
Closed

device gets mounted only every second time on Raspberry Pi #9

fgebhart opened this issue Oct 6, 2020 · 4 comments · Fixed by #214
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@fgebhart
Copy link
Owner

fgebhart commented Oct 6, 2020

It seems that there is no proper unmounting in place which causes this issue.

@fgebhart fgebhart added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Oct 6, 2020
@fgebhart fgebhart self-assigned this Dec 21, 2020
@fgebhart fgebhart added bug Something isn't working help wanted Extra attention is needed and removed enhancement New feature or request labels Jun 5, 2021
@fgebhart
Copy link
Owner Author

fgebhart commented Aug 3, 2021

@gotiniens I'm curios, while playing around with the udev rules, did you experience your device to be mounted successfully only every second time you connect the device via usb to your RPI?

@gotiniens
Copy link
Contributor

Not really because especially during testing I made sure I unmounted the device every time to ensure consistent results.

I did forget once and indeed it did not mount the device properly.

I'm not sure about MTP devices, but for block devices it is better to unmount them before removing. Not unmounting could cause file-system corruption in certain situations.

Maybe automatically unmount the device when the fit files are copied?

@gotiniens
Copy link
Contributor

@fgebhart I see you are working on an refactor of the mount system in the rework_mounting_mechanism branch. With this new mechanism you can unmount the device after collecting the fit files. This would solve this Bug.

@fgebhart
Copy link
Owner Author

Great, that you have an eye on things 😉

Although the changes on that branch are still premature and not fully tested yet, the main intend of the refactoring was to solve this bug. However, I'm not 100% sure yet, whether the bug is caused by not properly unmounting. If this turns out to be the case, then unmounting after collecting the fit files should be the way forward.

Once the refactoring is ready to be merged, you might want to give it a try with your device. I will let you know once I reach that point.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants