How to reinstall my Zyxel NAS326

Options
rosu
rosu Posts: 5
First Comment
edited March 4 in Personal Cloud Storage

Hello there,

I am looking for a way to reinstall (not factory reset the settings but full reinstall my NAS326). How could I achieve that?

Best

All Replies

  • suisei
    suisei Posts: 77  Ally Member
    10 Comments Friend Collector First Answer
    Options

    Could you clarify the purpose you'd like to pursue instead?

  • rosu
    rosu Posts: 5
    First Comment
    Options

    Yes. My last files upload resulted in some files uploaded but with 0 MB size.

    I've entered the menu and one of the disks was listed a degraded even that the machine was not beeping for degraded disk.

    I thought it might be software failure so I've tried to upgrade the firmware to the latest but it was stuck in loading between 10% and 20% (I do not remember the right number).

    Now I am no longer able to open the web interface of my Zyxel. When I try to login it loads infinitely.

  • rosu
    rosu Posts: 5
    First Comment
    Options

    This is the result of my disks check:

    ~ # smartctl -a /dev/sda
    smartctl 6.3 2014-07-26 r3976 [armv7l-linux-3.10.39] (local build)
    Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

    === START OF INFORMATION SECTION ===
    Model Family: Western Digital Red (AF)
    Device Model: WDC WD20EFRX-68EUZN0
    Serial Number: WD-WCC4M1LAJ3DH
    LU WWN Device Id: 5 0014ee 21042759c
    Firmware Version: 82.00A82
    User Capacity: 2,000,398,934,016 bytes [2.00 TB]
    Sector Sizes: 512 bytes logical, 4096 bytes physical
    Rotation Rate: 5400 rpm
    Device is: In smartctl database [for details use: -P show]
    ATA Version is: ACS-2 (minor revision not indicated)
    SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
    Local Time is: Tue Feb 27 16:09:51 2024 EET
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled

    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED

    General SMART Values:
    Offline data collection status: (0x00) Offline data collection activity
    was never started.
    Auto Offline Data Collection: Disabled.
    Self-test execution status: ( 0) The previous self-test routine completed
    without error or no self-test has ever
    been run.
    Total time to complete Offline
    data collection: (26580) seconds.
    Offline data collection
    capabilities: (0x7b) SMART execute Offline immediate.
    Auto Offline data collection on/off support.
    Suspend Offline collection upon new
    command.
    Offline surface scan supported.
    Self-test supported.
    Conveyance Self-test supported.
    Selective Self-test supported.
    SMART capabilities: (0x0003) Saves SMART data before entering
    power-saving mode.
    Supports SMART auto save timer.
    Error logging capability: (0x01) Error logging supported.
    General Purpose Logging supported.
    Short self-test routine
    recommended polling time: ( 2) minutes.
    Extended self-test routine
    recommended polling time: ( 268) minutes.
    Conveyance self-test routine
    recommended polling time: ( 5) minutes.
    SCT capabilities: (0x703d) SCT Status supported.
    SCT Error Recovery Control supported.
    SCT Feature Control supported.
    SCT Data Table supported.

    SMART Attributes Data Structure revision number: 16
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
    3 Spin_Up_Time 0x0027 179 174 021 Pre-fail Always - 4050
    4 Start_Stop_Count 0x0032 099 099 000 Old_age Always - 1553
    5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
    7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
    9 Power_On_Hours 0x0032 043 043 000 Old_age Always - 41679
    10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
    11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
    12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 258
    192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 215
    193 Load_Cycle_Count 0x0032 150 150 000 Old_age Always - 150979
    194 Temperature_Celsius 0x0022 112 101 000 Old_age Always - 35
    196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
    197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0030 100 253 000 Old_age Offline - 0
    199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
    200 Multi_Zone_Error_Rate 0x0008 100 253 000 Old_age Offline - 0

    SMART Error Log Version: 1
    No Errors Logged

    SMART Self-test log structure revision number 1
    No self-tests have been logged. [To run self-tests, use: smartctl -t]

    SMART Selective self-test log data structure revision number 1
    SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
    1 0 0 Not_testing
    2 0 0 Not_testing
    3 0 0 Not_testing
    4 0 0 Not_testing
    5 0 0 Not_testing
    Selective self-test flags (0x0):
    After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.

    ~ #
    ~ #
    ~ #
    ~ #
    ~ #
    ~ #
    ~ #
    ~ #
    ~ #
    ~ #
    ~ #
    ~ #
    ~ #
    ~ #
    ~ #
    ~ #
    ~ #
    ~ # smartctl -a /dev/sdb
    smartctl 6.3 2014-07-26 r3976 [armv7l-linux-3.10.39] (local build)
    Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

    === START OF INFORMATION SECTION ===
    Model Family: Western Digital Red (AF)
    Device Model: WDC WD20EFRX-68EUZN0
    Serial Number: WD-WCC4M2XRF7ZK
    LU WWN Device Id: 5 0014ee 21042e2f8
    Firmware Version: 82.00A82
    User Capacity: 2,000,398,934,016 bytes [2.00 TB]
    Sector Sizes: 512 bytes logical, 4096 bytes physical
    Rotation Rate: 5400 rpm
    Device is: In smartctl database [for details use: -P show]
    ATA Version is: ACS-2 (minor revision not indicated)
    SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
    Local Time is: Tue Feb 27 16:09:54 2024 EET
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled

    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED

    General SMART Values:
    Offline data collection status: (0x00) Offline data collection activity
    was never started.
    Auto Offline Data Collection: Disabled.
    Self-test execution status: ( 0) The previous self-test routine completed
    without error or no self-test has ever
    been run.
    Total time to complete Offline
    data collection: (26940) seconds.
    Offline data collection
    capabilities: (0x7b) SMART execute Offline immediate.
    Auto Offline data collection on/off support.
    Suspend Offline collection upon new
    command.
    Offline surface scan supported.
    Self-test supported.
    Conveyance Self-test supported.
    Selective Self-test supported.
    SMART capabilities: (0x0003) Saves SMART data before entering
    power-saving mode.
    Supports SMART auto save timer.
    Error logging capability: (0x01) Error logging supported.
    General Purpose Logging supported.
    Short self-test routine
    recommended polling time: ( 2) minutes.
    Extended self-test routine
    recommended polling time: ( 272) minutes.
    Conveyance self-test routine
    recommended polling time: ( 5) minutes.
    SCT capabilities: (0x703d) SCT Status supported.
    SCT Error Recovery Control supported.
    SCT Feature Control supported.
    SCT Data Table supported.

    SMART Attributes Data Structure revision number: 16
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
    3 Spin_Up_Time 0x0027 172 170 021 Pre-fail Always - 4358
    4 Start_Stop_Count 0x0032 099 099 000 Old_age Always - 1497
    5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
    7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
    9 Power_On_Hours 0x0032 047 047 000 Old_age Always - 39279
    10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
    11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
    12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 259
    192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 216
    193 Load_Cycle_Count 0x0032 150 150 000 Old_age Always - 150631
    194 Temperature_Celsius 0x0022 109 100 000 Old_age Always - 38
    196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
    197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0030 100 253 000 Old_age Offline - 0
    199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
    200 Multi_Zone_Error_Rate 0x0008 100 253 000 Old_age Offline - 0

    SMART Error Log Version: 1
    No Errors Logged

    SMART Self-test log structure revision number 1
    No self-tests have been logged. [To run self-tests, use: smartctl -t]

    SMART Selective self-test log data structure revision number 1
    SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
    1 0 0 Not_testing
    2 0 0 Not_testing
    3 0 0 Not_testing
    4 0 0 Not_testing
    5 0 0 Not_testing
    Selective self-test flags (0x0):
    After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.


    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
    3 Spin_Up_Time 0x0027 172 170 021 Pre-fail Always - 4358
    4 Start_Stop_Count 0x0032 099 099 000 Old_age Always - 1497

  • Mijzelf
    Mijzelf Posts: 2,639  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options

    There is nothing wrong with that disks. About reinstalling the firmware, you can use a Rescue Stick.

  • rosu
    rosu Posts: 5
    First Comment
    Options

    I've downloaded the archive for my NAS326 and extracted it into FAT USB flash drive. I followed the instructions to rename the file and the flash drive files structure looks like this:

    user@wb:/media/suvari3v/FAT 8GB$ ll
    total 960
    drwxr-xr-x 3 user user 4096 яну 1 1970 ./
    drwxr-x---+ 3 root root 4096 мар 5 20:07 ../
    -rw-r--r-- 1 user user 79 окт 19 2016 ras.bin
    drwxr-xr-x 5 user user 4096 мар 5 19:50 .Trash-1000/
    -rw-r--r-- 1 user user 949972 окт 19 2016 uboot.bin
    -rw-r--r-- 1 user user 36 окт 19 2016 Upgrade_C0
    -rw-r--r-- 1 user user 12250 окт 19 2016 usb_key_func.sh

    Then I've followed the instructions again:

    • I've shut down the NAS
    • I've inserted the flash drive into the front port
    • I've started the NAS again
    • There was a beeping sound
    • Then I've shut down the NAS as it did not shut down itself automatically as per the instructions (after waiting for about 5 minutes)

    Now when I start it it does not seems like something is changed. I've logged in the device using SSH and the HTTPD service was not running I was not able to enter the web portal so I've started the service:

    ~ # /etc/init.d/httpd.sh start
    ~ #

    Then the web portal started to load the login from and I've entered my credentials in the web portal but again I see infinite loading and I'm not able to enter the dashboard.

    Could you suggest please?

  • Mijzelf
    Mijzelf Posts: 2,639  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options

    Don't know how you managed to get the stick that way. The content should be

    ├── nas3xx_check_file
    ├── nas3xx_fw
    │   ├── uboot.bin
    │   ├── Upgrade_C0
    │   ├── ras.bin
    │   └── usb_key_func.sh
    ├── nas3xx_md5sum.txt
    └── Readme.txt

    Where ras.bin is a +/- 50MB file, with it's md5sum in nas3xx_md5sum.txt. The .Trash-1000/ directory won't hurt. (All extra files are ignored.)

  • rosu
    rosu Posts: 5
    First Comment
    Options

    Thank you for your instructions. I was able to upgrade the firmware to V5.21. The device shut down after the upgrade as expected.

    Unfortunately, I am still unable to log in and I see an infinite loop. Here is what I did right after the upgrade:

    ~ # /etc/init.d/httpd.sh start
    ~ # dmesg
    Booting Linux on physical CPU 0x0
    Linux version 3.10.39 (root@twsvnnt01652-01) (gcc version 4.8.5 20150209 (prerelease) (crosstool-NG 1.21.0) ) #1 Tue Jan 2 10:45:10 CST 2024
    CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
    CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: Marvell Armada 380/381/382/385/388 (Device Tree), model: Marvell Armada 380 STG-328
    Memory policy: ECC disabled, Data cache writealloc
    On node 0 totalpages: 131072
    free_area_init_node: node 0, pgdat c0ec2024, node_mem_map c0f11000
    Normal zone: 1024 pages used for memmap
    Normal zone: 0 pages reserved
    Normal zone: 131072 pages, LIFO batch:31
    CPU: All CPU(s) started in SVC mode.
    pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    pcpu-alloc: [0] 0
    Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
    Kernel command line: console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2
    PID hash table entries: 2048 (order: 1, 8192 bytes)
    Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    Memory: 512MB = 512MB total
    Memory: 504272k/504272k available, 20016k reserved, 0K highmem
    Virtual kernel memory layout:
    vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    vmalloc : 0xe0800000 - 0xfff00000 ( 503 MB)
    lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
    modules : 0xbf000000 - 0xc0000000 ( 16 MB)
    .text : 0xc0008000 - 0xc081c8a8 (8275 kB)
    .init : 0xc081d000 - 0xc0e6bd5c (6460 kB)
    .data : 0xc0e6c000 - 0xc0ec30e0 ( 349 kB)
    .bss : 0xc0ec30e0 - 0xc0f10c70 ( 311 kB)
    NR_IRQS:16 nr_irqs:16 16

    LSP version: linux-3.10.39-2014_T3.0p7

    sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
    L310 cache controller enabled
    l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
    Console: colour dummy device 80x30
    Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    Setting up static identity map for 0xc063c590 - 0xc063c5e8
    mvebu-pmsu: Initializing Power Management Service Unit
    Initializing CPU Reset module
    devtmpfs: initialized
    mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0x4
    xor: measuring software checksum speed
    arm4regs : 2368.000 MB/sec
    8regs : 1458.800 MB/sec
    32regs : 1408.000 MB/sec
    xor: using function: arm4regs (2368.000 MB/sec)
    pinctrl core: initialized pinctrl subsystem
    NET: Registered protocol family 16
    DMA: preallocated 256 KiB pool for atomic coherent allocations
    irq: Cannot allocate irq_descs @ IRQ194, assuming pre-allocated
    irq: Cannot allocate irq_descs @ IRQ226, assuming pre-allocated
    bio: create slab <bio-0> at 0
    raid6: int32x1 203 MB/s
    raid6: int32x2 270 MB/s
    raid6: int32x4 283 MB/s
    raid6: int32x8 323 MB/s
    raid6: using algorithm int32x8 (323 MB/s)
    raid6: using intx1 recovery algorithm
    gpio-ms: gpio_dev = fe00000 (M: 254, m: 0)
    [kernel] gpio_request for GPIO[24] failed with error number: -517
    [kernel] gpio_request for GPIO[31] failed with error number: -517
    [kernel] gpio_request for GPIO[44] failed with error number: -517
    mvebu-pcie pcie-controller.3: PCIe0.0: link down
    mvebu-pcie pcie-controller.3: PCIe1.0: link down
    mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
    pci_bus 0000:00: root bus resource [io 0x1000-0xfffff]
    pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe8000000]
    pci_bus 0000:00: root bus resource [bus 00-ff]
    pci 0000:00:01.0: [11ab:7846] type 01 class 0x060400
    pci 0000:00:02.0: [11ab:7846] type 01 class 0x060400
    PCI: bus0: Fast back to back transfers disabled
    pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    PCI: bus1: Fast back to back transfers enabled
    pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
    PCI: bus2: Fast back to back transfers enabled
    pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
    pci 0000:00:01.0: PCI bridge to [bus 01]
    pci 0000:00:02.0: PCI bridge to [bus 02]
    PCI: enabling device 0000:00:01.0 (0140 -> 0143)
    PCI: enabling device 0000:00:02.0 (0140 -> 0143)
    vgaarb: loaded
    SCSI subsystem initialized
    libata version 3.00 loaded.
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    pps_core: LinuxPPS API ver. 1 registered
    pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
    PTP clock support registered
    cfg80211: Calling CRDA to update world regulatory domain
    Switching to clocksource armada_370_xp_clocksource
    NET: Registered protocol family 2
    TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    TCP: reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    RPC: Registered named UNIX socket transport module.
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    PCI: CLS 64 bytes, default 64
    VFS: Disk quotas dquot_6.5.2
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    NFS: Registering the id_resolver key type
    Key type id_resolver registered
    Key type id_legacy registered
    Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    fuse init (API version 7.22)
    bio: create slab <bio-1> at 1
    Btrfs loaded
    msgmni has been set to 984
    async_tx: api initialized (async)
    Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
    ****** turn off all LEDs that turned on in u-boot ******
    ****** blink SYS LED ******
    mv_xor f1060800.xor: Marvell shared XOR driver
    mv_xor f1060800.xor: Marvell XOR: ( xor cpy intr )
    mv_xor f1060800.xor: freeing 1 in use descriptors!
    mv_xor f1060800.xor: Marvell XOR: ( crc32c )
    mv_xor f1060900.xor: Marvell shared XOR driver
    mv_xor f1060900.xor: Marvell XOR: ( xor cpy intr )
    mv_xor f1060900.xor: freeing 1 in use descriptors!
    mv_xor f1060900.xor: Marvell XOR: ( crc32c )
    Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
    console [ttyS0] enabled
    brd: module loaded
    loop: module loaded
    ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
    ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
    scsi0 : ahci_mv_platform
    scsi1 : ahci_mv_platform
    ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
    ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
    armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
    NAND device: Manufacturer ID: 0xc2, Chip ID: 0xda (Macronix NAND 256MiB 3,3V 8-bit), 256MiB, page size: 2048, OOB size: 64
    Bad block table found at page 131008, version 0x01
    Bad block table found at page 130944, version 0x01
    nand_read_bbt: bad block at 0x000006920000
    nand_read_bbt: bad block at 0x00000a6a0000
    7 ofpart partitions found on MTD device armada-nand
    Creating 7 MTD partitions on "armada-nand":
    0x000000000000-0x000000200000 : "U-Boot"
    0x000000200000-0x000000400000 : "U-Boot env"
    0x000000400000-0x000000e00000 : "Config"
    0x000000e00000-0x000001d00000 : "Kernel-1"
    0x000001d00000-0x000008700000 : "RootFS-1"
    0x000008700000-0x000009600000 : "Kernel-2"
    0x000009600000-0x000010000000 : "RootFS-2"
    m25p80 spi0.0: unrecognized JEDEC id ffffff
    SoC: model = 0x6810, revision = 0x4
    o 3 Giga ports supported
    o SKB recycle supported for SWF (Disabled)
    o NETA acceleration mode 1
    o RX Queue support: 8 Queues * 256 Descriptors
    o TX Queue support: 8 Queues * 532 Descriptors
    o GSO supported
    o GRO supported
    o Receive checksum offload supported
    o Transmit checksum offload supported
    o Driver ERROR statistics enabled
    o Driver INFO statistics enabled
    o Driver DEBUG statistics enabled

    port #0: is_sgmii=0, is_rgmii=1, phy_addr=1
    o Loading network interface(s) for port #0: cpu_mask=0x1, tx_csum_limit=9800

    o Port 0 is connected to Linux netdevice
    o eth0, ifindex = 2, GbE port = 0
    giga p=0: mtu=1500, mac=00:50:43:02:02:01 (platform)

    libphy: orion_mdio_bus: probed
    e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
    e1000: Copyright (c) 1999-2006 Intel Corporation.
    e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
    e1000e: Copyright(c) 1999 - 2013 Intel Corporation.
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    ehci_hcd: block sizes: qh 64 qtd 96 itd 160 sitd 96
    ehci-pci: EHCI PCI platform driver
    ehci-orion: EHCI orion driver
    Initializing Orion-SoC USB Host Controller
    orion-ehci f1058000.usb: EHCI Host Controller
    orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
    orion-ehci f1058000.usb: reset hcs_params 0x10011 dbg=0 ind cc=0 pcc=0 ordered ports=1
    orion-ehci f1058000.usb: reset hcc_params 0006 thresh 0 uframes 256/512/1024 park
    orion-ehci f1058000.usb: park 0
    orion-ehci f1058000.usb: reset command 0080b02 park=3 ithresh=8 period=1024 Reset HALT
    orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
    orion-ehci f1058000.usb: init command 0010005 (park)=0 ithresh=1 period=512 RUN
    orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
    usb usb1: default language 0x0409
    usb usb1: udev 1, busnum 1, minor = 0
    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb1: Product: EHCI Host Controller
    usb usb1: Manufacturer: Linux 3.10.39 ehci_hcd
    usb usb1: SerialNumber: f1058000.usb
    usb usb1: usb_probe_device
    usb usb1: configuration #1 chosen from 1 choice
    usb usb1: adding 1-0:1.0 (config #1, interface 0)
    hub 1-0:1.0: usb_probe_interface
    hub 1-0:1.0: usb_probe_interface - got id
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    hub 1-0:1.0: standalone hub
    hub 1-0:1.0: individual port power switching
    hub 1-0:1.0: individual port over-current protection
    hub 1-0:1.0: Single TT
    hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)
    hub 1-0:1.0: power on to power good time: 20ms
    hub 1-0:1.0: local power source is good
    hub 1-0:1.0: enabling power on all ports
    xhci-hcd f10f0000.usb3: xHCI Host Controller
    xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
    xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
    usb usb2: default language 0x0409
    usb usb2: udev 1, busnum 2, minor = 128
    usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: xHCI Host Controller
    usb usb2: Manufacturer: Linux 3.10.39 xhci-hcd
    usb usb2: SerialNumber: f10f0000.usb3
    usb usb2: usb_probe_device
    usb usb2: configuration #1 chosen from 1 choice
    xHCI xhci_add_endpoint called for root hub
    xHCI xhci_check_bandwidth called for root hub
    usb usb2: adding 2-0:1.0 (config #1, interface 0)
    hub 2-0:1.0: usb_probe_interface
    hub 2-0:1.0: usb_probe_interface - got id
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    hub 2-0:1.0: standalone hub
    hub 2-0:1.0: no power switching (usb 1.0)
    hub 2-0:1.0: individual port over-current protection
    hub 2-0:1.0: Single TT
    hub 2-0:1.0: TT requires at most 8 FS bit times (666 ns)
    hub 2-0:1.0: power on to power good time: 20ms
    hub 2-0:1.0: local power source is good
    hub 2-0:1.0: trying to enable port power on non-switchable hub
    xhci-hcd f10f0000.usb3: xHCI Host Controller
    xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
    usb usb3: skipped 1 descriptor after endpoint
    usb usb3: default language 0x0409
    usb usb3: udev 1, busnum 3, minor = 256
    usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
    usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb3: Product: xHCI Host Controller
    usb usb3: Manufacturer: Linux 3.10.39 xhci-hcd
    usb usb3: SerialNumber: f10f0000.usb3
    usb usb3: usb_probe_device
    usb usb3: configuration #1 chosen from 1 choice
    xHCI xhci_add_endpoint called for root hub
    xHCI xhci_check_bandwidth called for root hub
    usb usb3: adding 3-0:1.0 (config #1, interface 0)
    hub 3-0:1.0: usb_probe_interface
    hub 3-0:1.0: usb_probe_interface - got id
    hub 3-0:1.0: USB hub found
    hub 3-0:1.0: 1 port detected
    hub 3-0:1.0: standalone hub
    hub 3-0:1.0: no power switching (usb 1.0)
    hub 3-0:1.0: individual port over-current protection
    hub 3-0:1.0: TT requires at most 8 FS bit times (666 ns)
    hub 3-0:1.0: power on to power good time: 20ms
    hub 3-0:1.0: local power source is good
    hub 3-0:1.0: trying to enable port power on non-switchable hub
    xhci-hcd f10f8000.usb3: xHCI Host Controller
    xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
    xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
    usb usb4: default language 0x0409
    usb usb4: udev 1, busnum 4, minor = 384
    usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb4: Product: xHCI Host Controller
    usb usb4: Manufacturer: Linux 3.10.39 xhci-hcd
    usb usb4: SerialNumber: f10f8000.usb3
    hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
    usb usb4: usb_probe_device
    usb usb4: configuration #1 chosen from 1 choice
    xHCI xhci_add_endpoint called for root hub
    xHCI xhci_check_bandwidth called for root hub
    usb usb4: adding 4-0:1.0 (config #1, interface 0)
    hub 4-0:1.0: usb_probe_interface
    hub 4-0:1.0: usb_probe_interface - got id
    hub 4-0:1.0: USB hub found
    hub 4-0:1.0: 1 port detected
    hub 4-0:1.0: standalone hub
    hub 4-0:1.0: no power switching (usb 1.0)
    hub 4-0:1.0: individual port over-current protection
    hub 4-0:1.0: Single TT
    hub 4-0:1.0: TT requires at most 8 FS bit times (666 ns)
    hub 4-0:1.0: power on to power good time: 20ms
    hub 4-0:1.0: local power source is good
    hub 4-0:1.0: trying to enable port power on non-switchable hub
    xhci-hcd f10f8000.usb3: xHCI Host Controller
    xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
    usb usb5: skipped 1 descriptor after endpoint
    usb usb5: default language 0x0409
    usb usb5: udev 1, busnum 5, minor = 512
    usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
    usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb5: Product: xHCI Host Controller
    usb usb5: Manufacturer: Linux 3.10.39 xhci-hcd
    usb usb5: SerialNumber: f10f8000.usb3
    hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000
    usb usb5: usb_probe_device
    usb usb5: configuration #1 chosen from 1 choice
    xHCI xhci_add_endpoint called for root hub
    xHCI xhci_check_bandwidth called for root hub
    usb usb5: adding 5-0:1.0 (config #1, interface 0)
    hub 5-0:1.0: usb_probe_interface
    hub 5-0:1.0: usb_probe_interface - got id
    hub 5-0:1.0: USB hub found
    hub 5-0:1.0: 1 port detected
    hub 5-0:1.0: standalone hub
    hub 5-0:1.0: no power switching (usb 1.0)
    hub 5-0:1.0: individual port over-current protection
    hub 5-0:1.0: TT requires at most 8 FS bit times (666 ns)
    hub 5-0:1.0: power on to power good time: 20ms
    hub 5-0:1.0: local power source is good
    hub 5-0:1.0: trying to enable port power on non-switchable hub
    usbcore: registered new interface driver usblp
    usbcore: registered new interface driver usb-storage
    mousedev: PS/2 mouse device common for all mice
    hub 3-0:1.0: state 7 ports 1 chg 0000 evt 0000
    mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
    i2c /dev entries driver
    md: linear personality registered for level -1
    md: raid0 personality registered for level 0
    md: raid1 personality registered for level 1
    md: raid6 personality registered for level 6
    md: raid5 personality registered for level 5
    md: raid4 personality registered for level 4
    hub 4-0:1.0: state 7 ports 1 chg 0000 evt 0000
    device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
    dm_crypt using the OCF package.
    cpuidle: using governor ladder
    sdhci: Secure Digital Host Controller Interface driver
    sdhci: Copyright(c) Pierre Ossman
    hub 5-0:1.0: state 7 ports 1 chg 0000 evt 0000
    mmc0: SDHCI controller on f10d8000.sdhci [f10d8000.sdhci] using ADMA
    sdhci-pltfm: SDHCI platform and OF driver helper
    armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
    armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: int_coalescing(1)
    armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources threshold 0x2, threshold_time 0xff
    mvCesaInit: channels=2, session=640, queue=256
    armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
    ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
    ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
    ata1.00: ATA-9: WDC WD20EFRX-68EUZN0, 82.00A82, max UDMA/133
    ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
    ata2.00: ATA-9: WDC WD20EFRX-68EUZN0, 82.00A82, max UDMA/133
    ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
    cesadev_init(c0836b3c)
    ata1.00: configured for UDMA/133
    ata2.00: configured for UDMA/133
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    TCP: cubic registered
    NET: Registered protocol family 10
    sit: IPv6 over IPv4 tunneling driver
    scsi 0:0:0:0: Direct-Access ATA WDC WD20EFRX-68E 82.0 PQ: 0 ANSI: 5
    NET: Registered protocol family 17
    8021q: 802.1Q VLAN Support v1.8
    Key type dns_resolver registered
    VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    UBI: attaching mtd4 to ubi0
    ******** sd_probe: turn_off LED_HDD1 ********
    ******** sd_probe: turn_on LED_HDD1 WHITE********
    sd 0:0:0:0: Attached scsi generic sg0 type 0
    sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
    sd 0:0:0:0: [sda] 4096-byte physical blocks
    scsi 1:0:0:0: Direct-Access ATA WDC WD20EFRX-68E 82.0 PQ: 0 ANSI: 5
    ******** sd_probe: turn_off LED_HDD2 ********
    ******** sd_probe: turn_on LED_HDD2 WHITE********
    sd 0:0:0:0: [sda] Write Protect is off
    sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
    sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
    sd 1:0:0:0: [sdb] 4096-byte physical blocks
    sd 1:0:0:0: Attached scsi generic sg1 type 0
    sd 1:0:0:0: [sdb] Write Protect is off
    sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
    sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    sda: sda1 sda2 sda3
    sd 0:0:0:0: [sda] Attached SCSI disk
    sdb: sdb1 sdb2 sdb3
    sd 1:0:0:0: [sdb] Attached SCSI disk
    UBI: scanning is finished
    UBI: attached mtd4 (name "RootFS-1", size 106 MiB) to ubi0
    UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
    UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
    UBI: good PEBs: 847, bad PEBs: 1, corrupted PEBs: 0
    UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
    UBI: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 596131792
    UBI: available PEBs: 0, total reserved PEBs: 847, PEBs reserved for bad PEB handling: 39
    mvebu-rtc f10a3800.rtc: setting system clock to 2024-03-06 19:00:17 UTC (1709751617)
    Freeing unused kernel memory: 6456K (c081d000 - c0e6b000)
    UBI: background thread "ubi_bgt0d" started, PID 1187
    eth0: mac address changed
    bmPoolId = 0 has unknown buf_size
    pool #0: pkt_size=1536, buf_size=1600 - 4096 of 4096 buffers added
    egiga0: link up
    egiga0: started
    egiga0: link down
    egiga0: link up, full duplex, speed 1 Gbps
    egiga0: link down
    egiga0: link up, full duplex, speed 1 Gbps
    UBI: detaching mtd4 from ubi0
    UBI: mtd4 is detached from ubi0
    UBI: attaching mtd6 to ubi6
    UBI: scanning is finished
    UBI: attached mtd6 (name "RootFS-2", size 106 MiB) to ubi6
    UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
    UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
    UBI: good PEBs: 839, bad PEBs: 9, corrupted PEBs: 0
    UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
    UBI: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1502973064
    UBI: available PEBs: 0, total reserved PEBs: 839, PEBs reserved for bad PEB handling: 31
    UBI: background thread "ubi_bgt6d" started, PID 1381
    UBIFS: mounted UBI device 6, volume 0, name "ubi_rootfs2", R/O mode
    UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    UBIFS: FS size: 100691968 bytes (96 MiB, 793 LEBs), journal size 5079040 bytes (4 MiB, 40 LEBs)
    UBIFS: reserved for root: 4755930 bytes (4644 KiB)
    UBIFS: media format: w4/r0 (latest is w4/r0), UUID F8D55E18-4545-4265-9DFF-94DDED3FC014, small LPT model
    md: md0 stopped.
    md: bind<sdb1>
    md: bind<sda1>
    md/raid1:md0: active with 2 out of 2 mirrors
    md0: detected capacity change from 0 to 2045706240
    md: md1 stopped.
    md: bind<sdb2>
    md: bind<sda2>
    md/raid1:md1: active with 2 out of 2 mirrors
    md1: detected capacity change from 0 to 2046754816
    md1: unknown partition table
    Adding 1998780k swap on /dev/md1. Priority:-1 extents:1 across:1998780k
    md0: unknown partition table
    EXT4-fs (md0): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (md0): re-mounted. Opts: (null)
    EXT4-fs (loop0): mounting ext2 file system using the ext4 subsystem
    EXT4-fs (loop0): mounted filesystem without journal. Opts: (null)
    UBI: attaching mtd2 to ubi2
    UBI: scanning is finished
    UBI: attached mtd2 (name "Config", size 10 MiB) to ubi2
    UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
    UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
    UBI: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
    UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
    UBI: max/mean erase counter: 61/39, WL threshold: 4096, image sequence number: 1368162132
    UBI: available PEBs: 0, total reserved PEBs: 80, PEBs reserved for bad PEB handling: 40
    UBI: background thread "ubi_bgt2d" started, PID 1567
    UBIFS: background thread "ubifs_bgt2_0" started, PID 1571
    UBIFS: recovery needed
    UBIFS: recovery completed
    UBIFS: mounted UBI device 2, volume 0, name "ubi_config"
    UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    UBIFS: FS size: 3301376 bytes (3 MiB, 26 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
    UBIFS: reserved for root: 155931 bytes (152 KiB)
    UBIFS: media format: w4/r0 (latest is w4/r0), UUID BC36300D-4C68-46F2-B4CC-C75F2D6A4724, small LPT model
    NTFS driver 2.1.30 [Flags: R/O MODULE].
    tntfs: module license 'Commercial. For support email ntfs-support@tuxera.com.' taints kernel.
    Disabling lock debugging due to kernel taint
    Tuxera NTFS driver 3015.1.29 [Flags: R/W MODULE].
    PPP generic driver version 2.4.2
    PPP MPPE Compression module registered
    PPP Deflate Compression module registered
    NET: Registered protocol family 24
    PPP BSD Compression module registered
    md: md2 stopped.
    md: bind<sdb3>
    md/raid1:md2: active with 1 out of 2 mirrors
    md2: detected capacity change from 0 to 1996168691712
    md2: unknown partition table
    EXT4-fs (md2): warning: mounting fs with errors, running e2fsck is recommended
    EXT4-fs (md2): recovery complete
    EXT4-fs (md2): mounted filesystem with ordered data mode. Opts: usrquota,data=ordered,barrier=1
    IPv6: ADDRCONF(NETDEV_CHANGE): egiga0: link becomes ready
    EXT4-fs error (device md2): ext4_mb_generate_buddy:755: group 11424, 0 clusters in bitmap, 65280 in gd
    EXT4-fs error (device md2): ext4_mb_generate_buddy:755: group 12852, 0 clusters in bitmap, 65280 in gd
    EXT4-fs error (device md2): ext4_mb_generate_buddy:755: group 14088, 0 clusters in bitmap, 65280 in gd
    EXT4-fs error (device md2): ext4_mb_generate_buddy:755: group 14175, 0 clusters in bitmap, 65280 in gd
    EXT4-fs error (device md2): ext4_mb_generate_buddy:755: group 2385, 0 clusters in bitmap, 65280 in gd
    EXT4-fs error (device md2): ext4_mb_generate_buddy:755: group 6797, 0 clusters in bitmap, 65280 in gd
    EXT4-fs (md2): error count: 175
    EXT4-fs (md2): initial error at 1551382506: htree_dirblock_to_tree:920: inode 16910944: block 67641718
    EXT4-fs (md2): last error at 1709751651: ext4_mb_generate_buddy:755

  • Mijzelf
    Mijzelf Posts: 2,639  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options

    Well, at least you have some filesystem errors, which can cause the zero byte files. You should run e2fsck on /dev/md2. Unfortunately that is not that simple. Here I wrote about how to get that done. The forum software has b0rked up my code, so you'll have remove the html code around and between the commands. And skip the resize2fs.

Consumer Product Help Center