» Loop mount iso files without being root
There is a rather convenient way to mount ISO files (CD/DVD images) onto a directory on Linux, which goes as follows:
mount -o loop,ro /path/to/image.iso /path/to/mountpoint
(where the mountpoint is a directory).
This method works very well, but has one essential drawback: you must be root
in order to do that. So how do I get to do so as a regular user ?
A barely known alternative lies in fuseiso
, which uses the FUSE filesystem in user-space layer to accomplish that.
In order to use it, you must install the package fuseiso
, which is available with the openSUSE distribution, and from the release repository (e.g. for 11.4) as well as from the filesystems
repository and OBS project:
zypper install fuseiso
Once that has been done (as root
;)), you can simply mount ISO files like this, without being root
:
fuseiso /path/to/image.iso /path/to/mountpoint
Note that as an additional benefit, fuseiso
also supports images in NRG, BIN, MDF and IMG (dd) format, as well as zisofs.
In order to unmount, simply use fusermount -u
, e.g. like this:
fusermount -u /path/to/mountpoint
1 Comments:
Nice one mate, thanks for sharing :)
Post a Comment
<< Home