Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm having an issue with loopback. It looks like there is only 8. I did a search and apparently the problem is grub by default only has 8 loopback (devices?). If i look in /dev/ i see loop 0-7 so that does seem to make sense.

How do i change the amount of loopbacks?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I'm not sure how GRUB comes into this, as you don't explain the connection, but you can increase the number of simultaneously usable loop devices using the loop module.

modprobe loop max_loop=64

You can then manually make more loop devices with mknod like so:

mknod -m 660 /dev/loop8 b 7 8
share|improve this answer
    
I don't know either as what i saw didnt explain but i did see something saying grub defaults to 8. But good answer. The mknod line definitely does work. modprobe didn't. I tried restarting and 8 is still available –  acidzombie24 Nov 9 '12 at 3:17
1  
@acidzombie24 - max_loop probably doesn't do what you think it does, it only increases the number of possible loop devices. It doesn't actually create them. –  Chris Down Nov 9 '12 at 3:27
    
ah i see. Its not that much trouble to write a script to create them all –  acidzombie24 Nov 9 '12 at 3:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.