Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to change the value of kernel about loop device?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sailer_sh
n00b
n00b


Joined: 17 Jan 2005
Posts: 15

PostPosted: Sat Jan 22, 2005 4:27 pm    Post subject: How to change the value of kernel about loop device? Reply with quote

I have more 600+ ISO files, and want to mount them in dirs, but I found that Gentoo system can only mount 256 ISO files, is it restrict of the kernel? How can I change the kernel for mount the all ISO files?
Back to top
View user's profile Send private message
ivanl
n00b
n00b


Joined: 15 Jan 2005
Posts: 35
Location: Singapore

PostPosted: Sat Jan 22, 2005 7:08 pm    Post subject: Reply with quote

I'm afraid you're going to be limited by 256, though I may be wrong.

What is happening here is that, each time you mount an .ISO, you are using a loop device. See
Code:
/usr/src/linux/Documentation/devices.txt
and search for the word 'loop'. Also
Code:
man losetup
.
In Unix, all devices are numbered with a major number and a minor number. For loops, it is major #7. Minor numbers go from 0 to 255. Hence limited to 256 loops.
Back to top
View user's profile Send private message
sailer_sh
n00b
n00b


Joined: 17 Jan 2005
Posts: 15

PostPosted: Sun Jan 23, 2005 5:46 am    Post subject: Reply with quote

ivanl wrote:
I'm afraid you're going to be limited by 256, though I may be wrong.

What is happening here is that, each time you mount an .ISO, you are using a loop device. See
Code:
/usr/src/linux/Documentation/devices.txt
and search for the word 'loop'. Also
Code:
man losetup
.
In Unix, all devices are numbered with a major number and a minor number. For loops, it is major #7. Minor numbers go from 0 to 255. Hence limited to 256 loops.


So it looks I cannot mount my 600+ ISO files...
:(
Back to top
View user's profile Send private message
dfy
Tux's lil' helper
Tux's lil' helper


Joined: 05 Apr 2004
Posts: 79

PostPosted: Sun Jan 23, 2005 11:22 am    Post subject: Reply with quote

Yep, looks like it - I'd suggest you write yourself a bash script or ncurses program that allows you to easily mount/umount what you need at the moment :wink: .
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum