Skip to content
A utility for working with disk images, which are designed to be flashed onto a Raspberry Pi.
C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
src
.gitignore
LICENSE
Makefile
README.md
TODO.md

README.md

piimg

A utility for working with disk images, which are designed to be flashed onto a Raspberry Pi.

piimg is currently untested beyond my own needs, and so I suggest great caution when using it.

Commands

There are 3 useful subcommands; list, mount and umount. list can be run on an image file by running

piimg list <img-file>

It performs a functionality similar to fdisk -l and will list the partitions on the disk.

mount is much more cool. It will mount an image files root partition at a given mount point, then mount in the boot partition too. Furthermore, it also bind mounts /dev and /sys, whilst creating a /proc. (How cool is that!?!) It can be run by

piimg mount <img-file> <mount-point>

To unmount, run

piimg umount <mount-point>

piimg should not be run as root and will escalate its privileges as necessary.

Aim

The aim is to create a library and command-line utility for manipulating, mounting and generally working with Raspberry Pi images.

Credits

This project started as a question on Raspberry Pi.SE. I've also drawn inspiration from the git UI.

You can’t perform that action at this time.