[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Max number of loop devices OR "efficient search of Debian documentation"



On Sun, May 18, 2014 at 9:07 AM, Richard Owlett <rowlett@cloud85.net> wrote:
>
> My general question is "How to search for a particular particle of
> information that you've seen SOMEWHERE in the reams of information available
> as formal documentation, web pages, mailing lists, etc."
>
> My current instance is attempting to modify the max number of loop devices.
> One pellet of Google buckshot reminded me that it can be reset for the next
> re-boot under /etc/modprobe.d . But I want to reset it on the fly.
> Other pellets hit postings:
>    that were over ten years old
>    where post did not seem to agree with relevant man page
>    post's author commented that he though solution might be of form ...

If you have loop compiled in to the kernel, as I do below, you can
only change the number of loop devices at boot by using
"max_loop=<number_of_loop_devices" on the kernel cmdline.

# grep BLK_DEV_LOOP /boot/config-3.15-rc5
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=16

But if the above grep returns "CONFIG_BLK_DEV_LOOP=m", you can:

# rmmod loop
# modprobe loop max_loop=<number_loop_devices_minus_one>


Reply to: