From d5e73354c210c305a3861d9f01c8300832e5a32a Mon Sep 17 00:00:00 2001 From: Dan Puttick Date: Fri, 6 Jan 2017 14:11:07 -0500 Subject: [PATCH] Created simple_mount_image.sh --- shell_utils/simple_mount_image.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 shell_utils/simple_mount_image.sh diff --git a/shell_utils/simple_mount_image.sh b/shell_utils/simple_mount_image.sh new file mode 100644 index 0000000..6c6bf3b --- /dev/null +++ b/shell_utils/simple_mount_image.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +IMAGE='2016-05-12_CIRCLean.img' +OFFSET=$((512 * 131072)) + +mkdir /mnt/rpi +mount -v -o offset=${OFFSET} -t ext4 ${IMAGE} /mnt/rpi