Add dd image mounting script #18

Closed
opened 2018-02-22 19:45:09 +00:00 by Ghost · 0 comments
Ghost commented 2018-02-22 19:45:09 +00:00 (Migrated from git-old.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.