Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No /media mount point #28

Closed
ccpetersen opened this issue Mar 26, 2021 · 3 comments · Fixed by #37
Closed

No /media mount point #28

ccpetersen opened this issue Mar 26, 2021 · 3 comments · Fixed by #37
Labels
enhancement New feature or request

Comments

@ccpetersen
Copy link

ccpetersen commented Mar 26, 2021

It would appear the mount point for the pico is hardcoded to be "/media". In Manjaro(Arch) usb mount points are in "/run/media". The simple solution is to create a link "/run/media -> /media", works but should be fixed.

Anyway thanks for doing this.

@vslinuxdotnet
Copy link

vslinuxdotnet commented Mar 26, 2021

Yes it hard coded in uf2conv.py in line: 238
rootpath = "/media"

Should be changed to something like this:

rootpath = "/media"
if not os.path.isdir(rootpath):
   rootpath = "/run/media"

@earlephilhower
Copy link
Owner

I'll manually add this here, but I think you want to also open an issue/PR upstream where the file comes from: https://github.com/microsoft/uf2

@earlephilhower
Copy link
Owner

@ccpetersen Can you check out #37 and report back? Thx!

@earlephilhower earlephilhower added the enhancement New feature or request label Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants