mounting and creating iso files

Jeremy M. Teale lists at
Sat May 5 04:14:10 UTC 2007

das wrote:
> On Fri, 2007-05-04 at 22:01 -0500, Jeremy M. Teale wrote:
>> sudo mount -t iso9660 foo.iso ./mountpoint
> I don't think it will work, though it is true, I have never tried this
> mounting without the loop-back thing. 
> The command that I so commonly use is, as root:
> mount -t iso9660 -o loop=/dev/loop0 <image> <mount-point>
> <image> is full path with the name of the image file.
> <mount-point> is full path with the name of the mount point.
> like say: 
> mount -t iso9660 -o loop=/dev/loop0 /home/kelley/k.iso /home/kelley/k
> after you created k.iso in your home, and a folder called k there. 
> Issue this with 'sudo'. 
> What I do is I use su commands so much that I change the root password
> in 'Users and Groups' and become 'su' whenever I am going to do these
> thing. It frees me from typing 'sudo' every time. After it is done, I
> 'exit'. 

Sorry, yes, you are correct.
You can shorten it slightly to just '-o loop'. If you don't specify a 
device mount will look for an unused loopback device and use that.
Jeremy Teale

More information about the ubuntu-users mailing list