summaryrefslogtreecommitdiffstats
path: root/software/unix-tricks.page
diff options
context:
space:
mode:
Diffstat (limited to 'software/unix-tricks.page')
-rw-r--r--software/unix-tricks.page13
1 files changed, 13 insertions, 0 deletions
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 <http://serverfault.com/questions/59262/bash-print-stderr-in-red-color/59299#59299>`_:
$ 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
+