Path for ISO Share Folders

Discussion on setting up QNAP NAS products.
denniskarlsson
New here
Posts: 5
Joined: Wed Jun 24, 2015 11:21 pm

Re: Path for ISO Share Folders

Post by denniskarlsson »

pwilson wrote:Forgive me, but the QNAP design makes perfect sense. They are mounted as "shares" so they can be mounted/dismounted at will. You can always setup an "ISOs" share, and then create symlinks to point to each individual ISO share as you desire from there. This would give you the "logical" layout you want, without breaking anything. :twisted:

(I too am a Linux user. I've been running Linux since 1991).

If you insist on doing this manually, simply add your mount commands to your NAS's "autorun.sh" file. (I definitely do not recommend doing this), and then manually create "shares" to point to these folders. It would be far safer to use the symlinks via a dummy "ISOs" share to provide the logical structure you are looking for.

All your "shares", including ISO Shares, get mounted at /share under QNAP's design.

Remember that creating a ISO share is a two step process, these steps are done automatically by the Firmware.
  1. It mounts the ISO file to a folder (via a Loop device)
  2. It shares the newly mounted ISO folder out via AFS, SMB/CIFS, and NFS so all your client devices can access it.
I won't help with an "autorun.sh" file for this purpose, but I am willing to help you create an "ISOs" dummy share, with symlinks to the real ones. If you want to pursue this idea, simply create the ISO shares using the Firmware, and explain the logical structure you are looking for:

Perhaps you want a logical structure such as:
/share/ISOs/Ubuntu
/share/ISOs/Redhat
/share/ISOs/Win8
/share/ISOs/Win7Sp3

I need more information in order to be able to help.
You're right. It defines shares so it's completely correct.

Yes, that's exactly the structure I want. It's for my PXE environment.
It would be nice if they added a GUI for "mount ISO to mountpoint function".

Thank you for your offer but I can set that up myself.

I will make a script that will recursively search a folder and mount all ISO files that it can find on a specified path in separate mountpoints.
The name of the mountpoint will be the name of the ISO file.

Or maybe it will load settings from a text file beside the ISO file that tells the script what the mountpoint should be named and mount it there.
User avatar
pwilson
Guru
Posts: 22533
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada (UTC-08:00)

Re: Path for ISO Share Folders

Post by pwilson »

denniskarlsson wrote:
pwilson wrote:Forgive me, but the QNAP design makes perfect sense. They are mounted as "shares" so they can be mounted/dismounted at will. You can always setup an "ISOs" share, and then create symlinks to point to each individual ISO share as you desire from there. This would give you the "logical" layout you want, without breaking anything. :twisted:

(I too am a Linux user. I've been running Linux since 1991).

If you insist on doing this manually, simply add your mount commands to your NAS's "autorun.sh" file. (I definitely do not recommend doing this), and then manually create "shares" to point to these folders. It would be far safer to use the symlinks via a dummy "ISOs" share to provide the logical structure you are looking for.

All your "shares", including ISO Shares, get mounted at /share under QNAP's design.

Remember that creating a ISO share is a two step process, these steps are done automatically by the Firmware.
  1. It mounts the ISO file to a folder (via a Loop device)
  2. It shares the newly mounted ISO folder out via AFS, SMB/CIFS, and NFS so all your client devices can access it.
I won't help with an "autorun.sh" file for this purpose, but I am willing to help you create an "ISOs" dummy share, with symlinks to the real ones. If you want to pursue this idea, simply create the ISO shares using the Firmware, and explain the logical structure you are looking for:

Perhaps you want a logical structure such as:
/share/ISOs/Ubuntu
/share/ISOs/Redhat
/share/ISOs/Win8
/share/ISOs/Win7Sp3

I need more information in order to be able to help.
You're right. It defines shares so it's completely correct.

Yes, that's exactly the structure I want. It's for my PXE environment.
It would be nice if they added a GUI for "mount ISO to mountpoint function".

Thank you for your offer but I can set that up myself.

I will make a script that will recursively search a folder and mount all ISO files that it can find on a specified path in separate mountpoints.
The name of the mountpoint will be the name of the ISO file.

Or maybe it will load settings from a text file beside the ISO file that tells the script what the mountpoint should be named and mount it there.
Ah. I suspected as much. I chose to rip apart all the ISO's and store the files on the NAS. This means I only needed to mount them once. I've been using my NAS as a PXE Service ever since QTS 3.6.1. it works really well here.

Code: Select all

admin@NASTY2:~/bin# tree -d /share/Public/tftproot 
/share/Public/tftproot
├── Boot
│   └── Fonts
├── debian-installer
│   └── amd64
│       ├── boot-screens
│       │   ├── kde
│       │   ├── lxde
│       │   └── xfce
│       └── pxelinux.cfg
├── ERD2003
├── HBCD
│   ├── Boot
│   │   └── pmagic
│   │       └── pmodules
│   ├── Dos
│   ├── Programs
│   │   └── Files
│   └── XP
├── Install -> ../Install
├── ISO
├── kali
│   ├── debian-installer
│   │   └── i386
│   │       ├── boot-screens
│   │       │   ├── kde
│   │       │   ├── lxde
│   │       │   └── xfce
│   │       └── pxelinux.cfg
│   └── pxelinux.cfg -> debian-installer/i386/pxelinux.cfg
├── linux
│   ├── backtrack
│   │   └── 5.1
│   │       ├── amd64
│   │       │   ├── gnome
│   │       │   └── kde
│   │       └── i386
│   │           ├── gnome
│   │           └── kde
│   ├── kali
│   │   ├── debian-installer
│   │   │   ├── amd64
│   │   │   │   ├── boot-screens
│   │   │   │   │   ├── kde
│   │   │   │   │   ├── lxde
│   │   │   │   │   └── xfce
│   │   │   │   └── pxelinux.cfg
│   │   │   └── i386
│   │   │       ├── boot-screens
│   │   │       │   ├── kde
│   │   │       │   ├── lxde
│   │   │       │   └── xfce
│   │   │       └── pxelinux.cfg
│   │   └── pxelinux.cfg -> debian-installer/i386/pxelinux.cfg
│   └── ubuntu
│       └── 11.10
│           ├── amd64
│           └── i386
├── NTPasswdCh
├── OpenMediaVault
│   ├── dists
│   │   └── squeeze
│   │       ├── main
│   │       │   ├── binary-i386
│   │       │   └── debian-installer
│   │       │       └── binary-i386
│   │       └── non-free
│   │           └── binary-i386
│   ├── firmware
│   ├── install
│   ├── isolinux
│   ├── live
│   └── pool
│       ├── main
│       │   ├── a
│       │   │   ├── acl
│       │   │   ├── apt-setup
│       │   │   ├── attr
│       │   │   └── auto-install
│       │   ├── b
│       │   │   ├── base-installer
│       │   │   ├── beep
│       │   │   ├── bterm-unifont
│       │   │   ├── btrfs-tools
│       │   │   └── bzip2
│       │   ├── c
│       │   │   ├── cdebconf-entropy
│       │   │   ├── cdebconf-terminal
│       │   │   ├── choose-mirror
│       │   │   ├── clock-setup
│       │   │   ├── console-data
│       │   │   ├── coreutils
│       │   │   ├── cpuburn
│       │   │   └── cryptsetup
│       │   ├── d
│       │   │   ├── debconf
│       │   │   ├── debian-archive-keyring
│       │   │   ├── debian-installer-utils
│       │   │   ├── debian-ports-archive-keyring
│       │   │   ├── debootstrap
│       │   │   ├── devio
│       │   │   ├── dmidecode
│       │   │   ├── dmraid
│       │   │   ├── dosfstools
│       │   │   └── dpkg
│       │   ├── e
│       │   │   ├── e2fsprogs
│       │   │   ├── efibootmgr
│       │   │   ├── eglibc
│       │   │   ├── eject
│       │   │   ├── elilo
│       │   │   ├── elilo-installer
│       │   │   ├── emdebian-archive-keyring
│       │   │   └── espeak
│       │   ├── f
│       │   │   └── finish-install
│       │   ├── g
│       │   │   ├── gcc-4.4
│       │   │   ├── gettext
│       │   │   ├── gnupg
│       │   │   ├── grub
│       │   │   ├── grub2
│       │   │   ├── grub-installer
│       │   │   └── gtk+2.0
│       │   ├── h
│       │   │   └── hw-detect
│       │   ├── i
│       │   │   ├── installation-report
│       │   │   └── isc-dhcp
│       │   ├── j
│       │   │   └── jfsutils
│       │   ├── k
│       │   │   ├── kbd
│       │   │   ├── kexec-tools
│       │   │   ├── kickseed
│       │   │   └── klibc
│       │   ├── l
│       │   │   ├── lenny-support
│       │   │   ├── lilo
│       │   │   ├── lilo-installer
│       │   │   ├── linux-2.6
│       │   │   ├── linux-kernel-di-i386-2.6
│       │   │   ├── linux-modules-di-i386-2.6
│       │   │   ├── linux-ntfs
│       │   │   ├── live-installer
│       │   │   ├── localization-config
│       │   │   ├── loop-aes-utils
│       │   │   ├── lowmem
│       │   │   ├── lvm2
│       │   │   └── lvmcfg
│       │   ├── liba
│       │   │   └── libaio
│       │   ├── libb
│       │   │   └── libbsd
│       │   ├── libl
│       │   │   └── liblocale-gettext-perl
│       │   ├── libs
│       │   │   └── libselinux
│       │   ├── libt
│       │   │   ├── libtext-charwidth-perl
│       │   │   ├── libtext-iconv-perl
│       │   │   ├── libtextwrap
│       │   │   └── libtext-wrapi18n-perl
│       │   ├── libu
│       │   │   ├── libusb
│       │   │   └── libusb-1.0
│       │   ├── m
│       │   │   ├── mbr
│       │   │   ├── mdadm
│       │   │   ├── mdcfg
│       │   │   ├── media-retriever
│       │   │   ├── mii-diag
│       │   │   ├── mountfloppy
│       │   │   ├── mountmedia
│       │   │   └── multipath-tools
│       │   ├── n
│       │   │   ├── netcfg
│       │   │   ├── net-retriever
│       │   │   ├── network-console
│       │   │   └── nobootloader
│       │   ├── o
│       │   │   ├── oldsys-preseed
│       │   │   ├── openssh
│       │   │   ├── openssl
│       │   │   └── os-prober
│       │   ├── p
│       │   │   ├── partconf
│       │   │   ├── parted
│       │   │   ├── partman-auto
│       │   │   ├── partman-auto-crypto
│       │   │   ├── partman-auto-lvm
│       │   │   ├── partman-auto-raid
│       │   │   ├── partman-base
│       │   │   ├── partman-basicfilesystems
│       │   │   ├── partman-basicmethods
│       │   │   ├── partman-btrfs
│       │   │   ├── partman-crypto
│       │   │   ├── partman-efi
│       │   │   ├── partman-ext3
│       │   │   ├── partman-jfs
│       │   │   ├── partman-lvm
│       │   │   ├── partman-md
│       │   │   ├── partman-multipath
│       │   │   ├── partman-partitioning
│       │   │   ├── partman-reiserfs
│       │   │   ├── partman-target
│       │   │   ├── partman-ufs
│       │   │   ├── partman-xfs
│       │   │   ├── pciutils
│       │   │   ├── pcmciautils
│       │   │   ├── perl
│       │   │   ├── pkgsel
│       │   │   ├── popt
│       │   │   ├── ppp
│       │   │   └── preseed
│       │   ├── r
│       │   │   ├── rdate
│       │   │   ├── reiserfsprogs
│       │   │   └── rescue
│       │   ├── s
│       │   │   ├── strace
│       │   │   └── sysfsutils
│       │   ├── t
│       │   │   └── tzsetup
│       │   ├── u
│       │   │   ├── usbutils
│       │   │   ├── user-setup
│       │   │   └── util-linux
│       │   ├── w
│       │   │   └── wireless-tools
│       │   ├── x
│       │   │   ├── xfsprogs
│       │   │   └── xz-utils
│       │   └── z
│       │       └── zlib
│       └── non-free
│           ├── a
│           │   └── atmel-firmware
│           ├── f
│           │   └── firmware-nonfree
│           ├── libe
│           │   └── libertas-firmware
│           └── z
│               └── zd1211-firmware
├── ophcrack
├── password
├── PING
├── pmagic
│   ├── boot
│   │   ├── mhdd
│   │   ├── plpbt
│   │   ├── pxelinux
│   │   ├── sgd
│   │   └── syslinux
│   ├── pmagic
│   └── pmodules
│       └── scripts
├── preseed
├── pxelinux.cfg
├── SysAngel
├── tables
│   ├── vista_free
│   ├── xp_free_fast
│   └── xp_free_small
├── tftproot
│   ├── Boot
│   │   └── Fonts
│   ├── ERD2003
│   ├── HBCD
│   │   ├── Boot
│   │   │   └── pmagic
│   │   │       └── pmodules
│   │   ├── Dos
│   │   ├── Programs
│   │   │   └── Files
│   │   └── XP
│   ├── Install -> ../Install
│   ├── ISO
│   ├── linux
│   │   ├── backtrack
│   │   │   └── 5.1
│   │   │       ├── amd64
│   │   │       │   ├── gnome
│   │   │       │   └── kde
│   │   │       └── i386
│   │   │           ├── gnome
│   │   │           └── kde
│   │   └── ubuntu
│   │       └── 11.10
│   │           ├── amd64
│   │           └── i386
│   ├── NTPasswdCh
│   ├── ophcrack
│   ├── password
│   ├── PING
│   ├── pmagic
│   │   ├── boot
│   │   │   ├── mhdd
│   │   │   ├── plpbt
│   │   │   ├── pxelinux
│   │   │   ├── sgd
│   │   │   └── syslinux
│   │   ├── pmagic
│   │   └── pmodules
│   │       └── scripts
│   ├── preseed
│   ├── pxelinux.cfg
│   ├── SysAngel
│   ├── tables
│   │   ├── vista_free
│   │   ├── xp_free_fast
│   │   └── xp_free_small
│   ├── TRK
│   │   ├── pxelinux.cfg
│   │   └── trk3
│   │       ├── captive
│   │       └── share
│   │           └── pi
│   ├── ubcd
│   │   ├── boot
│   │   │   ├── bko
│   │   │   ├── cpustress
│   │   │   │   └── help
│   │   │   ├── discwiz
│   │   │   ├── memtest86
│   │   │   ├── memtest86p
│   │   │   ├── netbootme
│   │   │   └── x86test
│   │   ├── custom
│   │   ├── images
│   │   ├── menus
│   │   │   ├── grub4dos
│   │   │   │   └── hdd
│   │   │   └── syslinux
│   │   │       └── hdd
│   │   ├── tools
│   │   │   ├── linux
│   │   │   │   ├── antivirus
│   │   │   │   ├── mkfdubcd
│   │   │   │   ├── syslinux2grub4dos
│   │   │   │   ├── ubcd2iso
│   │   │   │   └── ubcd2usb
│   │   │   └── win32
│   │   │       ├── antivirus
│   │   │       ├── mkfdubcd
│   │   │       ├── syslinux2grub4dos
│   │   │       ├── ubcd2iso
│   │   │       ├── ubcd2usb
│   │   │       └── unxutils
│   │   │           ├── bin
│   │   │           └── etc
│   │   └── website
│   │       ├── graphics
│   │       ├── labels
│   │       └── tutorials
│   │           ├── dban
│   │           ├── nero5
│   │           ├── nero6
│   │           ├── nero7
│   │           └── roxio7
│   ├── utils
│   │   ├── bitdefender
│   │   │   ├── casper
│   │   │   ├── Docs
│   │   │   │   ├── css
│   │   │   │   ├── html_de
│   │   │   │   ├── html_en
│   │   │   │   ├── html_es
│   │   │   │   ├── html_fr
│   │   │   │   ├── html_ro
│   │   │   │   ├── images
│   │   │   │   │   ├── admonitions
│   │   │   │   │   ├── backgrounds
│   │   │   │   │   ├── breadcrumbs
│   │   │   │   │   ├── icons
│   │   │   │   │   └── screenshots
│   │   │   │   │       ├── acronis_cd
│   │   │   │   │       └── linuxdefender
│   │   │   │   ├── js
│   │   │   │   └── Leaflets
│   │   │   ├── install
│   │   │   └── isolinux
│   │   └── Clonezilla
│   └── wiul
├── TRK
│   ├── pxelinux.cfg
│   └── trk3
│       ├── captive
│       └── share
│           └── pi
├── ubcd
│   ├── boot
│   │   ├── bko
│   │   ├── cpustress
│   │   │   └── help
│   │   ├── discwiz
│   │   ├── memtest86
│   │   ├── memtest86p
│   │   ├── netbootme
│   │   └── x86test
│   ├── custom
│   ├── images
│   ├── menus
│   │   ├── grub4dos
│   │   │   └── hdd
│   │   └── syslinux
│   │       └── hdd
│   ├── tools
│   │   ├── linux
│   │   │   ├── antivirus
│   │   │   ├── mkfdubcd
│   │   │   ├── syslinux2grub4dos
│   │   │   ├── ubcd2iso
│   │   │   └── ubcd2usb
│   │   └── win32
│   │       ├── antivirus
│   │       ├── mkfdubcd
│   │       ├── syslinux2grub4dos
│   │       ├── ubcd2iso
│   │       ├── ubcd2usb
│   │       └── unxutils
│   │           ├── bin
│   │           └── etc
│   └── website
│       ├── graphics
│       ├── labels
│       └── tutorials
│           ├── dban
│           ├── nero5
│           ├── nero6
│           ├── nero7
│           └── roxio7
├── utils
│   ├── bitdefender
│   │   ├── casper
│   │   ├── Docs
│   │   │   ├── css
│   │   │   ├── html_de
│   │   │   ├── html_en
│   │   │   ├── html_es
│   │   │   ├── html_fr
│   │   │   ├── html_ro
│   │   │   ├── images
│   │   │   │   ├── admonitions
│   │   │   │   ├── backgrounds
│   │   │   │   ├── breadcrumbs
│   │   │   │   ├── icons
│   │   │   │   └── screenshots
│   │   │   │       ├── acronis_cd
│   │   │   │       └── linuxdefender
│   │   │   ├── js
│   │   │   └── Leaflets
│   │   ├── install
│   │   └── isolinux
│   └── Clonezilla
├── winxp -> ../Install/winxp/
├── wiul
├── XBMC-live
└── XBMC-netboot
    ├── ltsp
    ├── pxelinux.cfg
    └── xbmc-netboot

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs

Please review: When you're asking a question, please include the following.
Post Reply

Return to “Turbo Station Installation & Setup”