[SCRIPT] create-autorun.sh

Introduce yourself to us and other members here, or share your own product reviews, suggestions, and tips and tricks of using QNAP products.
Post Reply
User avatar
OneCD
Guru
Posts: 12146
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] create-autorun.sh

Post by OneCD »

Hi and welcome to the forum. :)
millercentral wrote: Thu Oct 14, 2021 6:00 am Any idea what I'm doing wrong? Thanks!
Ah, looks like the DOM partition layout is different in QuTS. I don't have a NAS running QuTS so I can't check this.

Are you able to try mounting each of the partitions on the DOM?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
ashleymarkbrown
New here
Posts: 2
Joined: Thu Aug 25, 2016 7:06 am

Re: [SCRIPT] create-autorun.sh

Post by ashleymarkbrown »

Hi,

I too am having this problem. I attempted to use each RAM Block Command on the wiki and still not working. I just get the Special Device 6 does not exist error for each command.

I am also running the latest version of QuTS. I really need to get this fixed as I am attempting to re-enable my nested VT-x for Virtualization of VMware ESXi.

Many Thanks for any help you can give.

Ashley.
User avatar
OneCD
Guru
Posts: 12146
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] create-autorun.sh

Post by OneCD »

Hey Ashley. :)

Sorry, I still don’t have access to a NAS running QuTS, so I can’t research this myself.

I’ll need to wait for someone to find the correct location for autorun.sh in QuTS so I can update this script.

Are you able to help figure this out?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
ktuimala
Starting out
Posts: 23
Joined: Thu Jan 20, 2022 2:46 pm

Re: [SCRIPT] create-autorun.sh

Post by ktuimala »

OneCD wrote: Tue Dec 28, 2021 6:30 am Hey Ashley. :)

Sorry, I still don’t have access to a NAS running QuTS, so I can’t research this myself.

I’ll need to wait for someone to find the correct location for autorun.sh in QuTS so I can update this script.

Are you able to help figure this out?
OneCD,

I just purchased a TVS-872x and I am running the QuTS-Hero latest release. I just ran into this issue and am willing to help you investigate this issue. Just let me know what you need.

I opened a ticket with support because they list the option to enable it in control panel, but they don't tell you where it is.
User avatar
OneCD
Guru
Posts: 12146
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] create-autorun.sh

Post by OneCD »

Hi and welcome to the forum. :)
ktuimala wrote: Thu Jan 20, 2022 4:24 pm I just purchased a TVS-872x and I am running the QuTS-Hero latest release. I just ran into this issue and am willing to help you investigate this issue. Just let me know what you need.
Great! Can you please SSH into your NAS and post back your block device list?

Code: Select all

lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT
It's the end of my day here so I'll continue this in the morning.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
ktuimala
Starting out
Posts: 23
Joined: Thu Jan 20, 2022 2:46 pm

Re: [SCRIPT] create-autorun.sh

Post by ktuimala »

OneCD,

Sure thing. Thanks for the welcome greeting.

Sadly, lsblk is not on the system:

Code: Select all

$ lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT
-sh: lsblk: command not found
These are the only ls* commands available:

Code: Select all

ls       lsattr   lsiutil  lsmod    lsof     lspci    lsusb
fdisk -l returns nothing either.

As an alternative, here is a dump of the /proc/partitions:

Code: Select all

major minor  #blocks  name

   1        0     204800 ram0
   1        1     458752 ram1
   1        2     458752 ram2
   1        3     204800 ram3
   1        4     204800 ram4
   1        5     204800 ram5
   1        6     204800 ram6
   1        7     204800 ram7
   1        8     204800 ram8
   1        9     204800 ram9
   1       10     204800 ram10
   1       11     204800 ram11
   1       12     204800 ram12
   1       13     204800 ram13
   1       14     204800 ram14
   1       15     204800 ram15
 259        0  488386584 nvme0n1
 259        1     530125 nvme0n1p1
 259        2     530142 nvme0n1p2
 259        3  453265368 nvme0n1p3
 259        4     530141 nvme0n1p4
 259        5   33519620 nvme0n1p5
 259        6  488386584 nvme1n1
 259        7     530125 nvme1n1p1
 259        8     530142 nvme1n1p2
 259        9  453265368 nvme1n1p3
 259       10     530141 nvme1n1p4
 259       11   33519620 nvme1n1p5
   8       16 17578328064 sdb
   8       17     530125 sdb1
   8       18     530142 sdb2
   8       19 17543204908 sdb3
   8       20     530141 sdb4
   8       21   33519619 sdb5
   8       48 17578328064 sdd
   8       49     530125 sdd1
   8       50     530142 sdd2
   8       51 17543204908 sdd3
   8       52     530141 sdd4
   8       53   33519619 sdd5
   8        0 17578328064 sda
   8        1     530125 sda1
   8        2     530142 sda2
   8        3 17543204908 sda3
   8        4     530141 sda4
   8        5   33519619 sda5
   8       32 17578328064 sdc
   8       33     530125 sdc1
   8       34     530142 sdc2
   8       35 17543204908 sdc3
   8       36     530141 sdc4
   8       37   33519619 sdc5
   8       64 17578328064 sde
   8       65     530125 sde1
   8       66     530142 sde2
   8       67 17543204908 sde3
   8       68     530141 sde4
   8       69   33519619 sde5
   8       80 17578328064 sdf
   8       81     530125 sdf1
   8       82     530142 sdf2
   8       83 17543204908 sdf3
   8       84     530141 sdf4
   8       85   33519619 sdf5
   8       96 17578328064 sdg
   8       97     530125 sdg1
   8       98     530142 sdg2
   8       99 17543204908 sdg3
   8      100     530141 sdg4
   8      101   33519619 sdg5
   8      112 17578328064 sdh
   8      113     530125 sdh1
   8      114     530142 sdh2
   8      115 17543204908 sdh3
   8      116     530141 sdh4
   8      117   33519619 sdh5
   8      128    4866048 sdi
   8      129       5244 sdi1
   8      130     500096 sdi2
   8      131     500096 sdi3
   8      132          1 sdi4
   8      133       8316 sdi5
   8      134       8700 sdi6
   8      135    2848252 sdi7
   9        9     530048 md9
   9       13     458880 md13
   9      321   33449472 md321
   9      322   32400896 md322
I don't have any experience with QTS, but after researching I am finding that QuTS Hero is truely a different beast as far as how they have implemented things.

I will do whatever I can to help you figure this out. I don't have my unit in production use yet. I am still testing various aspects of it and reformatting/resetting often. So, we have a good window of opportunity to try things out. Let me know what else you want to know about my system.
ktuimala
Starting out
Posts: 23
Joined: Thu Jan 20, 2022 2:46 pm

Re: [SCRIPT] create-autorun.sh

Post by ktuimala »

Another thing to note, QNAP does intend for a user to be able to use autorun.sh because they supply a checkbox for it in Control Panel -> System -> Hardware -> "Run user defined process during startup". They even give you a preview of an empty file you can copy to your clipboard. The problem is, they don't tell you where the file is or how to create it; not even in the online help. No surprise... It is a useless option at this point.

I have challenged support on this, but so far they are just telling me to update my firmware even though it is already up to date. I am continuing to challenge them on it. Will let you know what they come back with.
You do not have the required permissions to view the files attached to this post.
ktuimala
Starting out
Posts: 23
Joined: Thu Jan 20, 2022 2:46 pm

Re: [SCRIPT] create-autorun.sh

Post by ktuimala »

I am an idiot! fdisk -l does work, but setup led me to believe that my user had root like rights on the system. A simple sudo is all I had to do. Too many custom OSes in my life...

Anyway, here is a dump of disk -l, just in case it is helpful.

Code: Select all

$ sudo fdisk -l

Disk /dev/nvme0n1: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

        Device Boot      Start         End      Blocks   Id  System
/dev/nvme0n1p1               1       60802   488386583+  ee  EFI GPT

Disk /dev/nvme1n1: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

        Device Boot      Start         End      Blocks   Id  System
/dev/nvme1n1p1               1       60802   488386583+  ee  EFI GPT

Disk /dev/sdb: 18000.2 GB, 18000207937536 bytes
255 heads, 63 sectors/track, 2188400 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      267350  2147483647+  ee  EFI GPT

Disk /dev/sdd: 18000.2 GB, 18000207937536 bytes
255 heads, 63 sectors/track, 2188400 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1      267350  2147483647+  ee  EFI GPT

Disk /dev/sda: 18000.2 GB, 18000207937536 bytes
255 heads, 63 sectors/track, 2188400 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      267350  2147483647+  ee  EFI GPT

Disk /dev/sdc: 18000.2 GB, 18000207937536 bytes
255 heads, 63 sectors/track, 2188400 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1      267350  2147483647+  ee  EFI GPT

Disk /dev/sde: 18000.2 GB, 18000207937536 bytes
255 heads, 63 sectors/track, 2188400 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1      267350  2147483647+  ee  EFI GPT

Disk /dev/sdf: 18000.2 GB, 18000207937536 bytes
255 heads, 63 sectors/track, 2188400 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdf1               1      267350  2147483647+  ee  EFI GPT

Disk /dev/sdg: 18000.2 GB, 18000207937536 bytes
255 heads, 63 sectors/track, 2188400 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdg1               1      267350  2147483647+  ee  EFI GPT

Disk /dev/sdh: 18000.2 GB, 18000207937536 bytes
255 heads, 63 sectors/track, 2188400 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdh1               1      267350  2147483647+  ee  EFI GPT

Disk /dev/sdi: 4982 MB, 4982833152 bytes
8 heads, 32 sectors/track, 38016 cylinders
Units = cylinders of 256 * 512 = 131072 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdi1               1          41        5244   83  Linux
/dev/sdi2              42        3948      500096   83  Linux
/dev/sdi3            3949        7855      500096   83  Linux
/dev/sdi4            7856       30240     2865280    5  Extended
/dev/sdi5            7856        7920        8316   83  Linux
/dev/sdi6            7921        7988        8700   83  Linux
/dev/sdi7            7989       30240     2848252   83  Linux

Disk /dev/md9: 542 MB, 542769152 bytes
2 heads, 4 sectors/track, 132512 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md9 doesn't contain a valid partition table

Disk /dev/md13: 469 MB, 469893120 bytes
2 heads, 4 sectors/track, 114720 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md13 doesn't contain a valid partition table

Disk /dev/md321: 34.2 GB, 34252259328 bytes
2 heads, 4 sectors/track, 8362368 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md321 doesn't contain a valid partition table

Disk /dev/md322: 33.1 GB, 33178517504 bytes
2 heads, 4 sectors/track, 8100224 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md322 doesn't contain a valid partition table
ktuimala
Starting out
Posts: 23
Joined: Thu Jan 20, 2022 2:46 pm

Re: [SCRIPT] create-autorun.sh

Post by ktuimala »

Also found out that blkid is on the system, so here is it's dump:

Code: Select all

$ sudo blkid
Password:
/dev/nvme0n1p1: UUID="ed67e7e9-8394-4958-b5ee-3c79ea0f9f3d" TYPE="ext3"
/dev/nvme0n1p4: UUID="f835e512-c209-4eed-92fe-7ca68d08e5d2" TYPE="ext3"
/dev/nvme0n1p5: TYPE="swap"
/dev/nvme1n1p1: UUID="ed67e7e9-8394-4958-b5ee-3c79ea0f9f3d" TYPE="ext3"
/dev/nvme1n1p4: UUID="f835e512-c209-4eed-92fe-7ca68d08e5d2" TYPE="ext3"
/dev/nvme1n1p5: TYPE="swap"
/dev/sdb1: UUID="ed67e7e9-8394-4958-b5ee-3c79ea0f9f3d" TYPE="ext3"
/dev/sdb4: UUID="f835e512-c209-4eed-92fe-7ca68d08e5d2" TYPE="ext3"
/dev/sdd1: UUID="ed67e7e9-8394-4958-b5ee-3c79ea0f9f3d" TYPE="ext3"
/dev/sdd4: UUID="f835e512-c209-4eed-92fe-7ca68d08e5d2" TYPE="ext3"
/dev/sda1: UUID="ed67e7e9-8394-4958-b5ee-3c79ea0f9f3d" TYPE="ext3"
/dev/sda4: UUID="f835e512-c209-4eed-92fe-7ca68d08e5d2" TYPE="ext3"
/dev/sdc1: UUID="ed67e7e9-8394-4958-b5ee-3c79ea0f9f3d" TYPE="ext3"
/dev/sdc4: UUID="f835e512-c209-4eed-92fe-7ca68d08e5d2" TYPE="ext3"
/dev/sde1: UUID="ed67e7e9-8394-4958-b5ee-3c79ea0f9f3d" TYPE="ext3"
/dev/sde4: UUID="f835e512-c209-4eed-92fe-7ca68d08e5d2" TYPE="ext3"
/dev/sdf1: UUID="ed67e7e9-8394-4958-b5ee-3c79ea0f9f3d" TYPE="ext3"
/dev/sdf4: UUID="f835e512-c209-4eed-92fe-7ca68d08e5d2" TYPE="ext3"
/dev/sdg1: UUID="ed67e7e9-8394-4958-b5ee-3c79ea0f9f3d" TYPE="ext3"
/dev/sdg4: UUID="f835e512-c209-4eed-92fe-7ca68d08e5d2" TYPE="ext3"
/dev/sdg5: TYPE="swap"
/dev/sdh1: UUID="ed67e7e9-8394-4958-b5ee-3c79ea0f9f3d" TYPE="ext3"
/dev/sdh4: UUID="f835e512-c209-4eed-92fe-7ca68d08e5d2" TYPE="ext3"
/dev/sdh5: TYPE="swap"
/dev/sdi1: UUID="9333eb40-8071-460b-972f-a3192d483667" TYPE="ext2"
/dev/sdi2: LABEL="QTS_BOOT_PART2" UUID="e5501b4b-9efe-4566-99f3-7586aec93686" TYPE="ext2"
/dev/sdi3: LABEL="QTS_BOOT_PART3" UUID="eeb3313e-63a7-4c1a-8d70-37b649d67119" TYPE="ext2"
/dev/sdi5: UUID="9015507c-d233-41e0-8480-0fe81ff64be2" TYPE="ext2"
/dev/sdi6: UUID="42b040df-60e5-445d-b12b-5874f9a2b73b" TYPE="ext2"
/dev/sdi7: UUID="daddd833-04fe-4183-94a2-6b66d83095c2" TYPE="ext2"
/dev/md9: UUID="ed67e7e9-8394-4958-b5ee-3c79ea0f9f3d" TYPE="ext3"
/dev/md13: UUID="f835e512-c209-4eed-92fe-7ca68d08e5d2" TYPE="ext3"
/dev/md321: TYPE="swap"
/dev/md322: TYPE="swap"
Then here is a dump of mount:

Code: Select all

$ sudo mount
none on /new_root type tmpfs (rw,mode=0755,size=442368k)
/proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,size=64M)
tmpfs on /dev/shm type tmpfs (rw)
tmpfs on /share type tmpfs (rw,size=16M)
/dev/sdi5 on /mnt/boot_config type ext2 (rw)
tmpfs on /mnt/snapshot/export type tmpfs (rw,size=16M)
/dev/md9 on /mnt/HDA_ROOT type ext3 (rw,data=ordered)
zpool1/zfs1 on /share/ZFS1_DATA type zfs (rw,relatime,devices,setuid,nonbmand,zfsutil)
zpool1/zfs2 on /share/ZFS2_DATA type zfs (rw,relatime,devices,setuid,nonbmand,zfsutil)
zpool2/zfs19 on /share/ZFS19_DATA type zfs (rw,relatime,devices,setuid,nonbmand,zfsutil)
zpool1/zfs530 on /share/ZFS530_DATA type zfs (rw,relatime,devices,setuid,nonbmand,zfsutil)
zpool2/zfs531 on /share/ZFS531_DATA type zfs (rw,relatime,devices,setuid,nonbmand,zfsutil)
cgroup_root on /sys/fs/cgroup type tmpfs (rw)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,cpu)
none on /sys/fs/cgroup/memory type cgroup (rw,memory)
/dev/md13 on /mnt/ext type ext4 (rw,data=ordered,barrier=1,nodelalloc)
tmpfs on /samba_third_party type tmpfs (rw,size=32M)
tmpfs on /share/ZFS1_DATA/.samba/lock/msg.lock type tmpfs (rw,size=48M)
tmpfs on /mnt/ext/opt/samba/private/msg.sock type tmpfs (rw,size=16M)
nfsd on /proc/fs/nfsd type nfsd (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
tmpfs on /share/NFSv=4 type tmpfs (rw,size=16M)
/share/ZFS19_DATA/Triitus Backup on /share/NFSv=4/Triitus-Backup type none (rw,bind)
/share/ZFS530_DATA/.qpkg/container-station/kernel-module on /lib/modules/5.10.60-qnap/container-station type none (rw,bind)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,none,name=systemd)
tmpfs on /mnt/diag type tmpfs (rw)
Finally a dump of cat /proc/mounts:

Code: Select all

$ sudo cat /proc/mounts
none / tmpfs rw,relatime,size=442368k,mode=755 0 0
devtmpfs /dev devtmpfs rw,relatime,size=32860028k,nr_inodes=8215007,mode=755 0 0
/proc /proc proc rw,relatime 0 0
devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,relatime,size=65536k 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
tmpfs /share tmpfs rw,relatime,size=16384k 0 0
/dev/sdi5 /mnt/boot_config ext2 rw,relatime,errors=continue 0 0
tmpfs /mnt/snapshot/export tmpfs rw,relatime,size=16384k 0 0
/dev/md9 /mnt/HDA_ROOT ext3 rw,relatime,data=ordered 0 0
zpool1/zfs1 /share/ZFS1_DATA zfs rw,relatime,xattr,richacl 0 0
zpool1/zfs2 /share/ZFS2_DATA zfs rw,relatime,xattr,richacl 0 0
zpool2/zfs19 /share/ZFS19_DATA zfs rw,relatime,xattr,richacl 0 0
zpool1/zfs530 /share/ZFS530_DATA zfs rw,relatime,xattr,richacl 0 0
zpool2/zfs531 /share/ZFS531_DATA zfs rw,relatime,xattr,richacl 0 0
cgroup_root /sys/fs/cgroup tmpfs rw,relatime 0 0
cpu /sys/fs/cgroup/cpu cgroup rw,relatime,cpu 0 0
none /sys/fs/cgroup/memory cgroup rw,relatime,memory 0 0
/dev/md13 /mnt/ext ext4 rw,relatime,nodelalloc,data=ordered 0 0
tmpfs /samba_third_party tmpfs rw,relatime,size=32768k 0 0
tmpfs /share/ZFS1_DATA/.samba/lock/msg.lock tmpfs rw,relatime,size=49152k 0 0
tmpfs /mnt/ext/opt/samba/private/msg.sock tmpfs rw,relatime,size=16384k 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
tmpfs /share/NFSv=4 tmpfs rw,relatime,size=16384k 0 0
zpool2/zfs19 /share/NFSv=4/Triitus-Backup zfs rw,relatime,xattr,richacl 0 0
zpool1/zfs530 /lib/modules/5.10.60-qnap/container-station zfs rw,relatime,xattr,richacl 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/cpuacct cgroup rw,relatime,cpuacct 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,relatime,blkio 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,relatime,devices 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,relatime,freezer 0 0
cgroup /sys/fs/cgroup/pids cgroup rw,relatime,pids 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,relatime,name=systemd 0 0
zpool1/zfs530/4fb6d016b7e240ddd3a4331a0db2fe151da26c6eabe19b641550e4ec03b17284 /share/ZFS530_DATA/.qpkg/container-station/system-docker/zfs/graph/4fb6d016b7e240ddd3a4331a0db2fe151da26c6eabe19b641550e4ec03b17284 zfs rw,relatime,xattr,richacl 0 0
zpool1/zfs530/163ecf4023ae95e6a98f630abbb72eb3cf0677442edba71bc63d0df3d0e81c8a /share/ZFS530_DATA/.qpkg/container-station/system-docker/zfs/graph/163ecf4023ae95e6a98f630abbb72eb3cf0677442edba71bc63d0df3d0e81c8a zfs rw,relatime,xattr,richacl 0 0
zpool1/zfs530/f317b19153274c47a04ede09e6a439ddf06acdb053d622a94f32fda4ff5cc228 /share/ZFS530_DATA/.qpkg/container-station/system-docker/zfs/graph/f317b19153274c47a04ede09e6a439ddf06acdb053d622a94f32fda4ff5cc228 zfs rw,relatime,xattr,richacl 0 0
nsfs /share/ZFS530_DATA/.qpkg/container-station/var/run/system-docker/netns/92acf3616218 nsfs rw 0 0
nsfs /share/ZFS530_DATA/.qpkg/container-station/var/run/system-docker/netns/818a9ad6a2d8 nsfs rw 0 0
nsfs /share/ZFS530_DATA/.qpkg/container-station/var/run/system-docker/netns/b6bbaa0d33fe nsfs rw 0 0
zpool1/zfs530/cb2cc1e8e85b66b322d9fbd326351e7720094578931128e2bac7db9654311d21 /share/ZFS530_DATA/.qpkg/container-station/system-docker/zfs/graph/cb2cc1e8e85b66b322d9fbd326351e7720094578931128e2bac7db9654311d21 zfs rw,relatime,xattr,richacl 0 0
nsfs /share/ZFS530_DATA/.qpkg/container-station/var/run/system-docker/netns/c55d330708ff nsfs rw 0 0
zpool1/zfs530/55ce62c6fd988fd1015ea753e65ffd6bb0e79a4caa098a7dc9f7e128f1c331d4 /share/ZFS530_DATA/.qpkg/container-station/system-docker/zfs/graph/55ce62c6fd988fd1015ea753e65ffd6bb0e79a4caa098a7dc9f7e128f1c331d4 zfs rw,relatime,xattr,richacl 0 0
zpool1/zfs530/b1a9850ade4dc572bbbe8620d8c52ee269c2b3a0e97e2b23e54ec9a8de5908ad /share/ZFS530_DATA/.qpkg/container-station/system-docker/zfs/graph/b1a9850ade4dc572bbbe8620d8c52ee269c2b3a0e97e2b23e54ec9a8de5908ad zfs rw,relatime,xattr,richacl 0 0
nsfs /share/ZFS530_DATA/.qpkg/container-station/var/run/system-docker/netns/8ab0efd37067 nsfs rw 0 0
nsfs /share/ZFS530_DATA/.qpkg/container-station/var/run/system-docker/netns/acdaefc634ec nsfs rw 0 0
tmpfs /mnt/diag tmpfs rw,relatime 0 0
Back to the day job for now. Let me know what you need and I will provide it. If I get a chance I will investigate some of the sdi and md entries.
User avatar
OneCD
Guru
Posts: 12146
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] create-autorun.sh

Post by OneCD »

Nice work! I'll check this out today. :geek:

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
ktuimala
Starting out
Posts: 23
Joined: Thu Jan 20, 2022 2:46 pm

Re: [SCRIPT] create-autorun.sh

Post by ktuimala »

OneCD wrote: Fri Jan 21, 2022 3:49 am Nice work! I'll check this out today. :geek:
You are welcome. I also did some more digging and I believe the system starts as follows:
  1. Starts with /etc/inittab
  2. Calls /etc/init.d/rcS that then calls all scripts under /etc/rcS_init.d/S??* (currently only one sym linked file)
  3. Calls /etc/rcS_init.d/S20init_check -> /etc/init.d/init_check.sh
I have not been able to verify all of this because of nothing persisting after reboot. I have included the above scripts in the attached zip file for your review.

I noted that /mnt/HDA_ROOT points to the QuTS-Hero persistent storage. This directory contains the following:

Code: Select all

-rw-r--r--  1 admin administrators  448 2022-01-20 00:08 .conf
drwxr-xr-x 46 admin administrators  12K 2022-01-20 12:17 .config/
drwxrwxrwx  2 admin administrators 4.0K 2022-01-20 01:22 .inited/
drwxr-xr-x  8 admin administrators 4.0K 2022-01-20 14:17 .logs/
drwx------  2 admin administrators  16K 2022-01-15 15:32 lost+found/
-rw-r--r--  1 admin administrators    0 2022-01-15 21:26 .nfs_fix_check
-rw-r--r--  1 admin administrators    0 2022-01-15 15:33 .QTS.installed
-rw-r--r--  1 admin administrators    0 2022-01-15 15:33 .QTS.installed.notice
drwxr-xr-x  3 admin administrators 4.0K 2022-01-20 01:30 update_pkg/
  • .conf just contains mac address and some other settings along with what appears to be disk information.
  • .config seems to contain every *.conf file that is updatable by QuTS-Hero.
  • .inited contains a single empty file called .samples.updated.20211222.
Listing of /mnt/HDA_ROOT/.config/

Code: Select all

-rw-r--r--  1 admin administrators  127 2022-01-15 15:39 acpi.conf
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 act.xml*
-rwxr-xr-x  1 admin administrators  16K 2022-01-15 15:39 anti_tamper.db*
-rw-r--r--  1 admin administrators  293 2022-01-15 21:25 antivirus.global
-rw-r--r--  1 admin administrators    1 2022-01-15 15:39 antivirus.jobs
-rw-r--r--  1 admin administrators    1 2022-01-15 21:25 antivirus.quarantine
drwxr-xr-x  4 admin administrators 4.0K 2022-01-20 01:24 apache/
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 01:16 .app_news/
-rw-r--r--  1 admin administrators  153 2022-01-19 20:38 .app_token
-rw-r--r--  1 admin administrators    7 2021-12-21 16:21 .arch.conf
-rw-r--r--  1 admin administrators    0 2022-01-20 00:09 autoconnect_revision
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 15:39 blob/
-rw-r--r--  1 admin administrators   10 2022-01-15 15:39 BOOT.conf
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 cacd_schedule.xml*
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 cact.xml*
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 cam_grp.xml*
-rw-r--r--  1 admin administrators  25K 2022-01-15 15:39 clamd.conf
-rwxr-xr-x  1 admin administrators   28 2022-01-15 15:39 clock*
-rw-r--r--  1 admin administrators  118 2022-01-20 01:21 cmd_result
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 cmd_timestamp
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 cms_evt.xml*
-rw-r--r--  1 admin administrators   25 2022-01-16 21:50 Console_Install.conf
drwx------  2 admin administrators 4.0K 2022-01-15 15:39 cre/
-rw-rw-rw-  1 admin administrators 2.4K 2022-01-20 01:38 crontab
-rw-r--r--  1 admin administrators  626 2022-01-15 15:39 cs_rfsd.conf
-rw-r--r--  1 admin administrators   32 2022-01-15 23:25 .cuid
-rw-r--r--  1 admin administrators  479 2022-01-19 20:42 custom_service.json
-rw-rw-rw-  1 admin administrators 2.8K 2022-01-20 01:17 ddns.conf
-rw-r--r--  1 admin administrators   43 2022-01-20 00:11 default-tz-list.json.cksum
-rw-r--r--  1 admin administrators  156 2022-01-20 00:11 def_share.info
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 00:10 dhclient/
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 15:39 dhclient6/
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 01:21 dhcp/
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 dhcpd.conf
-rwxr-xr-x  1 admin administrators    0 2022-01-15 15:39 dhcpd.leases*
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 15:39 dhcpv6/
-rw-r--r--  1 admin administrators  839 2022-01-16 00:42 disk_performance.conf
-rw-rw-rw-  1 admin administrators  882 2022-01-20 01:25 ds.conf
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 email_last_change.xml*
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 15:39 emap/
-rwxr-xr-x  1 admin administrators   76 2022-01-15 15:39 emapinfo.xml*
-rw-r--r--  1 admin administrators  157 2022-01-15 15:39 enclosure.map
-rw-r--r--  1 admin administrators  162 2022-01-19 21:41 enc_migrate.conf
-rw-r--r--  1 admin administrators    0 2022-01-20 01:20 esata_share_mapping
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 evt_act_list.xml*
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 evt_sch0.xml*
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 evt_sch1.xml*
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 evt_sch2.xml*
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 evt_sch3.xml*
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 evt_sch4.xml*
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 evt_sch5.xml*
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 evt_sch6.xml*
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 evt_sch7.xml*
-rwxr-xr-x  1 admin administrators  133 2022-01-15 15:39 evt.xml*
-rw-r--r--  1 admin administrators   27 2022-01-20 01:17 ext_if.conf
-rw-r--r--  1 admin administrators  29K 2022-01-15 15:39 FishEyeParameterTable.xml
-rw-r--r--  1 admin administrators   76 2022-01-15 15:39 FishEyeUserParameterTable.xml
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 fisheye.xml*
-rw-r--r--  1 admin administrators  256 2022-01-20 01:22 freshclam.conf
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 ftp_qpkg_migration
-rw-r--r--  1 admin administrators  101 2022-01-15 15:32 .funcSwitch.conf
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 23:24 .gpuconf/
-rwxr-xr-x  1 admin administrators  123 2022-01-19 21:57 group*
-rwxr-xr-x  1 admin administrators  100 2022-01-19 21:37 group-*
-rw-r--r--  1 admin administrators   75 2022-01-20 00:44 grp_quota.conf
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 15:39 ha/
drwxr-xr-x  2 admin administrators 4.0K 2022-01-19 03:04 .hd_info/
drwxrwxrwx  2 admin administrators 4.0K 2022-01-20 01:17 hero_backup/
-rw-r--r--  1 admin administrators   60 2022-01-15 15:39 hero_fc_target.conf
-rw-r--r--  1 admin administrators  263 2022-01-20 01:21 hero_iscsi_scst_init_lun_acl.json
-rw-r--r--  1 admin administrators  236 2022-01-20 01:21 hero_iscsi_scst.json
-rw-r--r--  1 admin administrators   58 2022-01-20 01:21 hero_zfs_lun.json
-rw-rw-rw-  1 admin administrators   28 2022-01-20 01:17 if_radvd.conf
-rw-r--r--  1 admin administrators  379 2022-01-19 19:19 ihm_status.conf
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 01:20 ImageMagick-6/
-rw-r--r--  1 admin administrators  54K 2022-01-20 01:25 info_server.db
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 ipsec_allow.conf
-rw-------  1 admin administrators  141 2022-01-19 20:40 ipsec.conf
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 ipsec_deny.conf
-rw-r--r--  1 admin administrators   37 2022-01-15 15:39 iscsi-init.conf
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 iva.xml*
-rw-r--r--  1 admin administrators  512 2022-01-15 15:39 labelclear_debug
-rw-r--r--  1 admin administrators  793 2022-01-20 01:22 libtrash.conf
drwxr-xr-x  5 admin administrators 4.0K 2022-01-15 15:39 license/
-rw-r--r--  1 admin administrators 3.5K 2022-01-20 00:11 localtime
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 00:11 logo/
-rw-r--r--  1 admin administrators   58 2022-01-15 15:39 logrotate.conf
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 15:39 logrotate.d/
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 15:39 lunporter/
-rwxr-xr-x  1 admin administrators   42 2022-01-15 15:39 MACHINE.SID*
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 migrate_change.conf
-rw-r--r--  1 admin administrators    7 2022-01-15 15:39 Model_Name.conf
-rw-r--r--  1 admin administrators    2 2022-01-20 01:22 mqt_list.conf
-rw-r--r--  1 admin administrators 4.9K 2022-01-15 15:39 my.cnf
-rw-r--r--  1 admin administrators 134K 2022-01-15 15:39 nas_priv2.db
-rw-r--r--  1 admin administrators   64 2022-01-19 21:41 nas_shared_folder.conf
-rw-r--r--  1 admin administrators 5.0K 2022-01-20 01:20 nas_sign_fw.db
-rw-r--r--  1 admin administrators 499K 2022-01-20 01:45 nas_sign_qpkg.db
drwxr-xr-x  3 admin administrators 4.0K 2022-01-20 01:30 nc/
-rw-r--r--  1 admin administrators  523 2022-01-15 15:39 NetLinks.conf
-rw-r--r--  1 admin administrators  104 2022-01-20 01:23 netmgr.conf
-rw-rw-rw-  1 admin administrators  113 2022-01-20 01:17 networkdaemon.conf
-rw-r--r--  1 admin administrators  833 2022-01-20 01:22 nfssetting
-rw-rw-rw-  1 admin administrators 7.6K 2022-01-20 01:25 nm.conf
-rw-r--r--  1 admin administrators 7.3K 2022-01-20 01:17 .nm.curr
-rw-rw-rw-  1 admin administrators  934 2022-01-20 01:17 nm_dhcpd.conf
-rw-rw-rw-  1 admin administrators  370 2022-01-20 01:17 nm_nat.conf
-rw-r--r--  1 admin administrators 7.3K 2022-01-20 01:17 .nm.save
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 15:39 nm_script/
-rw-r--r--  1 admin administrators   56 2022-01-15 15:39 nm_vlan_driver.conf
-rwxr-xr-x  1 admin administrators  13K 2022-01-15 15:39 nvrd2.xml*
-rwxr-xr-x  1 admin administrators 5.4K 2022-01-15 15:39 nvrd.xml*
-rwxr-xr-x  1 admin administrators 2.0M 2022-01-20 03:00 nvr_evt*
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 nvr_evt.xml*
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 nvrstat.xml*
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 01:22 openldap/
-rw-r--r--  1 admin administrators  386 2022-01-19 21:32 passwd
-rw-r--r--  1 admin administrators  368 2022-01-19 21:32 passwd-
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 15:39 php.d/
-rw-r--r--  1 admin administrators 4.3K 2022-01-20 01:22 php.ini
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 01:22 pp_qcoolie/
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 preset_tab.xml*
-rw-r--r--  1 admin administrators    1 2022-01-20 01:20 printcap
-rw-r--r--  1 admin administrators 5.2K 2022-01-19 22:06 proftpd.conf
-rw-r--r--  1 admin administrators  399 2022-01-20 01:24 qanalytic.conf
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 01:17 qcloud/
drwxr-xr-x  4 admin administrators 4.0K 2022-01-15 15:39 QcloudSSLCertificate/
-rw-r--r--  1 admin administrators 8.0K 2022-01-15 15:39 qcloud_system_receiver_device.db
-rw-r--r--  1 admin administrators    0 2022-01-17 02:16 qddns_users.conf
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 15:39 qHAsync/
-rw-rw-rw-  1 admin administrators    0 2022-01-20 12:17 qid.conf
-rw-r--r--  1 admin administrators   36 2022-01-20 01:22 qid_persistent.conf
drwxr-xr-x  6 admin administrators 4.0K 2022-01-20 12:17 qlicense/
lrwxrwxrwx  1 admin administrators   27 2022-01-20 01:22 qmonitor -> /share/ZFS2_DATA/.@qmonitor/
-rw-r--r--  1 admin administrators  467 2022-01-19 13:48 qnapddns.conf
drwxrwxrwx  4 admin administrators 4.0K 2022-01-15 15:39 .qos_config/
-rw-r--r--  1 admin administrators    0 2022-01-20 01:22 qpkg_code_signing.conf
-rw-r--r--  1 admin administrators 8.9K 2022-01-20 01:45 qpkg.conf
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 qpkg_control.conf
-rw-r--r--  1 admin administrators    0 2022-01-20 01:45 qpkg_job.conf
-rw-r--r--  1 admin administrators 1.7K 2022-01-20 03:00 qpkgStatus.conf
-rw-r--r--  1 admin administrators  156 2022-01-15 15:39 qpkg_vol.conf
-rw-r--r--  1 admin administrators   33 2022-01-15 15:39 Qraid1_conf_exclude.conf
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 Qraid1_share_exclude.conf
drwxrwx---  2 admin administrators 4.0K 2022-01-20 01:22 qsnaprep/
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 01:22 qsnapshot/
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 00:11 qsnapsync/
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 15:39 qstorage/
-rw-r--r--  1 admin administrators    0 2022-01-20 00:09 .QTS.notice
drwxr-xr-x  3 admin administrators 4.0K 2022-01-15 15:39 qulog/
-rw-rw-rw-  1 admin administrators 4.0K 2022-01-20 01:23 qzfs.conf
-rw-r--r--  1 admin administrators 2.4K 2022-01-20 01:20 qzpool.conf
-rw-r--r--  1 admin administrators    0 2022-01-20 00:11 radius_global.conf
-rw-r--r--  1 admin administrators   26 2022-01-15 15:39 raid.conf
-rwxr-xr-x  1 admin administrators    0 2022-01-15 15:39 raidtab*
-rwxr-xr-x  1 admin administrators 1.1K 2022-01-15 15:39 recovery_sch.xml*
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 00:04 reverseproxy/
-rw-r--r--  1 admin administrators   12 2022-01-19 20:42 root_cert.conf
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 13:17 rssdoc/
-rw-r--r--  1 admin administrators  325 2022-01-19 21:30 rsyncd.conf
-rw-r--r--  1 admin administrators  360 2022-01-20 01:17 rtc_last_save
-rwxr-xr-x  1 admin administrators  182 2022-01-20 01:20 schedule_boot_setting*
-rw-------  1 admin administrators  44K 2022-01-15 15:39 secrets.tdb
-rw-r--r--  1 admin administrators   31 2022-01-16 21:52 service_binding.conf
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 set_admin_fullname
-rw-r--r--  1 admin administrators    2 2022-01-15 15:39 set_home_directory
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 set_thumb_777
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 set_tm_home_directory
-r--------  1 admin administrators  327 2022-01-19 21:32 shadow
-r--------  1 admin administrators  265 2022-01-17 02:25 shadow-
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 smart.conf
-rw-r--r--  1 admin administrators 5.5K 2022-01-15 15:39 smartd.conf
-rw-r--r--  1 admin administrators  224 2022-01-15 15:39 smart_warning.conf
-rw-r--r--  1 admin administrators 3.9K 2022-01-20 01:22 smb.conf
-rw-r--r--  1 admin administrators   11 2022-01-20 00:39 smb.conf.cksum
-rw-------  1 admin administrators  317 2022-01-19 21:32 smbpasswd
-rwxr-xr-x  1 admin administrators    0 2022-01-15 15:39 smbusers*
-rw-r-----  1 admin administrators  336 2022-01-15 15:39 sms_config.conf
-rwxr-xr-x  1 admin administrators  573 2022-01-15 15:39 sms_provider.xml*
-rw-------  1 admin administrators  120 2022-01-20 01:20 snmpd.conf
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 01:21 sriov/
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 01:22 ssh/
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 ssh_key.fla
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 01:22 ssmtp/
-rw-rw-rw-  1 admin administrators   52 2022-01-20 01:24 staticroute6.conf
-rw-rw-rw-  1 admin administrators   52 2022-01-20 01:24 staticroute.conf
-rw-r--r--  1 admin administrators    1 2022-01-15 15:39 storage.conf
drwxr-xr-x  2 admin administrators 4.0K 2022-01-20 15:50 storage_usage_history/
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 15:39 stunnel/
-rw-r--r--  1 admin administrators  220 2022-01-15 15:39 syslog_server.conf
-rwxr-xr-x  1 admin administrators  635 2022-01-15 15:39 sys_sch.xml*
-rw-r--r--  1 admin administrators   37 2022-01-20 00:05 system.map.key
-rw-r--r--  1 admin administrators 3.3K 2022-01-20 01:40 tls_version.conf
drwxr-xr-x  4 admin administrators 4.0K 2022-01-15 15:39 torrent/
-rw-r--r--  1 admin administrators 2.1K 2022-01-20 01:40 tr_version.conf
-rwxr-xr-x  1 admin administrators    5 2022-01-15 15:39 TZ*
-rw-r--r--  1 admin administrators   28 2022-01-15 15:39 udev.conf
-rw-r--r--  1 admin administrators 7.7K 2022-01-20 12:17 uLinux.conf
-rw-r--r--  1 admin administrators    0 2022-01-20 01:25 upnpc.conf
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 15:39 ups/
-rw-r--r--  1 admin administrators  410 2022-01-15 15:39 ups_snmptrapd.conf
-rw-r--r--  1 admin administrators    0 2022-01-20 01:20 usb_share_mapping
-rw-r--r--  1 admin administrators  456 2022-01-20 01:20 usb_share_setting
-rw-r--r--  1 admin administrators  36K 2022-01-19 21:57 user_group.db
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 user_group.db.old
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 usracl.xml*
-rw-r--r--  1 admin administrators   83 2022-01-20 01:23 usr_quota.conf
drwxr-xr-x  2 admin administrators 4.0K 2022-01-15 15:39 vaultServices/
-rw-r--r--  1 admin administrators   39 2022-01-15 15:39 vcamd.xml
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 view_mgmt.xml*
-rwxr-xr-x  1 admin administrators   39 2022-01-15 15:39 virtual_cam.xml*
-rw-r--r--  1 admin administrators   15 2022-01-15 15:39 virtual_share_mapping
-rw-r--r--  1 admin administrators    0 2022-01-15 15:39 vjbod_cloud_proxy_check
-rw-r--r--  1 admin administrators  528 2022-01-20 03:00 volumeOtherStatus.conf
-rw-r--r--  1 admin administrators  213 2022-01-20 03:00 volumeStatus.conf
-rw-r--r--  1 admin administrators    0 2022-01-15 15:43 vpn.conf
-rw-r--r--  1 admin administrators   12 2022-01-15 15:43 vpn_user_ex.conf
-rw-r--r--  1 admin administrators  242 2022-01-15 15:39 wfm2.conf
-rw-r--r--  1 admin administrators   70 2022-01-20 00:09 _wireless.conf
-rw-r--r--  1 admin administrators   70 2022-01-15 15:39 wlan0_wireless.conf
-rw-r--r--  1 admin administrators   37 2022-01-15 15:39 wsd.conf
drwxr-xr-x  2 admin administrators 4.0K 2022-01-19 20:30 zfsPoolProfilingTool/
The other thing I have noted is that /etc/rcS.d/ contains a bunch of scripts that also get called discretely and I have not yet found anything that loop calls them. However, these all have symlinks to their /etc/init.d/* counterparts.

Listing of /etc/rcS.d/

Code: Select all

QS100LicenseCenter -> /mnt/ext/opt/LicenseCenter/LicenseCenter.sh*
QS101NotificationCenter -> /mnt/ext/opt/NotificationCenter/etc/init.d/nc.sh*
QS102QuLog -> /mnt/ext/opt/QuLog/etc/init.d/qulog.sh*
QS103QcloudSSLCertificate -> /mnt/ext/opt/QcloudSSLCertificate/QcloudSSLCertificate.sh*
QS104ResourceMonitor -> /mnt/ext/opt/ResourceMonitor/qpkg_res.sh*
QS105helpdesk -> /mnt/HDA_ROOT/update_pkg/helpdesk/helpdesk.sh*
QS106netmgr -> /mnt/ext/opt/netmgr/netmgr.sh*
QS107zfsPoolProfilingTool -> /mnt/ext/opt/zfsPoolProfilingTool/zfs_pool_profiling_tool.sh*
QS108PlexMediaServer -> /share/ZFS530_DATA/.qpkg/PlexMediaServer/plex.sh*
QS109container-station -> /share/ZFS530_DATA/.qpkg/container-station/container-station.sh*
QS110HyperDataProtector -> /share/ZFS530_DATA/.qpkg/HyperDataProtector/vmbackup.sh*
QS111MalwareRemover -> /share/ZFS530_DATA/.qpkg/MalwareRemover/MalwareRemover.sh*
QS112SecurityCounselor -> /share/ZFS530_DATA/SecurityCounselor/SecurityCounselor.sh*
QS113boxafe -> /share/ZFS530_DATA/.qpkg/boxafe/boxafe.sh*
QS114Driveanalyzer -> /share/ZFS530_DATA/.qpkg/Driveanalyzer/Driveanalyzer.sh*
QS115QKVM -> /share/ZFS530_DATA/.qpkg/QKVM/qvsd.sh*
QS116DownloadStation -> /share/ZFS530_DATA/.qpkg/DownloadStation//etc/init.d/dsd.sh*
QS117TextEditor -> /share/ZFS530_DATA/.qpkg/TextEditor/qpkg_ds.sh*
S30mountall -> ../init.d/mountall*
S31init_hardware -> ../init.d/init_hardware.sh*
S32init_mac_addr -> ../init.d/init_mac_addr.sh*
S33sysinit -> ../init.d/sysinit.sh*
S34shutdown_check -> ../init.d/shutdown_check.sh*
S35init_disk -> ../init.d/init_disk.sh*
S40init_network -> ../init.d/init_network.sh*
S41root_cert -> ../init.d/root_cert.sh*
S42hostname -> ../init.d/hostname.sh*
S45network -> ../init.d/network.sh*
S45vlan -> ../init.d/vlan.sh
S46iscsiinit -> ../init.d/iscsiinit.sh*
S46iSCSItrgt -> ../init.d/scst_iscsitrgt.sh*
S53qat_setup -> ../init.d/qat_setup.sh*
S54sriov_setup -> ../init.d/sriov_setup.sh*
S55urandom -> ../init.d/urandom*
S56mariadb -> ../init.d/mariadb.sh*
S56start_service -> ../init.d/start_service.sh*
S57init_qpkg -> ../init.d/init_qpkg.sh*
S57ldap -> ../init.d/ldap.sh*
S58dbus -> ../init.d/dbus.sh*
S58nsswitch -> ../init.d/nsswitch.sh*
S59Qthttpd -> ../init.d/Qthttpd.sh*
S60adv_net_drv -> ../init.d/adv_net_drv.sh*
S61mustang100_kernel_drv -> ../init.d/mustang100_kernel_drv.sh*
S61mustang200_host -> ../init.d/mustang200_host.sh*
S61nv_kernel_drv -> ../init.d/nv_kernel_drv.sh*
S62GQ -> ../init.d/GQ.sh
S62ntpd -> ../init.d/ntpf.sh*
S62smb -> ../init.d/smb.sh*
S63enc_share -> ../init.d/enc_share.sh*
S64MediaService -> ../init.d/StartMediaService.sh*
S65btd -> ../init.d/btd.sh
S65thttpd -> ../init.d/thttpd.sh*
S66ImRd -> ../init.d/ImRd.sh*
S66wfm_thttpd -> ../init.d/wfm_thttpd.sh*
S67ftp -> ../init.d/ftp.sh*
S70crond -> ../init.d/crond.sh*
S72logo -> ../init.d/logo.sh*
S73ntpclient -> ../init.d/ntpclient.sh*
S75stunnel -> ../init.d/stunnel.sh*
S77recycled -> ../init.d/recycled.sh*
S78qraid1 -> ../init.d/qraid1.sh*
S82stunnel -> ../init.d/stunnel.sh*
S83ups -> ../init.d/ups.sh*
S84bluetooth -> ../init.d/bluetooth.sh*
S85login -> ../init.d/login.sh*
S89bonjour -> ../init.d/bonjour.sh*
S89wsd -> ../init.d/wsd.sh*
S90twonkymedia -> ../init.d/twonkymedia.sh*
S92lunportman -> ../init.d/lunportman.sh*
S95snmp -> ../init.d/snmp*
S97upnpd -> ../init.d/upnpd.sh*
S98init_nas -> ../init.d/init_nas.sh*
S99atalk -> ../init.d/atalk.sh*
S99cloudinstall_report_complete_daemon -> ../init.d/cloudinstall_report_complete_daemon.sh*
S99init_iTune -> ../init.d/init_iTune.sh
S99mysqld -> ../init.d/mysqld.sh
S99nfs -> ../init.d/nfs*
S99porter -> ../init.d/porter.sh*
S99pp_qcoolie -> ../init.d/pp_qcoolie.sh*
S99qanalytic -> ../init.d/qanalytic_init.sh*
S99qcloud -> ../init.d/qcloud_init.sh*
S99qHAsyncman -> ../init.d/qHAsyncman.sh*
S99qsnapman -> ../init.d/qsnapman.sh*
S99qstorman -> ../init.d/qstorman.sh*
S99reverse_proxy -> ../init.d/reverse_proxy.sh*
S99sdmd.sh -> ../init.d/sdmd.sh*
S99snapsyncd.sh -> ../init.d/snapsyncd.sh*
S99sync_action.sh -> ../init.d/sync_action.sh*
S99thunderbolt.sh -> ../init.d/thunderbolt.sh*
S99z_antivirus -> ../init.d/antivirus.sh*
Listing of /etc/init.d:

Code: Select all

add_cloud_key.sh*
add_cloud_nat_rule.sh*
addshare.sh*
adjust_sync_speed.sh*
ads_register_dns.sh*
adv_net_drv.sh*
antivirus.sh*
atalk.sh*
avahi.sh*
aws_key.sh*
backup_conf.sh*
bluetooth.sh*
bonjour.sh -> avahi.sh*
boot_done.sh*
boxafe.sh -> /share/ZFS530_DATA/.qpkg/boxafe/boxafe.sh*
cacd.sh*
callhome_upload_disk_smart.sh*
callhome_upload_fan.sh*
callhome_upload_psu.sh*
cdrom.sh*
check_bootcmd.sh*
check_ddns_external_ip.sh*
check_fw_update_cs.sh*
check_lan_port.sh*
_check_nss2*
check_nss2*
check_service_noshare_run*
chkcfgpart.sh*
cloudinstall_finish.sh*
cloudinstall_init_daemon.sh*
cloudinstall_init.sh*
cloudinstall_report_complete_daemon.sh*
cloudinstall_report_offline.sh*
container-station.sh -> /share/ZFS530_DATA/.qpkg/container-station/container-station.sh*
convert2_ext4.sh*
create_udev_rule.sh*
crond.sh*
cs_daemon.sh*
cs_fw_verify.sh*
da_iotest.sh*
dbus.sh*
ddns_update_for_cgi.sh*
ddns_update.sh*
disk_data_collection.sh*
drbd*
Driveanalyzer.sh -> /share/ZFS530_DATA/.qpkg/Driveanalyzer/Driveanalyzer.sh*
dsd.sh -> /share/ZFS530_DATA/.qpkg/DownloadStation//etc/init.d/dsd.sh*
dump_all_trct_log.sh*
enc_migrate.sh*
enc_share.sh*
fbdisk.sh*
flush_memory.sh*
force_shutdown.sh*
ftp.sh*
functions*
gen_ext_dev_version_conf.sh*
gen_hd_info.sh*
gen_issue.sh*
genLanglist.sh*
genpowerfail.sh
get_cloud_platform.sh*
get_external_ip.sh*
getmac.sh*
helpdesk.sh -> /mnt/HDA_ROOT/update_pkg/helpdesk/helpdesk.sh*
hostname.sh*
idmap.sh*
ImRd.sh*
init_acl.sh*
init_check.sh*
init_disk.sh*
init_dns_type.sh*
init_final.sh*
init_gpu.sh*
init_hardware.sh*
init_lvm.sh*
init_mac_addr.sh*
init_nas.sh*
init_network.sh*
init_platform.sh*
init_qpkg.sh*
install.sh*
installtgz.sh*
ipchange_notify.sh*
ipmi_check*
ipv6.sh*
irqb.sh*
iscsiinit.sh*
iscsitrgt.sh -> ../init.d/scst_iscsitrgt.sh*
iso_mount.sh*
kdebug.sh*
killnas.sh*
klogd.sh*
lan_card_test.sh*
ldap_backup_db.sh -> /mnt/ext/opt/ldap_server/etc/init.d/ldap_backup_db.sh*
ldap_server.sh*
ldap.sh*
LicenseCenter.sh -> /mnt/ext/opt/LicenseCenter/LicenseCenter.sh*
load_crypt_module.sh*
load_lan_module.sh*
login.sh*
logo.sh*
log_rotation.sh*
lunportman.sh*
malware_remover.sh*
MalwareRemover.sh -> /share/ZFS530_DATA/.qpkg/MalwareRemover/MalwareRemover.sh*
mariadb.sh*
miroking_qpkg_install.sh*
mkchangepwd.sh*
mountall*
mtp_run_hal.sh*
mtp_run.sh -> /mnt/ext/opt/mtpBinary/etc/init.d/mtp_run.sh*
mustang100_kernel_drv.sh*
mustang200_host.sh*
nc.sh -> /mnt/ext/opt/NotificationCenter/etc/init.d/nc.sh*
net_event_setup.sh*
netmgr.sh -> /mnt/ext/opt/netmgr/netmgr.sh*
network.sh*
network.sh_hwtest*
nfs*
noshareservices.sh*
nsed.sh*
nss2_dusg.sh*
nsswitch.sh*
ntpclient.sh*
ntpd.sh*
ntpf.sh*
nv_kernel_drv.sh*
nvrd.sh*
nvrd.sh_bak*
nvr_svc.sh*
openssl_signature.sh*
opentftp.sh*
oray-updater.sh*
ovs.sh*
pd_attach*
pd_detach*
photo_scand.sh*
plex.sh -> /share/ZFS530_DATA/.qpkg/PlexMediaServer/plex.sh*
polling_trct_tbt.sh*
porter.sh*
power_button.sh*
poweroff*
pp_qcoolie.sh*
push_notification_daemon.sh*
pw_sleep.sh*
qaccess.sh*
qanalytic_init.sh*
qat_service*
qat_service_vfs*
qat_setup.sh*
qbutton.sh*
qcloud_blob_daemon.sh*
qcloud_check*
qcloud_init.sh*
QcloudSSLCertificate.sh -> /mnt/ext/opt/QcloudSSLCertificate/QcloudSSLCertificate.sh*
qdff_mount.sh*
qHAsyncman.sh*
qm2_nic.sh*
QMediaService.sh*
qnetlog_backup.sh*
qnetlog_check.sh*
qpkg_ds.sh -> /share/ZFS530_DATA/.qpkg/TextEditor/qpkg_ds.sh*
qpkg_res.sh -> /mnt/ext/opt/ResourceMonitor/qpkg_res.sh*
qplayd.sh*
qraid1.sh*
qsnapman.sh*
qstorman.sh*
qsyncsrv_install.sh*
qtag.sh*
Qthttpd.sh*
qts_notice.sh*
qulog.sh -> /mnt/ext/opt/QuLog/etc/init.d/qulog.sh*
qunetswitch.sh*
qvsd.sh -> /share/ZFS530_DATA/.qpkg/QKVM/qvsd.sh*
radius.sh*
radvd.sh*
rcK*
rcS*
rcS_normal*
rcv_port.sh*
reboot*
recoverd.sh*
recycled.sh*
refresh_internet_status.sh*
refresh_nvr_crontab.sh*
reset_all.sh*
reset_sata.sh*
reverse_proxy.sh*
rfsd.sh*
root_cert.sh*
rsyncd.sh*
rsyncd_srv.sh*
rsyncRR.sh*
rsyncSpeedTest.sh*
rsyslog.sh*
runone.sh*
s3_callback.sh*
scan_wifi_ups.sh*
scst_iscsitrgt.sh*
sdmd.sh*
SecurityCounselor.sh -> /share/ZFS530_DATA/SecurityCounselor/SecurityCounselor.sh*
selfhost-updater.sh*
services.sh*
set_led.sh*
set_mtu.sh*
shutdown_check.sh*
skylink-updater.sh*
smb2_protocol.sh*
smb.sh*
smp_affinity.sh*
snapshot.sh*
snapsyncd.sh*
snmp*
snmp_ups.sh*
sriov_setup.sh*
StartMediaService.sh*
start_service.sh*
startup*
storage_usage.sh*
stunnel.sh*
sync_action.sh*
sysinit.sh*
tfan_auto_testing.sh*
thttpd.sh*
thunderbolt_net.sh*
thunderbolt.sh*
timechange_notify.sh*
timemachine.sh*
tr-autoipd-network_eth1.sh*
tr-autoipd-network.sh*
tr-cable_power_event.sh*
tr-hal-init_check.sh*
tr-hal-mountall*
tr-init_final.sh*
tr-init_final.sh.orig*
tr-init_hardware.sh*
tr-init_nas.sh*
tr-network.sh*
tr-network.sh_hwtest*
tr-rescan-scsi-bus.sh*
tr-sysinit.sh*
twonkymedia.sh*
udev_run.sh*
unit_test.sh*
updatedb.sh*
update_def_share.sh*
update_img.sh*
update_power.sh*
update.sh*
update_sr_img.sh*
update_tl_d1600s_img.sh*
update_tl_d400s_img.sh*
update_tl_d800c_img.sh*
update_tl_d800s_img.sh*
update_tl_r1200c_img.sh*
update_tl_r1200s_img.sh*
update_tl_r400s_img.sh*
update_tl_rxx20s.sh*
update_tr_002_img.sh*
update_tr_004u_img.sh*
update_tr_img.sh*
upnpd.sh*
ups.sh*
urandom*
usb_device_check.sh*
usb_ups.sh*
vmbackup.sh -> /share/ZFS530_DATA/.qpkg/HyperDataProtector/vmbackup.sh*
wait_RR*
wait_wifi_pcie_ready.sh*
wfm_thttpd.sh*
winbind*
wireless_detect.sh*
wireless_modules.sh*
wireless.sh*
wsd.sh*
zfs_pool_profiling_tool.sh -> /mnt/ext/opt/zfsPoolProfilingTool/zfs_pool_profiling_tool.sh*
I would attach all of the files mentioned above, but I am not sure if they have anything specific to my system in them. I am willing to share them with you privately if you would like to have them for analysis. Just let me know.
You do not have the required permissions to view the files attached to this post.
User avatar
OneCD
Guru
Posts: 12146
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] create-autorun.sh

Post by OneCD »

ktuimala wrote: Fri Jan 21, 2022 3:47 am

Code: Select all

/dev/sdi5: UUID="9015507c-d233-41e0-8480-0fe81ff64be2" TYPE="ext2"
OK, based on a quick comparison with my QTS system (and an assumption QNAP are not using an entirely new method of storing [autorun.sh]), I think this device is the most likely candidate.

The partition containing [autorun.sh] is not mounted (by-design), and so must be first mounted before we can see within it.

Can you please try mounting this block device and listing the contents? (You may need to 'sudo' these commands in QuTS):

Code: Select all

mkdir /tmp/test.part
mount -t ext2 /dev/sdi5 /tmp/test.part
ll /tmp/test.part
... and when you're done:

Code: Select all

umount /tmp/test.part
In QTS, we would expect to see the following (this NAS has already run the [create-autorun.sh] script):

Code: Select all

[/] # ll /tmp/test.part
total 48K
drwxr-xr-x  3 admin administrators 4.0K 2022-01-21 10:14 ./
drwxrwxrwx 15 admin administrators 2.0K 2022-01-21 10:20 ../
lrwxrwxrwx  1 admin administrators   48 2022-01-21 10:14 autorun.sh -> /share/CACHEDEV1_DATA/.system/autorun/autorun.sh*
drwx------  2 admin administrators  16K 2009-08-25 16:29 lost+found/
-rw-r--r--  1 admin administrators 4.5K 2021-11-27 12:21 smb.conf
-rw-r--r--  1 admin administrators   11 2021-11-27 12:21 smb.conf.cksum
-rw-r--r--  1 admin administrators   37 2020-12-08 14:58 system.map.key
-rw-r--r--  1 admin administrators 8.9K 2022-01-15 10:31 uLinux.conf

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
User avatar
OneCD
Guru
Posts: 12146
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] create-autorun.sh

Post by OneCD »

ktuimala wrote: Fri Jan 21, 2022 2:28 am Another thing to note, QNAP does intend for a user to be able to use autorun.sh because they supply a checkbox for it in Control Panel -> System -> Hardware -> "Run user defined process during startup". They even give you a preview of an empty file you can copy to your clipboard. The problem is, they don't tell you where the file is or how to create it; not even in the online help. No surprise... It is a useless option at this point.
Yup. If QNAP ever get this working correctly, they'll make [autorun.sh] editable via the QTS UI. Which means this script will be obsolete. :DD

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
ktuimala
Starting out
Posts: 23
Joined: Thu Jan 20, 2022 2:46 pm

Re: [SCRIPT] create-autorun.sh

Post by ktuimala »

/dev/sdi5 is mounted to /mnt/boot_config/ already.

Code: Select all

$ mount | grep sdi5
/dev/sdi5 on /mnt/boot_config type ext2 (rw)
/dev/sdi5 on /tmp/test.part type ext2 (rw)
Here is it's contents:

Code: Select all

$ ll /tmp/test.part
total 14K
drwxr-xr-x  4 admin administrators 1.0K 2022-01-15 15:34 ./
drwxr-xr-x 18 admin administrators  400 2022-01-20 01:45 ../
drwx------  2 admin administrators  12K 2018-06-27 03:06 lost+found/
drwxr-xr-x  2 admin administrators 1.0K 2022-01-19 13:51 qlicense/
I will add an autorun.sh to this directory and see what happens. Be back shortly.

Let me know if you want any of those other files I listed in the previous post.
User avatar
OneCD
Guru
Posts: 12146
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [SCRIPT] create-autorun.sh

Post by OneCD »

Can you please try mounting the 6th partition on sdi instead? And after that, the 7th?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
Post Reply

Return to “Users' Corner”