Mounting Images In Linux

Small useful info. that even “Jimmy Google” knows (Information/solutions found from people by performing a Google search).  I had to use this more when I was involved with game server hosting for system image cracking and modification.

To Mount:
losetup /dev/loop0 imagename.iso (.img, etc..)
mount /dev/loop0 /mnt
To Umount:
umount /mnt
losetup -d /dev/loop0
If you’re not familiar with the losetup command, in short it sets up and controls loop devices.  We use it here to associate a loop device with regular files.  A loop device is a psuedo-device that makes a file accessible as a block device.  You can  man losetup for more usage information.  

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s