I\'m sure this is a easy question, my Google-fu is obviously failing me.
How do I mount a filesystem using Python, the equivalent of running the shell command
You can use Python bindings for libmount from util-linux project:
libmount
import pylibmount as mnt cxt = mnt.Context() cxt.source = '/dev/sda1' cxt.target = '/mnt/' cxt.mount()
For more information see this example.