From 1f07808290553a8a7308be4012ad73c6cfc99ff2 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 3 Feb 2013 14:50:09 -0500 Subject: misc updates --- software/unix-tricks.page | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'software/unix-tricks.page') diff --git a/software/unix-tricks.page b/software/unix-tricks.page index 8749d16..d175133 100644 --- a/software/unix-tricks.page +++ b/software/unix-tricks.page @@ -70,3 +70,16 @@ stderr in Red Via `stack overflow `_: $ command 2> >(while read line; do echo -e "\e[01;31m$line\e[0m"; done) + +Mount an .img file as loopback device +----------------------------------------- + +Either: + + mount -o loop distro.img /mnt + +Or: + + losetup /dev/loop0 distro.img + mount /dev/loop0 /mnt + -- cgit v1.2.3