Take the tour ×  I'm trying to adapt a tutorial into an easy to
use script http://qt-
project.org/wiki/RaspberryPi_Beginners_guide.  I'm trying to
reduce the need for sudo/root as much as possible (preferably,
only for the final dd step).  My questions are:    1. Can I
mount the ext4 file system without sudo/root privileges in any
way?    2. Can I mount it in a way so that users/groups on the
FS are ignored in some way (so I can run make install without
sudo)?  The Filesystem is currently mounted loopback from an
offset of a file (i.e. -o loop,offset=62914560).  This file is
the image that will be copied onto the SD card used to boot the
Raspberry Pi.  share|improve this question add comment  3
Answers  up vote 4 down vote accepted  You want libguestfs. You
can use it via guestfish or guestmount, or use the library
directly through its C interface or any of the many language
bindings, like Python.  share|improve this answer While this
seems to be the best answer, I think it's a bit overkill for
this script. E.