× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Howto mount iso and other images

datstma
Aspirant

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:

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 nobody
before running the command above.

Hope this helps.

/Stefan
Message 1 of 4
Mastacheata
Aspirant

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.
Message 2 of 4
datstma
Aspirant

Re: Howto mount iso and other images

Yes you may! 😉

Good suggestion.

/Stefan
Message 3 of 4
scout12
Aspirant

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
Top Contributors
Discussion stats
  • 3 replies
  • 4169 views
  • 0 kudos
  • 3 in conversation
Announcements