NSA325v2 can't install Packages, claims drive Full

Kamsvag
Kamsvag Posts: 5  Freshman Member
edited December 2017 in Personal Cloud Storage
So I can't install packages, even though I just cleared all my storage. It also claims my storage is full if I logon as regular user.




#NAS_November

All Replies

  • Mijzelf
    Mijzelf Posts: 2,401
    250 Answers 1000 Comments Friend Collector Fifth Anniversary
     Guru Member
    edited November 2017
    I think the /etc/zyxel/storage/sysvol symlink is damaged. Can you open the Telnet backdoor, login over telnet (on Windows you can use PuTTY for that), and post the output of

    ls -l /etc/zyxel/storage/sysvol
    <br>cat /proc/mounts
  • Kamsvag
    Kamsvag Posts: 5  Freshman Member
    Ok, so I've factory restored since last post, still same issue. Here's the output as requested.
    I realy appreciate you taking the time looking through the output.


    ----------------------------------------------------------------------------------------
    BusyBox v1.17.2 (2016-01-26 18:21:04 CST) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    ~ # ls -l /etc/zyxel/storage/sysvol
    lrwxrwxrwx    1 admin    everyone        16 Feb 12  2017 2107bd4d -> /i-data/2107bd4d
    drwxrwxrwx    1 root     root          2048 Nov 30 15:00 admin
    drwxrwxrwx    1 root     root          2048 Nov 30 15:00 music
    drwxrwxrwx    1 root     root          2048 Nov 30 15:00 photo
    drwxrwxrwx    1 root     root          2048 Nov 30 15:02 public
    drwxrwxrwx    1 root     root          2048 Nov 30 15:00 video
    ~ # cat /proc/mounts
    rootfs / rootfs rw 0 0
    /proc /proc proc rw,relatime 0 0
    /sys /sys sysfs rw,relatime 0 0
    none /proc/bus/usb usbfs rw,relatime 0 0
    devpts /dev/pts devpts rw,relatime,mode=600 0 0
    /dev/mtdblock8 /zyxel/mnt/nand yaffs2 ro,relatime 0 0
    /dev/sda1 /zyxel/mnt/sysdisk ext2 ro,relatime,errors=continue 0 0
    /dev/loop0 /ram_bin ext2 ro,relatime,errors=continue 0 0
    /dev/loop0 /usr ext2 ro,relatime,errors=continue 0 0
    /dev/loop0 /lib/security ext2 ro,relatime,errors=continue 0 0
    /dev/loop0 /lib/modules ext2 ro,relatime,errors=continue 0 0
    /dev/ram0 /tmp/tmpfs tmpfs rw,relatime,size=5120k 0 0
    /dev/ram0 /usr/local/etc tmpfs rw,relatime,size=5120k 0 0
    /dev/ram0 /usr/local/var tmpfs rw,relatime,size=5120k 0 0
    /dev/mtdblock4 /etc/zyxel yaffs2 rw,relatime 0 0
    /dev/mtdblock4 /usr/local/apache/web_framework/data/cache yaffs2 rw,relatime 0 0
    /dev/mtdblock4 /usr/local/apache/web_framework/data/config yaffs2 rw,relatime 0 0
    /dev/md0 /i-data/44fed8aa ext4 rw,relatime,barrier=0,data=writeback,usrquota 0 0
    /dev/mtdblock4 /usr/local/apache/htdocs/adv,/res/imdb_poster yaffs2 rw,relatime 0 0
    /dev/mtdblock4 /usr/local/zy-pkgs yaffs2 rw,relatime 0 0
    /dev/mtdblock4 /etc/zyxel/zy-pkgs yaffs2 rw,relatime 0 0
    /dev/mtdblock4 /usr/local/apache/htdocs/adv,/pkg yaffs2 rw,relatime 0 0
    ~ #
    ----------------------------------------------------------------------------------------

  • Mijzelf
    Mijzelf Posts: 2,401
    250 Answers 1000 Comments Friend Collector Fifth Anniversary
     Guru Member
    Right. The symlink points to a not mounted (and maybe not existing?) volume. Don't know how you managed to get that. Did you move an existing volume in another box, or did you delete your volume and create a new?

    Anyway, the symlink points to /i-data/2107bd4d, while /proc/mounts says that should be /i-data/44fed8aa.

    You can repair that by
    rm /etc/zyxel/storage/sysvol<br>ln -s /i-data/44fed8aa /etc/zyxel/storage/sysvol<br>reboot<br>

  • Kamsvag
    Kamsvag Posts: 5  Freshman Member
    Ok, so I did as you wrote. Still same issue though...


    --------------------------------------------------------------------------------------------------
    ~ # ls -l /etc/zyxel/storage/sysvol
    lrwxrwxrwx    1 root     root            16 Dec  1  2017 44fed8aa -> /i-data/44f                                                                                                                                                             ed8aa
    drwxrwxrwx    1 root     root          2048 Dec  1  2017 admin
    drwxrwxrwx    1 root     root          2048 Dec  1  2017 music
    drwxrwxrwx    1 root     root          2048 Dec  1  2017 photo
    drwxrwxrwx    1 root     root          2048 Dec  1  2017 public
    drwxrwxrwx    1 root     root          2048 Dec  1  2017 video
    ~ # cat /proc/mounts
    rootfs / rootfs rw 0 0
    /proc /proc proc rw,relatime 0 0
    /sys /sys sysfs rw,relatime 0 0
    none /proc/bus/usb usbfs rw,relatime 0 0
    devpts /dev/pts devpts rw,relatime,mode=600 0 0
    /dev/mtdblock8 /zyxel/mnt/nand yaffs2 ro,relatime 0 0
    /dev/sda1 /zyxel/mnt/sysdisk ext2 ro,relatime,errors=continue 0 0
    /dev/loop0 /ram_bin ext2 ro,relatime,errors=continue 0 0
    /dev/loop0 /usr ext2 ro,relatime,errors=continue 0 0
    /dev/loop0 /lib/security ext2 ro,relatime,errors=continue 0 0
    /dev/loop0 /lib/modules ext2 ro,relatime,errors=continue 0 0
    /dev/ram0 /tmp/tmpfs tmpfs rw,relatime,size=5120k 0 0
    /dev/ram0 /usr/local/etc tmpfs rw,relatime,size=5120k 0 0
    /dev/ram0 /usr/local/var tmpfs rw,relatime,size=5120k 0 0
    /dev/mtdblock4 /etc/zyxel yaffs2 rw,relatime 0 0
    /dev/md0 /i-data/44fed8aa ext4 rw,noatime,barrier=0,data=writeback,usrquota 0 0
    /dev/mtdblock4 /usr/local/zy-pkgs yaffs2 rw,relatime 0 0
    /dev/mtdblock4 /etc/zyxel/zy-pkgs yaffs2 rw,relatime 0 0
    /dev/mtdblock4 /usr/local/apache/htdocs/adv,/pkg yaffs2 rw,relatime 0 0
    /dev/mtdblock4 /usr/local/apache/web_framework/data/cache yaffs2 rw,relatime 0 0
    /dev/mtdblock4 /usr/local/apache/web_framework/data/config yaffs2 rw,relatime 0                                                                                                                                                              0
    --------------------------------------------------------------------------------------------------


  • Kamsvag
    Kamsvag Posts: 5  Freshman Member
    /etc/zyxel/storage/sysvol $ ls -a
    .         .media    44fed8aa  music     public
    ..        .system   admin     photo     video
    /etc/zyxel/storage/sysvol $

    Seems as .zyxel is missing according to a forum. I'm trying upgrading firmware to see if it will recreate the folder.
  • Mijzelf
    Mijzelf Posts: 2,401
    250 Answers 1000 Comments Friend Collector Fifth Anniversary
     Guru Member
    I don't have a .zyxel there either. But I do have one in /i-data:
    <div>root@NSA325:~# ls -la /i-data/</div><div>drwxrwxrwx&nbsp; &nbsp; 4 root&nbsp; &nbsp; &nbsp;root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 Jun 24 10:04 .</div><div>drwxr-xr-x&nbsp; &nbsp;19 root&nbsp; &nbsp; &nbsp;root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 Nov 30 17:47 ..</div><div>lrwxrwxrwx&nbsp; &nbsp; 1 root&nbsp; &nbsp; &nbsp;root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 19 Nov 30 17:47 .system -> /i-data/md0/.system</div><div>lrwxrwxrwx&nbsp; &nbsp; 1 root&nbsp; &nbsp; &nbsp;root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 19 Nov 30 17:47 .zyxel -> /i-data/md0/.system</div><div>drwxrwxrwx&nbsp; &nbsp;41 root&nbsp; &nbsp; &nbsp;root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4096 Nov 30 18:16 3a22b091</div><div>drwxrwxrwx&nbsp; &nbsp;18 root&nbsp; &nbsp; &nbsp;root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4096 Mar 21&nbsp; 2015 7295626c</div><div>lrwxrwxrwx&nbsp; &nbsp; 1 root&nbsp; &nbsp; &nbsp;root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 25 Nov 30 17:46 md0 -> /etc/zyxel/storage/sysvol</div><div>lrwxrwxrwx&nbsp; &nbsp; 1 root&nbsp; &nbsp; &nbsp;root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 16 Nov 30 17:46 md1 -> /i-data/7295626c</div><div></div>
    The problem is, /i-data is a ramdrive, and so creating anything here won't survive a reboot.

    Looking at your mounts I see another problem:
    <div>/dev/mtdblock4 /usr/local/zy-pkgs yaffs2 rw,relatime 0 0</div><div>/dev/mtdblock4 /etc/zyxel/zy-pkgs yaffs2 rw,relatime 0 0</div><div>/dev/mtdblock4 /usr/local/apache/htdocs/adv,/pkg yaffs2 rw,relatime 0 0</div><div>/dev/mtdblock4 /usr/local/apache/web_framework/data/cache yaffs2 rw,relatime 0 0</div><div>/dev/mtdblock4 /usr/local/apache/web_framework/data/config yaffs2 rw,relatime 0 0</div>
    This certainly shouldn't  be /dev/mtdblock4. That is a (small!) flash partition.

    Can you post the output of 
    ls -la /etc/zyxel/storage/
  • Mijzelf
    Mijzelf Posts: 2,401
    250 Answers 1000 Comments Friend Collector Fifth Anniversary
     Guru Member
    I don't dare to edit previous post. Something went wrong with the code tags. I wonder where ZyXEL found this platform. It's a bit, well, unpredictable.
  • Kamsvag
    Kamsvag Posts: 5  Freshman Member
    So I removed the .system folder and then I did a looong reset. It took some time for the NAS to reboot, I had to use the NAS Discovery tool and use the installation wizard but now it works.

    I wouldn't use this NAS as a primary NAS ever again, it's simply going to be a storage device to serve as backup for my Synology NAS.
  • Fredzoul1
    Fredzoul1 Posts: 97  Ally Member
    @Kamsvag
    I understand you, but I was in the same situation and I was very angry and frustrated with Zyxel in the past, and after I test Syno and Qnap. Syno and Qnap are good but not the bests, and Zyxel is not the worst. After many tests, problem solved or not with all manufacturer.
    I think Zyxel has its advantages, it is not a gas plant and works easily with great stability, it is for me its strong point, great stability when it is never restarted !!! You can use it as you wish, but never forget that they all have flaws and advantages :-)

Consumer Product Help Center