Last active
December 11, 2019 14:25
-
-
Save ThinGuy/e6f3291df527d3d4259d40c5397e1673 to your computer and use it in GitHub Desktop.
One-liner to add max loop back devices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export MAX=256;for ((i=$(sudo find 2>/dev/null /dev -iname "loop[0-9]*"|wc -l); i<$MAX; i++));do sudo mknod -m0660 /dev/loop${i} b 7 ${i} && sudo chown root.disk /dev/loop${i};done |
Author
ThinGuy
commented
Dec 7, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment