Add dd image mounting script #18

Closed
opened 2018-02-22 12:45:09 -07:00 by 2Shirt · 0 comments
2Shirt commented 2018-02-22 12:45:09 -07:00 (Migrated from gitea.2shirt.work)

Quick three-liner:
dd_loop="$(losetup -f)"
sudo losetup -P ${dd_loop} [path-to-dd-image]
for d in ${dd_loop}*; do udevil mount -o ro $d; done

Thoughts:
Check if single loop or multiple partitions and mount accordingly

*Quick three-liner:* `dd_loop="$(losetup -f)"` `sudo losetup -P ${dd_loop} [path-to-dd-image]` `for d in ${dd_loop}*; do udevil mount -o ro $d; done` *Thoughts:* Check if single loop or multiple partitions and mount accordingly
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 2Shirt/WizardKit#18
No description provided.