Debian 11 - Increase /dev/loop devices
By default the quantity of /dev/loop devices is 8, 0-7. Snap eats all 8, if you want more you need to increase it. But how to do it? In the suggestions replace <quantity> with the number of loop devices that are needed.
Failed suggestion - Edit grub command line
Open /etc/default/grub, and add max_loop=<quantity> to GRUB_CMD_LINUX or GRUB_CMD_LINUX_DEFAULT, like this: GRUB_CMDLINE_LINUX="max_loop=10" Then: update-grub update-initramfs -c -k all Source: https://www.systutorials.com/add-more-loop-device-on-linux/ This did not work.
Failed suggestion - Add a line in /etc/modules
Open /etc/modules, add: loop max_loop=<quantity> Then maybe: update-grub update-initramfs -c -k all Source: https://stackoverflow.com/questions/14230215/increase-loop-device-in-debian-squeeze This did not work. Or maybe it did - when the next suggestion was set to a different value, then this superseded that.
Working suggestion - Add a line in /etc/modprobe.d/loop.conf
Create /etc/modprobe.d/loop.conf Add this line: options loop max_loop=<quantity> Then maybe: update-grub update-initramfs -c -k all Source: https://linuxdock.com/increase-the-loop-device-count/ This worked.
This is a personal note. Last updated: 2022-12-30 15:17:50.