[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 18 May 2014 at 11:23:56 -0400, Tom H wrote:

> On Sun, May 18, 2014 at 11:14 AM, Brian <ad44@cityscape.co.uk> wrote:
> > On Sun 18 May 2014 at 09:40:29 -0400, Tom H wrote:
> >>
> >> 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>
> >
> > This can be automated to apply during booting by putting 'loop' into
> > /etc/modules and 'options loop max_loop=<number_loop_devices_minus_one>'
> > into a file in /etc/modprobe.d/. This works (for me) under sysvint and
> > systemd.
> 
> The OP had said "... it can be reset for the next re-boot under
> /etc/modprobe.d . But I want to reset it on the fly. ..."

Because the OP hadn't given any detail about "... it can be reset for
the next re-boot under /etc/modprobe.d ...." I thought it might be
useful to extend your advice to indicate how to do it. There is also the
point that putting 'loop max_loop=<number_loop_devices_minus_one>' in
/etc/modules works with sysvinit but not with systemd.


Reply to: