[Ilugc] Loop Back

  • From: metallica_tony@xxxxxxxxx (K.Sriram)
  • Date: Wed, 28 Apr 2004 08:16:04 -0700 (PDT)

  I found that in my /dev directory loop0 ......
loop15 files existed. So to create loop16 ..... loop50
use this script 

for i in `seq 16 50`
do
mknod /dev/loop$i b 7 $i
done

that's it. loop devices 16 thru 50 are created in the
/dev/ directory. Then u pass a kernel boot argument
(if loopback support is compiled in the kernel)
max_loop=50 or insert the module with the same
argument ( if it is compiled as a module) to use all
the 50 loop devices. 

Now u can mount upto 51 (0 .... 50) iso images to see
their contents. To mount an iso image file u use 

mount -o ro,loop fedora-core-1.iso /mnt

/mnt is my dest dir and fedora-core-1.iso is my iso
img file. This uses the first available free loop
device, in my case it used the /dev/loop0 and mounted
the iso image. Got it ???


--- james raj <wellspringjames@xxxxxxxxxxx> wrote:

Sir,
  If possible can you guide with the command to
create a new loop back interface.

Yahoo! India Matrimony: Find your partner online.


=====
##################################################
 
Personal email : metallica_tony@xxxxxxxxx 
Official email : sriram@xxxxxxxxxx
                [ Senior Developer @ Linare Tech ] 
        
             What I felt , 
          What I have known , 
  Never shined in thru what I have shown 
                   ---- Metallica.
                                                                                
                                        
Registered GNU/Linux User  #346087 
Free(dom) Software - For the people, by the people, to the people. 
 
##################################################


        
                
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover ;

Other related posts: