Welcome! Log In Create A New Profile

Advanced

[Zyxel NAS326] Debian MVEBU - missing one HDD

Posted by NeedMoreCoffee 
[Zyxel NAS326] Debian MVEBU - missing one HDD
April 11, 2020 08:44PM
I just got Debian running on my NAS326. I'm using the rootfs 5.2.9 with kernel 5.5.3 (both from here).

Everything seems to work fine, with one exception. I seem to be missing a hard drive. I have two identical drives installed in the bays, and the stock firmware shows both of them. Both in the GUI and on the command prompt (/dev/sda and /dev/sdb).

However, the Debian system only shows one disk as /dev/sda, my flash drive as /dev/sdc, and a bunch of NAND stuff. But there is no /dev/sdb, and the HDD seems to be invisible.

I've tried zeroing both HDDs completely in my PC (in case some weird non-standard RAID stuff from the original firmware was causing issues) but it doesn't change the result.

Looking at the output of dmesg (see attachment), it seems to detect both drives initially. But then it just prints: "ata_id[3338]: unable to open '/dev/sdb'". And I can't figure out why. Since the stock OS finds both drives, I assume it can't be a bad connection or drive defect. But what could it be?



Edited 1 time(s). Last edit at 04/11/2020 08:45PM by NeedMoreCoffee.
Attachments:
open | download - dmesg.txt (23.7 KB)
Re: [Zyxel NAS326] Debian MVEBU - missing one HDD
April 11, 2020 09:13PM
NeedMoreCoffee,

I might have missed a patch for this box. Let me check and come back.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: [Zyxel NAS326] Debian MVEBU - missing one HDD
April 11, 2020 09:28PM
NeedMoreCoffee,

Duh :) I've missed the patch for this box. Here attached is the new DTB: armada-380-zyxel-nas326.dtb

Download the new DTB to /tmp and replace the current DTB with it.

cd /boot/dts
cp -a armada-380-zyxel-nas326.dtb armada-380-zyxel-nas326.dtb.orig
cp -a /tmp/armada-380-zyxel-nas326.dtb .
sync

And then reboot. Please report back here if you see 2 HDDs again.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-380-zyxel-nas326.dtb (19 KB)
Re: [Zyxel NAS326] Debian MVEBU - missing one HDD
April 12, 2020 07:25AM
Hello bodhi!

Yes, that seems to fix it. Of course, I also had to rebuild the uImage according to the instructions, since the DTB file is baked into that. But after that, I now have my two drives:

# inxi -D
Drives:
  Local Storage: total: 3.65 TiB used: 1.30 GiB (0.0%) 
  ID-1: /dev/sda vendor: Seagate model: ST2000VX000-1ES164 size: 1.82 TiB 
  ID-2: /dev/sdb vendor: Seagate model: ST2000VX000-1ES164 size: 1.82 TiB 
  ID-3: /dev/sdc type: USB vendor: SanDisk model: Ultra Fit size: 14.32 GiB

Thanks for your help, and your work on this project in general!



Edited 1 time(s). Last edit at 04/12/2020 09:37AM by NeedMoreCoffee.
Re: [Zyxel NAS326] Debian MVEBU - missing one HDD
April 12, 2020 05:16PM
NeedMoreCoffee,

> Yes, that seems to fix it. Of course, I also had
> to rebuild the uImage according to the
> instructions, since the DTB file is baked into
> that. But after that, I now have my two drives:

Cool! I forgot that we have started using appended DTB for this box, too :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: