Welcome! Log In Create A New Profile

Advanced

Zyxel NSA325 no IP

Posted by Bobby 
Zyxel NSA325 no IP
August 23, 2022 04:10AM
Hi,

I had my Zyxel NSA325 up and running well on Debian, following the instructions here for uboot etc. It ran great, but somewhere along the line it got broken.

One day I noticed the device wan't available at the usual lan IP. No SSH, didn't show up om nmap scan, nowhere to be seen. Reboot (physically unplugging it) didn't help.

I still have the USB to serial cable, hooked it up and got the following report.

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: SAMSUNG HD103SJ  Firm: 1AJ10001 Ser#: S246JDWZ400012
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
  Device 1: Model: WDC WD20EURS-63SPKY0 Firm: 80.00A80 Ser#:  WD-WCC300164787
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
Unknown command 'mmc' - try 'help'

Partition Map for USB device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	60086272  	c20f4a5d-01	83 Boot

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
32 bytes read in 969 ms (0 Bytes/s)

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	1953523120	63e562e9-01	83


Partition Map for IDE device 1  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	3907027120	d6ce975e-01	83
Unknown command 'mmc' - try 'help'
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 815 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5435888 bytes read in 987 ms (5.3 MiB/s)
loading uInitrd ...
9671091 bytes read in 877 ms (10.5 MiB/s)
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
14014 bytes read in 2138 ms (5.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2021-09-24   0:22:58 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5435824 Bytes = 5.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.13.6-kirkwood-tld-1
   Created:      2021-09-24   1:06:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9671027 Bytes = 9.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 1f1d4000, end 1fb0d173 ... OK
   Loading Device Tree to 1f1cd000, end 1f1d36bd ... OK
Using machid 0x831 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: ZyXEL NSA325
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) init=/bin/systemd
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 490944K/524288K available (11264K kernel code, 1553K rwdata, 4272K rodata, 1024K init, 309K bss, 33344K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x408/0x7b4 with crng_init=0
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000002][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000049][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000759][    T0] Console: colour dummy device 80x30
[    0.000824][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000859][    T0] pid_max: default: 32768 minimum: 301
[    0.001189][    T0] LSM: Security Framework initializing
[    0.001339][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001379][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.002564][    T0] CPU: Testing write buffer coherency: ok
[    0.004593][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.004867][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.005155][    T1] rcu: Hierarchical SRCU implementation.
[    0.006350][    T1] devtmpfs: initialized
[    0.012655][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.012703][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.040719][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.040757][    T1] prandom: seed boundary self test passed
[    0.043900][    T1] prandom: 100 self tests passed
[    0.043915][    T1] pinctrl core: initialized pinctrl subsystem
[    0.045310][    T1] NET: Registered protocol family 16
[    0.046100][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.046890][    T1] audit: initializing netlink subsys (disabled)
[    0.048078][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.048401][   T16] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.048558][    T1] cpuidle: using governor ladder
[    0.048642][    T1] cpuidle: using governor menu
[    0.049236][    T1] Feroceon L2: Enabling L2
[    0.049280][    T1] Feroceon L2: Cache support initialised.
[    0.057996][    T1] No ATAGs?
[    2.560054][    C0] random: fast init done
[    3.685287][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    3.704830][   T59] wait_for_initramfs() called before rootfs_initcalls
[    3.890290][    T1] raid6: int32x8  gen()   151 MB/s
[    4.060180][    T1] raid6: int32x8  xor()    92 MB/s
[    4.230174][    T1] raid6: int32x4  gen()   146 MB/s
[    4.400177][    T1] raid6: int32x4  xor()    96 MB/s
[    4.570107][    T1] raid6: int32x2  gen()   190 MB/s
[    4.740094][    T1] raid6: int32x2  xor()   114 MB/s
[    4.910071][    T1] raid6: int32x1  gen()   131 MB/s
[    5.080118][    T1] raid6: int32x1  xor()    80 MB/s
[    5.080131][    T1] raid6: using algorithm int32x2 gen() 190 MB/s
[    5.080142][    T1] raid6: .... xor() 114 MB/s, rmw enabled
[    5.080151][    T1] raid6: using intx1 recovery algorithm
[    5.080378][    T1] vgaarb: loaded
[    5.080847][    T1] SCSI subsystem initialized
[    5.081280][    T1] usbcore: registered new interface driver usbfs
[    5.081339][    T1] usbcore: registered new interface driver hub
[    5.081386][    T1] usbcore: registered new device driver usb
[    5.081560][    T1] pps_core: LinuxPPS API ver. 1 registered
[    5.081573][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    5.081601][    T1] PTP clock support registered
[    5.083256][    T1] clocksource: Switched to clocksource orion_clocksource
[    5.163812][    T1] VFS: Disk quotas dquot_6.6.0
[    5.163908][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    5.177232][    T1] NET: Registered protocol family 2
[    5.177398][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    5.178451][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    5.178503][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    5.178573][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    5.178632][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    5.178826][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    5.178891][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.178925][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    5.179126][    T1] NET: Registered protocol family 1
[    5.183770][    T1] RPC: Registered named UNIX socket transport module.
[    5.183790][    T1] RPC: Registered udp transport module.
[    5.183800][    T1] RPC: Registered tcp transport module.
[    5.183809][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    5.183824][    T1] PCI: CLS 0 bytes, default 32
[    5.184136][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    5.193549][   T58] Trying to unpack rootfs image as initramfs...
[    6.499829][   T58] Freeing initrd memory: 9448K
[    6.952034][    T1] Initialise system trusted keyrings
[    6.952100][    T1] Key type blacklist registered
[    6.952330][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    6.952434][    T1] zbud: loaded
[    6.953716][    T1] NFS: Registering the id_resolver key type
[    6.953756][    T1] Key type id_resolver registered
[    6.953768][    T1] Key type id_legacy registered
[    6.953804][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    6.953825][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    6.953838][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    6.954069][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    6.954459][    T1] fuse: init (API version 7.34)
[    6.954817][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    6.954983][    T1] orangefs_init: module version upstream loaded
[    6.954998][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    7.032032][    T1] xor: measuring software checksum speed
[    7.038680][    T1]    arm4regs        :  1493 MB/sec
[    7.049724][    T1]    8regs           :   895 MB/sec
[    7.057343][    T1]    32regs          :  1302 MB/sec
[    7.057357][    T1] xor: using function: arm4regs (1493 MB/sec)
[    7.057376][    T1] async_tx: api initialized (async)
[    7.057392][    T1] Key type asymmetric registered
[    7.057402][    T1] Asymmetric key parser 'x509' registered
[    7.057454][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    7.057524][    T1] io scheduler bfq registered
[    7.206510][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    7.208076][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    7.208148][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    7.208184][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    7.208219][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    7.208253][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    7.208285][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    7.208317][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    7.208343][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    7.208604][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    7.208624][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    7.208643][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    7.208662][    T1] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    7.208679][    T1] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    7.208696][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    7.208710][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    7.208828][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    7.208861][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    7.210062][    T1] PCI: bus0: Fast back to back transfers disabled
[    7.210091][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.210279][    T1] pci 0000:01:00.0: [1033:0194] type 00 class 0x0c0330
[    7.210318][    T1] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[    7.210471][    T1] pci 0000:01:00.0: PME# supported from D0 D3hot
[    7.210549][    T1] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    7.234314][    T1] PCI: bus1: Fast back to back transfers disabled
[    7.234341][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    7.234521][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    7.234545][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    7.234567][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    7.234595][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    7.234613][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    7.234719][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    7.234803][    T1] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    7.235290][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    7.294134][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    7.296152][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    7.354104][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    7.356363][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.357555][    T1] printk: console [ttyS0] disabled
[    7.357637][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    8.492118][    T1] printk: console [ttyS0] enabled
[    8.504016][    T1] loop: module loaded
[    8.508598][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    8.517323][    T1] scsi host0: sata_mv
[    8.521716][    T1] scsi host1: sata_mv
[    8.525824][    T1] ata1: SATA max UDMA/133 irq 32
[    8.530644][    T1] ata2: SATA max UDMA/133 irq 32
[    8.536288][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    8.543440][    T1] nand: Samsung NAND 128MiB 3,3V 8-bit
[    8.548780][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.557320][    T1] Scanning device for bad blocks
[    8.578437][    T1] Bad eraseblock 157 at 0x0000013a0000
[    8.620765][    T1] Bad eraseblock 515 at 0x000004060000
[    8.629483][    T1] Bad eraseblock 548 at 0x000004480000
[    8.643377][    T1] Bad eraseblock 631 at 0x000004ee0000
[    8.665638][    T1] Bad eraseblock 795 at 0x000006360000
[    8.694620][    T1] 9 fixed-partitions partitions found on MTD device orion_nand
[    8.702051][    T1] Creating 9 MTD partitions on "orion_nand":
[    8.707931][    T1] 0x000000000000-0x000000100000 : "uboot"
[    8.714862][    T1] 0x000000100000-0x000000180000 : "uboot_env"
[    8.721959][    T1] 0x000000180000-0x000000200000 : "key_store"
[    8.729127][    T1] 0x000000200000-0x000000280000 : "info"
[    8.735816][    T1] 0x000000280000-0x000000c80000 : "etc"
[    8.742427][    T1] 0x000000c80000-0x000001680000 : "kernel_1"
[    8.749529][    T1] 0x000001680000-0x000004640000 : "rootfs1"
[    8.756658][    T1] 0x000004640000-0x000005040000 : "kernel_2"
[    8.763791][    T1] 0x000005040000-0x000008000000 : "rootfs2"
[    8.771353][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    8.779992][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    8.791301][    T1] libphy: Fixed MDIO Bus: probed
[    8.797350][    T1] libphy: orion_mdio_bus: probed
[    8.815860][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.824999][    T1] mv643xx_eth: Set the PHY to fix link down
[    8.825565][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address ec:43:f6:aa:78:3e
[    8.840999][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.848371][    T1] ehci-pci: EHCI PCI platform driver
[    8.853651][    T1] ehci-orion: EHCI orion driver
[    8.858539][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.864843][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.873495][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    8.903288][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.910280][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    8.919307][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.927279][    T1] usb usb1: Product: EHCI Host Controller
[    8.932880][    T1] usb usb1: Manufacturer: Linux 5.13.6-kirkwood-tld-1 ehci_hcd
[    8.940324][    T1] usb usb1: SerialNumber: f1050000.ehci
[    8.946314][    T1] hub 1-0:1.0: USB hub found
[    8.950832][    T1] hub 1-0:1.0: 1 port detected
[    8.956229][    T1] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.962196][    T1] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    8.970678][    T1] xhci_hcd 0000:01:00.0: hcc params 0x014042c3 hci version 0x96 quirks 0x0000000000000004
[    8.980968][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    8.990101][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.998082][    T1] usb usb2: Product: xHCI Host Controller
[    9.003702][    T1] usb usb2: Manufacturer: Linux 5.13.6-kirkwood-tld-1 xhci-hcd
[    9.011133][    T1] usb usb2: SerialNumber: 0000:01:00.0
[    9.017005][    T1] hub 2-0:1.0: USB hub found
[    9.021524][    T1] hub 2-0:1.0: 2 ports detected
[    9.026839][    T1] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.032803][    T1] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    9.040992][    T1] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    9.048042][   T94] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.055294][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.064433][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.13
[    9.073677][   T94] ata1.00: ATA-8: SAMSUNG HD103SJ, 1AJ10001, max UDMA/133
[    9.080675][   T94] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.088225][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.096314][    T1] usb usb3: Product: xHCI Host Controller
[    9.101917][    T1] usb usb3: Manufacturer: Linux 5.13.6-kirkwood-tld-1 xhci-hcd
[    9.109774][    T1] usb usb3: SerialNumber: 0000:01:00.0
[    9.115428][   T94] ata1.00: configured for UDMA/133
[    9.120997][    T1] hub 3-0:1.0: USB hub found
[    9.125572][    T1] hub 3-0:1.0: 2 ports detected
[    9.130879][    T7] scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG HD103SJ  0001 PQ: 0 ANSI: 5
[    9.140294][    T1] usbcore: registered new interface driver usb-storage
[    9.148063][   T81] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    9.157212][    T1] mousedev: PS/2 mouse device common for all mice
[    9.163902][   T81] sd 0:0:0:0: [sda] Write Protect is off
[    9.169730][    T1] i2c /dev entries driver
[    9.174142][   T81] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.190579][    T1] rtc-pcf8563 0-0051: registered as rtc0
[    9.196828][   T81]  sda: sda1
[    9.200729][    T1] rtc-pcf8563 0-0051: setting system clock to 2022-08-14T15:12:58 UTC (1660489978)
[    9.210436][   T81] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.217502][    T1] device-mapper: uevent: version 1.0.3
[    9.223093][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    9.232674][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    9.239991][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    9.247381][   T17] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.254846][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    9.262244][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    9.269129][    T1] device-mapper: raid: Loading target version 1.15.1
[    9.277931][    T1] hid: raw HID events driver (C) Jiri Kosina
[    9.284353][    T1] drop_monitor: Initializing network drop monitor service
[    9.291736][    T1] NET: Registered protocol family 10
[    9.298049][    T1] Segment Routing with IPv6
[    9.302450][    T1] RPL Segment Routing with IPv6
[    9.307337][    T1] NET: Registered protocol family 17
[    9.312709][    T1] Key type dns_resolver registered
[    9.318347][    T1] registered taskstats version 1
[    9.323174][    T1] Loading compiled-in X.509 certificates
[    9.329059][    T1] zswap: loaded using pool lzo/zbud
[    9.334525][    T1] Key type ._fscrypt registered
[    9.339257][    T1] Key type .fscrypt registered
[    9.343957][    T1] Key type fscrypt-provisioning registered
[    9.351172][    T1] Key type big_key registered
[    9.380085][    T1] Key type encrypted registered
[    9.475002][   T17] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[    9.483977][   T17] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    9.491885][   T17] usb 1-1: Product: USB2.0 Hub
[    9.497299][   T17] hub 1-1:1.0: USB hub found
[    9.502128][   T17] hub 1-1:1.0: 4 ports detected
[    9.663289][   T96] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.672719][   T96] ata2.00: ATA-9: WDC WD20EURS-63SPKY0, 80.00A80, max UDMA/133
[    9.680185][   T96] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.692351][   T96] ata2.00: configured for UDMA/133
[    9.707811][   T58] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20EURS-63S 0A80 PQ: 0 ANSI: 5
[    9.717680][   T81] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    9.726553][   T81] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    9.732646][   T81] sd 1:0:0:0: [sdb] Write Protect is off
[    9.738382][   T81] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.782937][   T81]  sdb: sdb1
[    9.787309][   T81] sd 1:0:0:0: [sdb] Attached SCSI disk
[    9.795824][    T1] Freeing unused kernel memory: 1024K
[    9.801767][    T1] Checked W+X mappings: passed, no W+X pages found
[    9.808209][    T1] Run /init as init process
[    9.843362][   T17] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
Loading, please wait...
Starting version 247.3-6
[   10.004638][   T17] usb 1-1.3: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[   10.023358][   T17] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   10.031417][   T17] usb 1-1.3: Product:  SanDisk 3.2Gen1
[   10.054765][   T17] usb 1-1.3: Manufacturer:  USB
[   10.059514][   T17] usb 1-1.3: SerialNumber: 0101e0027b22a51d0e540d739e864c73b3bb5172f6fede40ad8eb349de37e8ae2aa9000000000000000000007438e4080087180083558107412aa18f
[   10.114245][   T17] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[   10.139503][   T17] scsi host2: usb-storage 1-1.3:1.0
[   10.547639][  T137] usbcore: registered new interface driver uas
[   10.607120][  T142] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   11.204599][   T81] scsi 2:0:0:0: Direct-Access      USB      SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6
[   11.222300][   T58] sd 2:0:0:0: [sdc] 60088320 512-byte logical blocks: (30.8 GB/28.7 GiB)
[   11.238435][   T58] sd 2:0:0:0: [sdc] Write Protect is on
[   11.250177][   T58] sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   11.275651][   T58]  sdc: sdc1
[   11.283676][   T58] sd 2:0:0:0: [sdc] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.36.1
fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/sdc1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   26.907904][  T170] EXT4-fs (sdc1): INFO: recovery required on readonly filesystem
[   26.915604][  T170] EXT4-fs (sdc1): write access unavailable, cannot proceed (try mounting with noload)
mount: mounting /dev/sdc1 on /root failed: Read-only file system
Failed to mount /dev/sdc1 as root file system.


BusyBox v1.30.1 (Debian 1:1.30.1-6+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs) [   90.610646][    C0] random: crng init done


What strkes me as relevant are the last line:
....
fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/sdc1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[ 26.907904][ T170] EXT4-fs (sdc1): INFO: recovery required on readonly filesystem
[ 26.915604][ T170] EXT4-fs (sdc1): write access unavailable, cannot proceed (try mounting with noload)
mount: mounting /dev/sdc1 on /root failed: Read-only file system
Failed to mount /dev/sdc1 as root file system.

I haven't really changed anything in the setup since it was working, except update the system.
Any idea how I can fix this?
Re: Zyxel NSA325 no IP
August 23, 2022 07:01AM
Failed to mount /dev/sdc1 as root file system.


Maybe your root file system's label is NOT rootfs. It should be labeled rootfs for the system to work.
Re: Zyxel NSA325 no IP
August 23, 2022 03:05PM
Bobby,

> I haven't really changed anything in the setup
> since it was working, except update the system.
> Any idea how I can fix this?

Power down, bring the USB rootfs to another Linux and run e2fsck to fix file system error.

And btw, since you are running USB rootfs permanently, you should see this post:

http://forum.doozan.com/read.php?2,13702,13704#msg-13704

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Zyxel NSA325 no IP
August 23, 2022 03:34PM
That fsck error looks awfully familiar. I was getting it not too long ago and I can't remember exactly what the problem turned out to be, but I think it was because over the years I never updated the fstab entry for the root drive. After an update the old entry (which was "/dev/root / ..." and not "LABEL=rootfs / ...") stopped working whereas it was fine before the update. My memory isn't so great and it could have also just been a bad flash drive.
Re: Zyxel NSA325 no IP
August 23, 2022 03:59PM
Hi,

Having trouble doing that:

sudo e2fsck /dev/sdc

e2fsck 1.45.5 (07-Jan-2020)
e2fsck: Read-only file system while trying to open /dev/sdc
Disk write-protected; use the -n option to do a read-only
check of the device.

Did do this:

 
sudo e2fsck -n -f -v -C 0 /dev/sdc1

e2fsck 1.45.5 (07-Jan-2020)
Warning: skipping journal recovery because doing a read-only filesystem check.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure                                           
Pass 3: Checking directory connectivity                                        
Pass 4: Checking reference counts
Pass 5: Checking group summary information                                     
                                                                               
       35126 inodes used (1.87%, out of 1880480)
          34 non-contiguous files (0.1%)
          31 non-contiguous directories (0.1%)
             # of inodes with ind/dind/tind blocks: 0/0/0
             Extent depth histogram: 33044/9
      707109 blocks used (9.41%, out of 7510784)
           0 bad blocks
           1 large file

       30346 regular files
        2611 directories
          12 character device files
          25 block device files
           1 fifo
           6 links
        2110 symbolic links (2015 fast symbolic links)
          12 sockets
------------
       35123 files
Re: Zyxel NSA325 no IP
August 23, 2022 04:14PM
Bobby,

Sounds like this drive is going bad. Try using a different flash drive.

Can you mount it? it will be read-only but you will be able to read from it. If you have installed a lot of packages, then copy the rootfs over. If not, then create a fresh Debian rootfs.

How to copy using tar (you can also use cp):

https://forum.doozan.com/read.php?2,12096,24034#msg-24034

You must be root while running tar or cp (sudo won't work):
su -

You might encounter errors about files cannot be copied... but it might be OK if those files are not important.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Zyxel NSA325 no IP
August 23, 2022 05:10PM
Thanks for the quick help!

Unfortunately it doesn't mount, see the attached error.

So one route now is to create a new rootfs? This link: https://forum.doozan.com/read.php?2,12096 and then "Updated 26 Sept 2021"?

I had kept the system quite basic, so no great loss of packages. Just torrent/newsgroup stuff and sharing on the lan over nfs. I bought the USB drive especially for the job. Any tips on avoiding loss in the future? The link you mentioned concerning moving logs to ram. Anything else?

Bobby
Attachments:
open | download - error.png (11.7 KB)
Re: Zyxel NSA325 no IP
August 23, 2022 05:18PM
Wait.... is used dd to make an image of the usb stick and mounted that. It worked,,, I can browse the files now from the image!

Just copying it over now to a new usb stick. Will try booting the nas tomorrow.

Thanks so far ;-)
Re: Zyxel NSA325 no IP
August 23, 2022 05:51PM
> Wait.... is used dd to make an image of the usb
> stick and mounted that. It worked,,, I can browse
> the files now from the image!
>
> Just copying it over now to a new usb stick. Will
> try booting the nas tomorrow.

Cool!

When I have time I will beef up that post about USB rootfs. There are more things you can do to avoid wearing out flash drives, but the log is the most important thing to do..

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Zyxel NSA325 no IP
August 24, 2022 02:28AM
The USB stick worked! Updated system: 59 new packages since last boot on 2021-12-30.
Lan sharing works.

Thanks for the help again! I will check on keeping the USB stick save from too may write actions.

Bobby
Re: Zyxel NSA325 no IP
August 24, 2022 04:43AM
renojim Wrote:
-------------------------------------------------------
> That fsck error looks awfully familiar. I was
> getting it not too long ago and I can't remember
> exactly what the problem turned out to be, but I
> think it was because over the years I never
> updated the fstab entry for the root drive. After
> an update the old entry (which was "/dev/root /
> ..." and not "LABEL=rootfs / ...") stopped working
> whereas it was fine before the update. My memory
> isn't so great and it could have also just been a
> bad flash drive.


The flash drive does seem bad. I can't get it mounted, formatted, made writable or anything. Tried from linux and Windows (Easus tool), nothing worked. Giving op on this drive.
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: