General NAS-Central Forums

Welcome to the NAS community
It is currently Tue Dec 12, 2017 6:07 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Fri Jul 07, 2017 3:21 pm 
Offline

Joined: Fri Jan 20, 2012 1:55 pm
Posts: 95
Hi All,

I have a strainge issue.

I have a new NAS326. Installed ffp stick. Can login, /ffp is available. Just disabled telnet and enabled ssh.

After reboot on ffp stick /ffp is not available anymore.

Can use ssh. But couple of homemade scripts (copy from my NSA320) will not work on this device.
Lot of commands, normally from ffp do not work either.

How to solve ?

@Mijzelf,
If needed, the nas is not yet in use, so if you have anything to check/test on this device.......






Code:
/ # more /e-data/151526ff2e1acf12cead711f36c792c9/ffpboot.log
Rotating logfiles...
Script fun_plug.sh version 20151012 running from /mnt/partnerkey
ffpstick started at Fri Jul 7 14:10:32 UTC 2017
Try to determine NAS type...
according to /firmware/mnt/info/modelid: B303->Unknown
according to uname -r: 3.10.39->Unknown-B303
type Unknown-B303, fw V5.21(AAZF.1)
Find the current usb device...usb device is /dev/sdb1 on device /dev/sdb
Check for filesystem...Filesystem is vfat
Check /dev/sdb for number of partitions.../dev/sdb has 1 partitions
Will have to repartition
Copy files to ramdisk...
Copied usb_key_func.sh nsa210_check_file md5sum nsa220_check_file NSA221_check_file salted_md5sum.Zy_Private nsa310_check_file_C0 salted_md5sum.libzy.so STG100_check_file STG211_check_file STG212_check_file nas5xx_check_file salted_md5sum.libzy.so.5xx after_booting.sh rootfs.tgz fun_plug.sh
Script fun_plug.sh version 20151012 running from /tmp/.ffpstick
Repartition /dev/sdb
unmount /mnt/partnerkey...done
Repartitioning...

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Created a new DOS disklabel with disk identifier 0x3c4113d9.

Command (m for help): Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-1980415, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-1980415, default 1980415):
Created a new partition 1 of type 'Linux' and of size 16 MiB.

Command (m for help): Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (34816-1980415, default 34816): Last sector, +sectors or +size{K,M,G,T,P} (34816-1980415, default 1980415):
Created a new partition 2 of type 'Linux' and of size 950 MiB.

Command (m for help): Partition number (1,2, default 2): Hex code (type L to list all codes):
If you have created or modified any DOS 6.x partitions, please see the fdisk documentation for additional information.
Changed type of partition 'Linux' to 'FAT16 <32M'.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

Done. Creating and mounting filesystems...
Create ext3 filesystem on /dev/sdb2 and mount...
/tmp/.ffpstick/fun_plug.sh: line 909: mke2fs: not found
Cannot use the build-in mke2fs. Trying my own...
Filesystem label=FFPROOT
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
60800 inodes, 243200 blocks
12160 blocks (5%) reserved for the super user
First data block=0
Maximum filesystem blocks=4194304
8 block groups
32768 blocks per group, 32768 fragments per group
7600 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376
Mount /dev/sdb2 on /mnt/partnerkey type ext3...mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

Couldn't mount /dev/sdb2 on /mnt/partnerkey. Will retry in 3 seconds...mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

Couldn't mount /dev/sdb2 on /mnt/partnerkey. Will retry in 3 seconds...mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

Couldn't mount /dev/sdb2 on /mnt/partnerkey. Will retry in 3 seconds...mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

Couldn't mount /dev/sdb2 on /mnt/partnerkey. Will retry in 3 seconds...mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

Couldn't mount /dev/sdb2 on /mnt/partnerkey. Will retry in 3 seconds...mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

giving up
Mount /dev/sdb2 on /mnt/partnerkey type ext2...done
Move files to ext3 partition...after_booting.sh...rootfs.tgz...done
Create dummy symlinks...done
Unmount /dev/sdb2...done
Create FAT filesystem on /dev/sdb1 and mount.../tmp/.ffpstick/fun_plug.sh: line 909: mkdosfs: not found
Couldn\'t use the build-in mkdosfs, trying my own...Mount /dev/sdb1 on /mnt/partnerkey type vfat...done
Move files to vfat partition...usb_key_func.sh...nsa210_check_file...md5sum...nsa220_check_file...NSA221_check_file...salted_md5sum.Zy_Private...nsa310_check_file_C0...salted_md5sum.libzy.so...STG100_check_file...STG211_check_file...STG212_check_file...nas5xx_check_file...salted_md5sum.libzy.so.5xx...fun_plug.sh...done
...And calling the script on stick again...
Script fun_plug.sh version 20151012 running from /mnt/partnerkey
ffpstick started at Fri Jul 7 14:11:05 UTC 2017
Try to determine NAS type...
according to /firmware/mnt/info/modelid: B303->Unknown
according to uname -r: 3.10.39->Unknown-B303
type Unknown-B303, fw V5.21(AAZF.1)
Find the current usb device...usb device is /dev/sdb1 on device /dev/sdb
Copy myself to /tmp...And execute...
/tmp/.ffpstick/fun_plug.sh BackgroundPolling -d /dev/sdb -n Unknown-B303 -f "V5.21(AAZF.1)" -r no -l &
Script fun_plug.sh version 20151012 running from /tmp/.ffpstick
Wait for the stick to be mounted again by the firmware...
Probe all mount points 0 seconds...
probe /dev/pts...
probe /firmware/mnt/nand...
probe /firmware/mnt/sysdisk...
probe /lib/security...
probe /lib/modules...
probe /lib/locale...
probe /tmp/tmpfs...
probe /usr/local/etc...
probe /etc/zyxel...
probe /i-data/2b8cad84...
probe /mnt/vg_info_area/vg_b8673f22...
probe /usr/local/apache/htdocs/desktop,/pkg...
No /anymountpoint/ffproot/after_booting.sh found
Probe all mount points 10 seconds...
probe /dev/pts...
probe /firmware/mnt/nand...
probe /firmware/mnt/sysdisk...
probe /lib/security...
probe /lib/modules...
probe /lib/locale...
probe /tmp/tmpfs...
probe /usr/local/etc...
probe /etc/zyxel...
probe /i-data/2b8cad84...
probe /mnt/vg_info_area/vg_b8673f22...
probe /usr/local/apache/htdocs/desktop,/pkg...
probe /e-data/151526ff2e1acf12cead711f36c792c9...
found ffpstick on /e-data/151526ff2e1acf12cead711f36c792c9, moving logfile
probe /sys/kernel/config...
No /anymountpoint/ffproot/after_booting.sh found
Probe all mount points 20 seconds...
probe /dev/pts...
probe /firmware/mnt/nand...
probe /firmware/mnt/sysdisk...
probe /lib/security...
probe /lib/modules...
probe /lib/locale...
probe /tmp/tmpfs...
probe /usr/local/etc...
probe /etc/zyxel...
probe /i-data/2b8cad84...
probe /mnt/vg_info_area/vg_b8673f22...
probe /usr/local/apache/htdocs/desktop,/pkg...
probe /e-data/151526ff2e1acf12cead711f36c792c9...
probe /sys/kernel/config...
probe /e-data/0c2d53b893543700140a2bba6b8aba55...
found ffproot on /e-data/0c2d53b893543700140a2bba6b8aba55/ffproot
Starting /e-data/0c2d53b893543700140a2bba6b8aba55/ffproot/after_booting.sh version 20151012 at Fri Jul 7 16:11:56 CEST 2017...
Extract rootfs.tgz...Done
Which FFP version to use?
Is OABI supported?...yes. Is EABI supported?...yes, choosing FFP 0.7/arm
Will try to download fun_plug.tgz (version 0.7/arm)
http://ffp.inreto.de/ffp/0.7/arm/fun_plug.tgz
If the script stops here, downloading the tarball from ffp.inreto.de failed.
You can try to get internet access for the Unknown-B303,
or copy fun_plug.tgz (case sensitive!) to the share containing ffproot.
It should be recognized and installed.
It is possible that you have to reboot the box before this share shows up.
ping ffp.inreto.de...
ffp.inreto.de found. Downloading fun_plug.tgz...
pwd /e-data/0c2d53b893543700140a2bba6b8aba55/ffproot/ffp
fun_plug.tgz is downloaded
Delete some DNS-323 specific stuff...done
Try to create a /ffp symlink...done
To chroot or not to chroot...FFP 0.7/arm, no
Change root shell
Change admin shell
Generate helper file 1 /tmp/.ffpstick/helper.inc...done
Generate helper file 2 /tmp/.ffpstick/helper.inc...done
Generate convenience symlink /mnt/HD_a2
exec /ffp/etc/rc
* /ffp/start/SERVERS.sh inactive
* /ffp/start/portmap.sh inactive
* /ffp/start/nfsd.sh inactive
* /ffp/start/LOGIN.sh inactive
* /ffp/start/telnetd.sh ...
WARNING: telnetd: Already running
* /ffp/start/sshd.sh inactive
* /ffp/start/rsyncd.sh inactive
* /ffp/start/kickwebs.sh inactive
* /ffp/start/lighttpd.sh inactive
* /ffp/start/inetd.sh inactive
* /ffp/start/fp_master.sh inactive
/ #

_________________
NSA320 FW V4.70(AFO.3) Entware-ng (previous FFP 0.7 on usb )
NAS326 with Entware-ng
Bunch of USB 2 & 3 external disks connected to nas.


Top
 Profile  
 
PostPosted: Fri Jul 07, 2017 5:47 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6086
JDD wrote:
Script fun_plug.sh version 20151012 running from /mnt/partnerkey

That's a known (to me) bug, and it is solved in FFPStick-2016-09-24.zip. Basically fun_plug.sh does not preserve nas3xx_check_file when repartitioning. You can extract the file from your zipfile, and put it on the FAT partition. The stick should work again.

But. It seems the 326 and FFP is a bad combination. Somehow having FFP installed kills the webinterface. Don't know how, as FFP without any running daemons should be pretty harmless. Entware-ng doesn't have this issue.
(Simply pullling the stick is enough to get the webinterface again. The FFP zypkg is a bit worse, here.)


Top
 Profile  
 
PostPosted: Fri Jul 07, 2017 9:22 pm 
Offline

Joined: Fri Jan 20, 2012 1:55 pm
Posts: 95
I will try the FFPStick-2016-09-24.zip first. (Entware can be tested later).

FYI the Zyxel-webinterface is still working. All functionality looks fine.

Maybe it will be restarted somehow after the ffp- scripts have been executed.

_________________
NSA320 FW V4.70(AFO.3) Entware-ng (previous FFP 0.7 on usb )
NAS326 with Entware-ng
Bunch of USB 2 & 3 external disks connected to nas.


Top
 Profile  
 
PostPosted: Fri Jul 07, 2017 9:48 pm 
Offline

Joined: Fri Jan 20, 2012 1:55 pm
Posts: 95
It works with the 2016-09-24 version.

Also the webinterface is working.

Thanks Mijzelf.

The 326 will first be used as play-device, to test several options. (ffp entware, other things).
If you have still open points for 326, it can be tested too.


Starting on the MetaRepository, don't know how this will behave in the newly webinterface from Zyxel.
But will see.

_________________
NSA320 FW V4.70(AFO.3) Entware-ng (previous FFP 0.7 on usb )
NAS326 with Entware-ng
Bunch of USB 2 & 3 external disks connected to nas.


Top
 Profile  
 
PostPosted: Sat Jul 08, 2017 5:17 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6086
I don't have any open points on the 326, AFAIK, only the FFP/webinterface problem. So if you can reproduce that, I'd like to investigate that. You didn't see it so far, of course it's possible that it has been solved in firmware 5.21 (I guess you are running that?).


Top
 Profile  
 
PostPosted: Sun Jul 09, 2017 8:20 pm 
Offline

Joined: Fri Jan 20, 2012 1:55 pm
Posts: 95
Hi Mijzelf,
I have:
Model Name NAS326
Current firmware version V5.21(AAZF.1)

So probably the issue is solved in this FW.

Do you want some info from this nas, bootlog or so ?

_________________
NSA320 FW V4.70(AFO.3) Entware-ng (previous FFP 0.7 on usb )
NAS326 with Entware-ng
Bunch of USB 2 & 3 external disks connected to nas.


Top
 Profile  
 
PostPosted: Tue Jul 11, 2017 10:56 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6086
JDD wrote:
Do you want some info from this nas, bootlog or so ?
Feel free to expand the Wiki.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 99 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group