Reading files from Linux filesystem

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
charp3nti3r
Posts: 1
Joined: Mon Nov 29, 2021 7:01 pm

Reading files from Linux filesystem

Post by charp3nti3r » Mon Nov 29, 2021 7:07 pm

Hey, guys!

I was wondering if mounting the Linux filesystem through MicroPython is even possible and, if it somehow is, how could I go about that? The reason why I am trying to accomplish this is because I would like to be able to read files from the host's filesystem.

Thanks in advance!

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Reading files from Linux filesystem

Post by Roberthh » Mon Nov 29, 2021 7:58 pm

So you want to mount a linux filesystem from an attached Micropython board, like a Pyboard?
Or do you want to access files running the Linux port of MicroPython.
One answer: Using mpremote on your host, you can indeed mount a directory of the Linux host at the micro, making it appear as local directory of the micro. But that works only as long as you are using mpremote for the communication.

Post Reply