Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Howto mount iso and other images
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-01-24
05:51 AM
2012-01-24
05:51 AM
Howto mount iso and other images
Just thought I'd share a quick tip on howto mount a iso -image on your readynas.
Let's assume that you've uploaded a arbitrary cdrom-backup image called image.iso.
Loggin in via ssh and trying to mount it with the usual:
Will get you return:
This is because the kernel module needed for interpreting an iso -image isn't included in the ReadyNas -distro.
In order to solve this one could spend time with downloading the kernel source/ headers and compile and link up the necessary modules or do it a bit more the easy way. Let's use FUSE instead, fuse is a toolkit for filesystem-userspace-utilities. Enabling non-root users, i.e. users that aren't allowed by the OS to perform kernel tasks.
To install fuse and forthcoming necessary tools, you'll simple just type:
Chances are the fuse-utils and libfuse-dev are already installed per-default on your system, but the above install -line won't hurt them. 😄
Then, to actually be able to mount an image in userspace, we need to install the fuseiso application. It's probably available in some shaky repo out there, but since it's a very small app, we might as well build it locally.
Download it from Launchpad's Ubuntu archive:
Extract it, change directory, build and install it
All done!
Let's mount it:
That's it, your image is now mounted under /mnt/loop, and if you like you can share it by instead mounting the image within an existing share. The media share for example
Do make sure that you have the proper permissions on the share in order to make it work. Remeber, it's userspace, so access permissions doesn't apply in the normal way. Depending on your setup, you might wanna switch to the user "nobody" i.e.
Hope this helps.
/Stefan
Let's assume that you've uploaded a arbitrary cdrom-backup image called image.iso.
Loggin in via ssh and trying to mount it with the usual:
mkdir /mnt/loop
mount -o loop image.iso /mnt/loop
Will get you return:
mount: unknown filesystem type 'iso9660'
This is because the kernel module needed for interpreting an iso -image isn't included in the ReadyNas -distro.
In order to solve this one could spend time with downloading the kernel source/ headers and compile and link up the necessary modules or do it a bit more the easy way. Let's use FUSE instead, fuse is a toolkit for filesystem-userspace-utilities. Enabling non-root users, i.e. users that aren't allowed by the OS to perform kernel tasks.
To install fuse and forthcoming necessary tools, you'll simple just type:
apt-get install build-essential fuse-utils libfuse-dev libglib2.0-dev
Chances are the fuse-utils and libfuse-dev are already installed per-default on your system, but the above install -line won't hurt them. 😄
Then, to actually be able to mount an image in userspace, we need to install the fuseiso application. It's probably available in some shaky repo out there, but since it's a very small app, we might as well build it locally.
Download it from Launchpad's Ubuntu archive:
wget "https://launchpad.net/ubuntu/+archive/primary/+files/fuseiso_20070708.orig.tar.gz"
Extract it, change directory, build and install it
cd fuseiso-20070708
./configure ; make install
All done!
Let's mount it:
fuseiso image.iso /mnt/loop
That's it, your image is now mounted under /mnt/loop, and if you like you can share it by instead mounting the image within an existing share. The media share for example
fuseiso image.iso /c/media/loop
Do make sure that you have the proper permissions on the share in order to make it work. Remeber, it's userspace, so access permissions doesn't apply in the normal way. Depending on your setup, you might wanna switch to the user "nobody" i.e.
su nobodybefore running the command above.
Hope this helps.
/Stefan
Message 1 of 4
Labels:
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-01-26
09:24 AM
2012-01-26
09:24 AM
Re: Howto mount iso and other images
May I suggest using checkinstall to get a deb package from the compilation process and then being able to manage the package via the package manager.
While this might not be that important in this particular situation, it can greatly help when fullfilling dependencies by manually compiling stuff.
While this might not be that important in this particular situation, it can greatly help when fullfilling dependencies by manually compiling stuff.
Message 2 of 4
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-02-14
02:36 AM
2012-02-14
02:36 AM
Re: Howto mount iso and other images
Yes you may! 😉
Good suggestion.
/Stefan
Good suggestion.
/Stefan
Message 3 of 4
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-08-29
10:47 AM
2012-08-29
10:47 AM
Re: Howto mount iso and other images
Hi not to necro an old thread but i was wondering if this is possible on the x86 version of ReadyNAS and what changes need to be made? Thanks
Message 4 of 4