Mount ISO Images on Alt-F through ssh console

183 views
Skip to first unread message

Antonio Minutolo

unread,
Apr 12, 2018, 5:59:08 AM4/12/18
to Alt-F

Hi Guys,

i'm trying to mount ISO Images direct on the terminal. I became following error:

[root@NAS-01]#  mount -o loop ct_dvd_2011.iso /mnt/iso
mount: mounting /dev/loop1 on /mnt/iso failed: Invalid argument

Folder mnt/iso exist:

[root@NAS-01]# ls -l /mnt
total 4
drwxr-xr-x    5 root     root          4096 Apr  9 14:46 RAID-NAS-01
drwxr-xr-x    2 root     root            40 Apr 12 11:20 iso


Any Idea or suggestion to solve this problem?

May be that the loop kernel module ist not compiled on Alt-F Version 1.0?

[root@NAS-01]# modprobe -l
/lib/modules/4.4.45/kernel/drivers/usb/class/usblp.ko
/lib/modules/4.4.45/kernel/net/sunrpc/sunrpc.ko
/lib/modules/4.4.45/kernel/fs/exportfs/exportfs.ko
/lib/modules/4.4.45/kernel/fs/nfs_common/grace.ko
/lib/modules/4.4.45/kernel/fs/nfs/nfsv3.ko
/lib/modules/4.4.45/kernel/fs/nfs/nfs.ko
/lib/modules/4.4.45/kernel/fs/fuse/fuse.ko
/lib/modules/4.4.45/kernel/fs/nfsd/nfsd.ko
/lib/modules/4.4.45/kernel/fs/ext2/ext2.ko
/lib/modules/4.4.45/kernel/fs/lockd/lockd.ko
/lib/modules/4.4.45/kernel/fs/cifs/cifs.ko

Thanks
Antonio

Rolf Pedersen

unread,
Apr 12, 2018, 7:28:12 AM4/12/18
to al...@googlegroups.com
I've always used the filesystem type option, -t

[root@DNS-323]# mkdir /mnt/disk
[root@DNS-323]# mount -t iso9660 -o loop madigan-again.iso /mnt/disk
[root@DNS-323]# ls /mnt/disk
audio_ts  video_ts
[root@DNS-323]#

On a computer with the manuals, see `man mount`.

"The standard form of the mount command is:

              mount -t type device dir"

Rolf

João Cardoso

unread,
Apr 12, 2018, 10:11:00 AM4/12/18
to Alt-F
If you are on a DNS-321/323 you need to install the kernel-modules-armv5 package.

 'mount -t iso9660' should be enough to load the kernel module using the loop device.
This is not saved in /etc/fstab nor is it persistent across reboots, so if you always need it's better to add it to your "user boot script"

Antonio Minutolo

unread,
Apr 12, 2018, 11:03:20 AM4/12/18
to Alt-F
THX Rolf,

doesn't work.
See answer from Joao. Doesnt work too.

Antonio Minutolo

unread,
Apr 12, 2018, 11:06:54 AM4/12/18
to Alt-F
Hi Joao,

i have the boot Kernel module trough Web Interface installed. Ihave the same error.
(I have the Duo 35 LS Device)

Any idea? On Modprobe no Module loaded. But on /dev/ i can found the loop devices!

Thanx a lot!
Toni

João Cardoso

unread,
Apr 12, 2018, 11:43:34 AM4/12/18
to Alt-F


On Thursday, 12 April 2018 16:06:54 UTC+1, Antonio Minutolo wrote:
Hi Joao,

i have the boot Kernel module trough Web Interface installed. Ihave the same error.
(I have the Duo 35 LS Device)

The Duo 35 LS is a rebranded DNS-323.

On Alt-F-1.0, the kernel version (uname -r) is 4.4.86, not 4.4.45 as your modprobe list shows. You must have the 1.0 snapshot installed, not the final 1.0, please install it (be sure to read the release README, at least the last paragraph)

The kernel-modules-armv5 package contains the isofs.ko kernel module, the loop device is builtin, not a module.

/ # uname -r
4.4.86

/ # ipkg list_installed | grep modules 
kernel-modules-armv5 - 4.4.86 - 

/ # grep loop /lib/modules/4.4.86/modules.builtin 
kernel/drivers/block/loop.ko

/ # ipkg files kernel-modules-armv5 | grep isofs
/Alt-F/usr/lib/modules/4.4.86/kernel/fs/isofs/isofs.ko

(which will automatically map to /lib/modules/4.4.86/kernel/fs/isofs/isofs.ko)

Antonio Minutolo

unread,
Apr 13, 2018, 4:59:28 AM4/13/18
to Alt-F
HI João,

i can't found the 1.0 Snap shoot. Where ist the location?
I read the FAQ, Posts and search on Sourceforge Tree but i can found the 1.0 Snapshoot. I installed 1.0 Release again but the NAS still stand on Kernel Version 4.4.45 and not 4.4.86.
Thanks
Antonio

João Cardoso

unread,
Apr 13, 2018, 11:58:28 AM4/13/18
to Alt-F


On Friday, 13 April 2018 09:59:28 UTC+1, Antonio Minutolo wrote:
HI João,

i can't found the 1.0 Snap shoot. Where ist the location?

The 1.0 snapshot (a preview) was deleted after the 1.0 release, so you can't find it anymore.

I read the FAQ, Posts and search on Sourceforge Tree but i can found the 1.0 Snapshoot. I installed 1.0 Release again but the NAS still stand on Kernel Version 4.4.45 and not 4.4.86.

Please read the Firmware webUI regarding what is installed and running. It should be:

The box is currently running Alt-F 1.0 with kernel 4.4.86, and is flashed with "Alt-F-1.0, initrd" and kernel "Alt-F-1.0, kernel 4.4.86".

Also, the 'uname -r' command should output "4.4.86"

If you reflashed 1.0 and the kernel it still 4.4.45, then something is wrong.
Please delete your previous downloaded .bin file, *download* it again and reflash. To avoid possible interactions with previous package versions remove all disks before reflashing.

Please read also the displayed release news at the download site, https://sourceforge.net/projects/alt-f/files/Releases/1.0/ particularly the "Firmware upgrading instructions" last sentence:

-If you are already using Alt-F:
 -make sure that both the HTTP and HTTPS admnistrative servers
  are in "inetd mode", not in "server mode". Use Services->Network, http, Configure.
 -Use http to access the box webUI for the upgrade.
 -Save current settings to a desktop computer (System->Settings, in the
   "Computer Disk" section, "Save current settings to file" hit the Download button)
 -if using Alt-F-0.1RC5 or latter
  -download also the firmware associated sha1 file and in the
   Firmware Upgrader webUI supply it along with the firmware bin file in order to
   verify the firmware download integrity.
  -Unapply the "network corruption fix" after flashing 1.0 using
   Services->User, user, Configure, clear the "Script to execute on powerup" entry and Submit.
 -If running the 1.0 Snapshot, execute the following commands after flashing the 1.0 Release,
  in order to update the pre-installed packages list:
  rm /usr/lib/ipkg/.fixed
  ipkg -update

Antonio Minutolo

unread,
Apr 15, 2018, 12:49:30 PM4/15/18
to Alt-F
Hi João,

thanks for your help.
After i flashed the duo 35 lr twice, now i have the kernel version 4.4.86. Why? I don't know! Ok, i must not all understand! :-)

Mounting the iso images through console running now perfectly. Thanks a lot.
Modprobe lists much more loaded module compared to 4.4.45.

Summary for this issue:

1: Flash the nas device on act. release (4.4.86)
1a: Check that right kernel version ist flashed / Web or console "uname -l"

2: type on console ---> rm /usr/lib/ipkg/.fixed
3:
type on cosole --->  ipkg -update
4: Install (easy over Web: Packages / Alt-F)
"
kernel-modules-armv5"
5: Create a mount point e.g "mkdir /mnt/iso"
5: Mount iso with "mount -t iso9660 -o loop example.iso /mnt/iso"


Greetings
Antonio

João Cardoso

unread,
Apr 16, 2018, 8:35:21 PM4/16/18
to Alt-F


On Sunday, 15 April 2018 17:49:30 UTC+1, Antonio Minutolo wrote:
Hi João,

thanks for your help.
After i flashed the duo 35 lr twice,

You have to understand that on the DNS-323 (your Duo 35), before flashing, you have to make a special reboot first, and only after that special reboot you are allowed to really flash the box.
The webUI procedure has thus to be repeated, and it looks like you need to flash twice, despite the bold blue warning.

That small inconvenient is needed to save 6MB of the 64MB DNS-323 memory RAM (10%!) during normal operation.

 

Hooligan99

unread,
Apr 20, 2018, 9:40:36 AM4/20/18
to Alt-F
 I have been using this on my 323's and a 320l-Ax. I was wondering why the last command doesn't return anything while the 323's do. It all works as expected tho...

This is the response on the 320 (the last command is blank):
[root@FileSRV02]# uname -r
4.4.86
[root@FileSRV02]# ipkg list_installed | grep modules
kernel-modules - 4.4.86 -
kernel-modules-armv5 - 4.4.86 -
[root@FileSRV02]# grep loop /lib/modules/4.4.86/modules.builtin
kernel/drivers/block/loop.ko
[root@FileSRV02]# ipkg files kernel-modules-armv5 | grep isofs
[root@FileSRV02]#

While my 323 shows what would be expected:
[root@FileSRV03]# ipkg files kernel-modules-armv5 | grep isofs
/Alt-F/usr/lib/modules/4.4.86/kernel/fs/isofs/isofs.ko
[root@FileSRV03]#


 

João Cardoso

unread,
Apr 20, 2018, 8:27:49 PM4/20/18
to Alt-F


On Friday, 20 April 2018 14:40:36 UTC+1, Hooligan99 wrote:
 I have been using this on my 323's and a 320l-Ax. I was wondering why the last command doesn't return anything while the 323's do.

On the 320/320L/325/327 the kernel-modules package is pre-installed in the firmware, while on the 321/323 it has to be installed on disk.

Pre-installed packages have an empty file list, thus the "ipkg files" commands return nothing (/etc/preinst lists pre-installed packages in the firmware, /usr/lib/ipkg/info/ contains installed packages control files)
 

Hooligan99

unread,
Apr 22, 2018, 9:50:45 AM4/22/18
to Alt-F
Ahh thanks
Reply all
Reply to author
Forward
0 new messages