diff options
author | bnewbold <bnewbold@robocracy.org> | 2013-02-03 14:50:09 -0500 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2013-02-03 14:50:09 -0500 |
commit | 1f07808290553a8a7308be4012ad73c6cfc99ff2 (patch) | |
tree | 6e6a7fe55aec53ad0e531dd70dff677edfb01aaa /software/unix-tricks.page | |
parent | 948494573f902a5339de18707dcb271f4b80f05a (diff) | |
download | knowledge-1f07808290553a8a7308be4012ad73c6cfc99ff2.tar.gz knowledge-1f07808290553a8a7308be4012ad73c6cfc99ff2.zip |
misc updates
Diffstat (limited to 'software/unix-tricks.page')
-rw-r--r-- | software/unix-tricks.page | 13 |
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 + |