Welcome! Log In Create A New Profile

Advanced

WDmycloudex4100 instructions

Posted by Johnei 
Re: WDmycloudex4100 instructions
June 18, 2019 09:26PM
It did not save the envs. Looks like the stock u-boot have overwritten (restore to default) whatever you have saved.

And ethernet was not up in the kwboot booting to Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: WDmycloudex4100 instructions
June 18, 2019 10:17PM
Johnei,


Regarding the network problem. Only port 2 works right now:

https://forum.doozan.com/read.php?2,34103,35436#msg-35436

Quote

port 2 works out of the box as eth0

So try kwboot with the cable plugged in port 2.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: WDmycloudex4100 instructions
June 19, 2019 05:44PM
Ok I fixed that issue by plugging into the second ethernet port but now I am running into read only file system errors when trying to download pakages/tools.
I am guessing it got mounted during boot read only do to some errors....heres the last boots log. Also , the fan is constantly running was this ever fixed, Bodhi.

pi@raspberrypi:~ $ kwboot -t -B 115200 /dev/ttyUSB0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-6-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...\
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]

<snip>

 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01_v1.06 (Jun 30 2017 - 16:08:19) Marvell version: 2014_T3.0p6 - bodhi-tld-6

mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
mvBoardSatRRead: Error: Read from S@R failed
Board: DB-88F6820-BP
SoC:   MV88F6828 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1600 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 800 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  2 GiB

Map:   Code:			0x7fece000:0x7ff960f0
       BSS:			0x7ffef654
       Stack:			0x7f9cdf20
       Heap:			0x7f9ce000:0x7fece000
       U-Boot Environment:	0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
bootcmd: run bootcmd_custom; setenv bootargs root=/dev/ram console=ttyS0,115200; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00001f500000-0x00001ff00000 : "mtd=7"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=7"
UBI: MTD device size:            10 MiB
UBI: number of good PEBs:        80
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             32
UBI: total number of reserved PEBs: 48
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 3/1
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 e4 89 34
Set lan 0 WakeOnLan ok
Set lan 1 WakeOnLan ok
MicroP Enable HD
Enable HD1
Enable HD2
Enable HD3
Enable HD4
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 
Marvell>> setenv set_bootargs_stock 'setenv bootargs root=/dev/ram console=ttyS0,115200'
Marvell>> setenv bootcmd_stock 'echo Booting from stock ... ; run set_bootargs_stock; printenv bootargs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000'
Marvell>> setenv bootdev 'usb'
Marvell>> setenv device '0:1'
Marvell>> setenv load_image_addr '0x02000000'
Marvell>> setenv load_initrd_addr '0x2900000'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)'
Marvell>> setenv bootcmd_usb 'echo Booting from USB ...; usb start; setenv fdt_skip_update yes; usb start; run usb_set_bootargs; if run load_image; then if run load_initrd; then bootm $load_image_addr $load_initrd_addr; else bootm $load_image_addr; fi; fi'
Marvell>> setenv bootcmd_custom 'if run bootcmd_usb; then ; fi; run bootcmd_stock; reset'
Marvell>> setenv bootcmd 'run bootcmd_custom'
Marvell>> boot
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
4037164 bytes read in 396 ms (9.7 MiB/s)
loading uInitrd ...
7070236 bytes read in 476 ms (14.2 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.12.4-mvebu-tld-1
   Created:      2019-06-18  21:41:04 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4037100 Bytes = 3.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.12.4-mvebu-tld-1
   Created:      2017-08-22  11:10:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7070172 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 17 pages/cpu @eefc8000 s40460 r8192 d20980 u69632
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 2059460K/2097152K available (8192K kernel code, 712K rwdata, 2080K rodata, 1024K init, 331K bss, 37692K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db2308   ( 713 kB)
[    0.000000]        .bss : 0xc0db9a84 - 0xc0e0ca58   ( 332 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007873] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019066] Console: colour dummy device 80x30
[    0.023580] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033971] pid_max: default: 32768 minimum: 301
[    0.038719] Security Framework initialized
[    0.042913] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049585] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057033] CPU: Testing write buffer coherency: ok
[    0.062092] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.103878] Setting up static identity map for 0x100000 - 0x100060
[    0.110178] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.115466] mvebu-pmsu: Initializing Power Management Service Unit
[    0.173857] smp: Bringing up secondary CPUs ...
[    0.233907] Booting CPU 1
[    0.236748] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.236795] smp: Brought up 1 node, 2 CPUs
[    0.246676] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.252996] CPU: All CPU(s) started in SVC mode.
[    0.258209] devtmpfs: initialized
[    0.263206] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.271115] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.281003] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.287274] prandom: seed boundary self test passed
[    0.293912] prandom: 100 self tests passed
[    0.298072] pinctrl core: initialized pinctrl subsystem
[    0.303948] NET: Registered protocol family 16
[    0.308994] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.316874] cpuidle: using governor ladder
[    0.321046] cpuidle: using governor menu
[    0.325159] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.333208] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.339217] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.347363] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.370765] vgaarb: loaded
[    0.373767] SCSI subsystem initialized
[    0.384125] usbcore: registered new interface driver usbfs
[    0.389698] usbcore: registered new interface driver hub
[    0.395324] usbcore: registered new device driver usb
[    0.400673] media: Linux media interface: v0.10
[    0.405324] Linux video capture interface: v2.00
[    0.414031] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.455029] VFS: Disk quotas dquot_6.6.0
[    0.459058] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.471847] NET: Registered protocol family 2
[    0.476687] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.483820] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.490436] TCP: Hash tables configured (established 8192 bind 8192)
[    0.496903] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.502898] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.509459] NET: Registered protocol family 1
[    0.524141] RPC: Registered named UNIX socket transport module.
[    0.530116] RPC: Registered udp transport module.
[    0.534896] RPC: Registered tcp transport module.
[    0.539660] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.546263] Unpacking initramfs...
[    0.780637] Freeing initrd memory: 6908K
[    0.784823] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.791581] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.800438] audit: initializing netlink subsys (disabled)
[    0.806012] audit: type=2000 audit(0.791:1): state=initialized audit_enabled=0 res=1
[    0.806234] Initialise system trusted keyrings
[    0.806251] Key type blacklist registered
[    0.806313] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.813872] zbud: loaded
[    0.834453] NFS: Registering the id_resolver key type
[    0.839572] Key type id_resolver registered
[    0.843818] Key type id_legacy registered
[    0.847924] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.854716] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.861231] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.868615] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.875223] orangefs_init: module version upstream loaded
[    0.882823] Key type asymmetric registered
[    0.887012] Asymmetric key parser 'x509' registered
[    0.891973] bounce: pool size: 64 pages
[    0.895933] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.903378] io scheduler noop registered
[    0.907388] io scheduler deadline registered
[    0.911749] io scheduler cfq registered (default)
[    0.917423] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.926019] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.984433] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    0.992300] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.054409] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.095462] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.103194] console [ttyS0] disabled
[    1.127136] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    1.136279] console [ttyS0] enabled
[    1.136279] console [ttyS0] enabled
[    1.143367] bootconsole [earlycon0] disabled
[    1.143367] bootconsole [earlycon0] disabled
[    1.172784] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 12500000) is a 16550A
[    1.182491] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.191609] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.200905] scsi host0: ahci-mvebu
[    1.214554] scsi host1: ahci-mvebu
[    1.218090] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 44
[    1.226064] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 44
[    1.234149] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.243236] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.252538] scsi host2: ahci-mvebu
[    1.256155] scsi host3: ahci-mvebu
[    1.259688] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 45
[    1.267662] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 45
[    1.276078] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.283926] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.290329] nand: Hynix H27U4G8F2DTR-BC
[    1.294190] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.301794] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.308993] Bad block table found at page 262080, version 0x01
[    1.315181] Bad block table found at page 262016, version 0x01
[    1.321203] nand_read_bbt: bad block at 0x000006960000
[    1.326446] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.332564] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.337994] 0x000000000000-0x000000500000 : "U-Boot"
[    1.353643] 0x000000500000-0x000000f00000 : "uImage"
[    1.359264] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.375046] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.392392] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.397657] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.419132] 0x00001d700000-0x00003c200000 : "config"
[    1.424141] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.445309] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.450471] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.471775] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.476959] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.498760] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.505505] libphy: Fixed MDIO Bus: probed
[    1.509953] libphy: orion_mdio_bus: probed
[    1.519637] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.528629] mvneta f1070000.ethernet eth0: Using random mac address 2e:87:45:78:cf:38
[    1.537961] mvneta f1030000.ethernet eth1: Using random mac address 5a:53:97:7b:ae:b2
[    1.546042] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.552607] ehci-pci: EHCI PCI platform driver
[    1.557118] ehci-orion: EHCI orion driver
[    1.561255] orion-ehci f1058000.usb: EHCI Host Controller
[    1.565515] ata1: SATA link down (SStatus 0 SControl 300)
[    1.572132] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.579793] orion-ehci f1058000.usb: irq 40, io mem 0xf1058000
[    1.614038] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.620094] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.626932] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.634193] usb usb1: Product: EHCI Host Controller
[    1.639091] usb usb1: Manufacturer: Linux 4.12.4-mvebu-tld-1 ehci_hcd
[    1.645574] usb usb1: SerialNumber: f1058000.usb
[    1.650515] hub 1-0:1.0: USB hub found
[    1.654317] hub 1-0:1.0: 1 port detected
[    1.658694] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.664052] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.671632] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.680233] xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
[    1.686081] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.692900] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.700169] usb usb2: Product: xHCI Host Controller
[    1.705074] usb usb2: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    1.711542] usb usb2: SerialNumber: f10f0000.usb3
[    1.716573] hub 2-0:1.0: USB hub found
[    1.720354] hub 2-0:1.0: 1 port detected
[    1.724455] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.729795] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.734045] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.743596] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.751786] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.758620] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.766678] usb usb3: Product: xHCI Host Controller
[    1.771576] usb usb3: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    1.774042] ata3: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.784041] ata4: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    1.790511] usb usb3: SerialNumber: f10f0000.usb3
[    1.795521] hub 3-0:1.0: USB hub found
[    1.799301] hub 3-0:1.0: 1 port detected
[    1.803470] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.808835] ata4.00: ATA-8: WDC WD20EARX-00PASB0, 51.0AB51, max UDMA/133
[    1.808839] ata4.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    1.822436] ata2.00: ATA-8: ST2000DM001-1CH164, CC26, max UDMA/133
[    1.822440] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    1.828672] ata4.00: configured for UDMA/133
[    1.839851] ata2.00: configured for UDMA/133
[    1.839853] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.839919] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.839939] xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
[    1.840016] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.840020] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.840023] usb usb4: Product: xHCI Host Controller
[    1.840025] usb usb4: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    1.840028] usb usb4: SerialNumber: f10f8000.usb3
[    1.844324] hub 4-0:1.0: USB hub found
[    1.844340] hub 4-0:1.0: 1 port detected
[    1.844492] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.844500] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.844541] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.844598] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.844602] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.844604] usb usb5: Product: xHCI Host Controller
[    1.844607] usb usb5: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    1.844609] usb usb5: SerialNumber: f10f8000.usb3
[    1.851853] hub 5-0:1.0: USB hub found
[    1.851871] hub 5-0:1.0: 1 port detected
[    1.852074] usbcore: registered new interface driver usblp
[    1.852139] usbcore: registered new interface driver usb-storage
[    1.860523] mousedev: PS/2 mouse device common for all mice
[    1.866332] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.866482] i2c /dev entries driver
[    1.891064] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.892211] orion_wdt: Initial timeout 171 sec
[    1.893497] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.893594] hidraw: raw HID events driver (C) Jiri Kosina
[    1.897046] usbcore: registered new interface driver usbhid
[    1.897047] usbhid: USB HID core driver
[    1.897181] drop_monitor: Initializing network drop monitor service
[    1.897217] Netfilter messages via NETLINK v0.30.
[    1.897226] ip_set: protocol 6
[    1.897398] NET: Registered protocol family 10
[    1.908007] Segment Routing with IPv6
[    1.908040] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.908676] NET: Registered protocol family 17
[    1.908704] 8021q: 802.1Q VLAN Support v1.8
[    1.908734] Key type dns_resolver registered
[    1.908823] ThumbEE CPU extension supported.
[    1.908828] Registering SWP/SWPB emulation handler
[    1.926184] registered taskstats version 1
[    1.926186] Loading compiled-in X.509 certificates
[    1.926219] zswap: loaded using pool lzo/zbud
[    2.009296] Key type big_key registered
[    2.031448] Key type encrypted registered
[    2.045523] armada38x-rtc f10a3800.rtc: setting system clock to 2019-06-19 20:33:35 UTC (1560976415)
[    2.094052] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.129008] scsi 1:0:0:0: Direct-Access     ATA      ST2000DM001-1CH1 CC26 PQ: 0 ANSI: 5
[    2.137695] sd 1:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    2.145712] sd 1:0:0:0: [sda] 4096-byte physical blocks
[    2.150990] sd 1:0:0:0: [sda] Write Protect is off
[    2.155858] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.208724] ata3.00: ATA-8: WDC WD20EARX-008FB0, 51.0AB51, max UDMA/133
[    2.215387] ata3.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    2.223899] ata3.00: configured for UDMA/133
[    2.228487] scsi 2:0:0:0: Direct-Access     ATA      WDC WD20EARX-008 AB51 PQ: 0 ANSI: 5
[    2.237136] sd 2:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    2.244954] sd 2:0:0:0: [sdb] 4096-byte physical blocks
[    2.250415] scsi 3:0:0:0: Direct-Access     ATA      WDC WD20EARX-00P AB51 PQ: 0 ANSI: 5
[    2.254077] sd 2:0:0:0: [sdb] Write Protect is off
[    2.254238] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.254242] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.254356] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.264331] hub 2-1:1.0: USB hub found
[    2.264402] hub 2-1:1.0: 4 ports detected
[    2.294648] sd 3:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    2.302480] sd 3:0:0:0: [sdc] 4096-byte physical blocks
[    2.307810] sd 3:0:0:0: [sdc] Write Protect is off
[    2.312737] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.322031]  sdb: sdb1 sdb2 sdb3 sdb4
[    2.326742] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    2.338380]  sdc: sdc1
[    2.341262] sd 3:0:0:0: [sdc] Attached SCSI removable disk
[    2.394245] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.425592] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.432323] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.439983] hub 3-1:1.0: USB hub found
[    2.444015] hub 3-1:1.0: 4 ports detected
[    2.584043] usb 2-1.2: new high-speed USB device number 3 using xhci-hcd
[    2.724412] usb 2-1.2: New USB device found, idVendor=ffff, idProduct=5678
[    2.731318] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.738668] usb 2-1.2: Product: Disk 2.0
[    2.742606] usb 2-1.2: Manufacturer: USB
[    2.746552] usb 2-1.2: SerialNumber: 9207266731057219943
[    2.752202] usb-storage 2-1.2:1.0: USB Mass Storage device detected
[    2.758638] scsi host4: usb-storage 2-1.2:1.0
[    3.766367] scsi 4:0:0:0: Direct-Access     VendorCo ProductCode      2.00 PQ: 0 ANSI: 4
[    3.785243] sd 4:0:0:0: [sdd] 30720000 512-byte logical blocks: (15.7 GB/14.6 GiB)
[    3.792971] sd 4:0:0:0: [sdd] Write Protect is off
[    3.797937] sd 4:0:0:0: [sdd] No Caching mode page found
[    3.803273] sd 4:0:0:0: [sdd] Assuming drive cache: write through
[    3.811508]  sdd: sdd1
[    3.814789] sd 4:0:0:0: [sdd] Attached SCSI removable disk
[    6.528883]  sda: sda1
[    6.531756] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    6.537915] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    6.583840] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    6.587457] random: udevadm: uninitialized urandom read (16 bytes read)
[    6.588083] random: udevadm: uninitialized urandom read (16 bytes read)
[    6.588117] random: udevadm: uninitialized urandom read (16 bytes read)
[    6.588470] random: udevadm: uninitialized urandom read (16 bytes read)
[    6.588674] random: udevadm: uninitialized urandom read (16 bytes read)
[    6.588879] random: udevadm: uninitialized urandom read (16 bytes read)
[    6.589092] random: udevadm: uninitialized urandom read (16 bytes read)
[    6.589315] random: udevadm: uninitialized urandom read (16 bytes read)
[    6.589503] random: udevadm: uninitialized urandom read (16 bytes read)
[    6.841579] usbcore: registered new interface driver uas
[    6.941336] random: fast init done
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.
Warning: fsck not present, so sk[   56.375415] EXT4-fs (sdd1): mounting ext3 file system using the ext4 subsystem
ipping root file system
[   56.384636] EXT4-fs (sdd1): INFO: recovery required on readonly filesystem
[   56.392134] EXT4-fs (sdd1): write access will be enabled during recovery
[   57.308419] EXT4-fs (sdd1): recovery complete
[   57.318636] EXT4-fs (sdd1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[   58.088602] random: crng init done
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   58.779108] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   58.788713] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   58.803310] sd 3:0:0:0: Attached scsi generic sg2 type 0
[   58.809524] sd 4:0:0:0: Attached scsi generic sg3 type 0
done.
[ ok ] Activating swap:.
[   65.100265] EXT4-fs (sdd1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sdd1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 22033/960992 files, 307946/3839992 blocks
. ok 
[   65.236411] EXT4-fs (sdd1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   66.494550] m88e1318_get_wol: phy_id = 0x1410dd1 OK
[   66.499563] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/2e:87:45:78:cf:38
Sending on   LPF/eth0/2e:87:45:78:cf:38
Sending on   Socket/fallback
DHCPREQUEST of 10.0.0.234 on eth0 to 255.255.255.255 port 67
[   70.644480] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   70.652359] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPREQUEST of 10.0.0.234 on eth0 to 255.255.255.255 port 67
DHCPNAK from 10.0.0.1
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPREQUEST of 10.0.0.135 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 10.0.0.135 from 10.0.0.1
DHCPACK of 10.0.0.135 from 10.0.0.1
bound to 10.0.0.135 -- renewal in 250286 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2686 (syslogd)
. ok 
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2685 (klogd)
. ok 
[ ok ] Starting NTP server: ntpd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Tue Jun 18 16:59:09 PDT 2019 on ttyS0
Linux debian 4.12.4-mvebu-tld-1 #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian
10.0.0.135  n
WD My Cloud EX4100
Linux version 4.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017

-----
moderator edit: trimmed unnecessary log.



Edited 1 time(s). Last edit at 06/20/2019 12:48AM by bodhi.
Re: WDmycloudex4100 instructions
June 19, 2019 05:45PM
Continued

Debian 9.1
root@debian:~# sudo apt update
-bash: sudo: command not found
root@debian:~# apt update

<snip>

[ 1211.947250] EXT4-fs error (device sdd1): __ext4_new_inode:1071: comm dpkg: failed to insert inode 114022: doubly allocated?
[ 1212.432771] Aborting journal on device sdd1-8.
[ 1212.440198] EXT4-fs (sdd1): Remounting filesystem read-only
[ 1212.446147] EXT4-fs error (device sdd1) in ext4_symlink:3089: IO failure
dpkg: error processing archive /var/cache/apt/archives/libc6_2.24-11+deb9u4_armhf.deb (--unpack):
 unable to make backup symlink for './lib/ld-linux-armhf.so.3': Input/output error
dpkg: error while cleaning up:
 unable to remove newly-extracted version of '/lib/ld-linux-armhf.so.3': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of '/lib/arm-linux-gnueabihf/libutil.so.1': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of '/lib/arm-linux-gnueabihf/libthread_db.so.1': Read-only file system

<snip>

 unable to restore backup version of '/usr/lib/arm-linux-gnueabihf/gconv/IBM1146.so': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of '/usr/lib/arm-linux-gnueabihf/gconv/IBM1145.so': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of '/usr/lib/arm-linux-gnueabihf/gconv/IBM1144.so': Read-only file system
dpkg: error while cleaning up:
 unable to restore backup version of '/usr/lib/arm-linux-gnuE: Sub-process /usr/bin/dpkg returned an error code (2)
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - pkgDPkgPM::Go (30: Read-only file system)
root@debian:~# sudo
-bash: sudo: command not found
root@debian:~# aot-get  install systemd
-bash: aot-get: command not found
root@debian:~# apt-get  install systemd
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
root@debian:~# apt-get install systemd
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
root@debian:~# apt-get install systemd
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
are-properties-commonstall apt-transport-https ca-certificates curl gnupg2 softw 
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
are-properties-commonstall apt-transport-https ca-certificates curl gnupg2 softw 
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
root@debian:~# dpkg --configure -a
dpkg: error: unable to access dpkg status area: Read-only file system
root@debian:~# dpkg --configure -a
dpkg: error: unable to access dpkg status area: Read-only file system
root@debian:~# mount -o remount /dev/sda1
mount: mount point /dev/sda1 does not exist
root@debian:~# mount -o remount /dev/sda 
mount: mount point /dev/sda does not exist
root@debian:~# ls /dev/  
.                   ptyb8  ptyqd  ptyw2     tty12  ttyb5  ttyqa  ttyvf
..                  ptyb9  ptyqe  ptyw3     tty13  ttyb6  ttyqb  ttyw0
MAKEDEV             ptyba  ptyqf  ptyw4     tty14  ttyb7  ttyqc  ttyw1
autofs              ptybb  ptyr0  ptyw5     tty15  ttyb8  ttyqd  ttyw2
block               ptybc  ptyr1  ptyw6     tty16  ttyb9  ttyqe  ttyw3
bsg                 ptybd  ptyr2  ptyw7     tty17  ttyba  ttyqf  ttyw4
btrfs-control       ptybe  ptyr3  ptyw8     tty18  ttybb  ttyr0  ttyw5
bus                 ptybf  ptyr4  ptyw9     tty19  ttybc  ttyr1  ttyw6
char                ptyc0  ptyr5  ptywa     tty2   ttybd  ttyr2  ttyw7
console             ptyc1  ptyr6  ptywb     tty20  ttybe  ttyr3  ttyw8
cpu_dma_latency     ptyc2  ptyr7  ptywc     tty21  ttybf  ttyr4  ttyw9
cuse                ptyc3  ptyr8  ptywd     tty22  ttyc0  ttyr5  ttywa
disk                ptyc4  ptyr9  ptywe     tty23  ttyc1  ttyr6  ttywb
fd                  ptyc5  ptyra  ptywf     tty24  ttyc2  ttyr7  ttywc
full                ptyc6  ptyrb  ptyx0     tty25  ttyc3  ttyr8  ttywd
fuse                ptyc7  ptyrc  ptyx1     tty26  ttyc4  ttyr9  ttywe
gpiochip0           ptyc8  ptyrd  ptyx2     tty27  ttyc5  ttyra  ttywf
gpiochip1           ptyc9  ptyre  ptyx3     tty28  ttyc6  ttyrb  ttyx0
i2c-0               ptyca  ptyrf  ptyx4     tty29  ttyc7  ttyrc  ttyx1
i2c-1               ptycb  ptys0  ptyx5     tty3   ttyc8  ttyrd  ttyx2
input               ptycc  ptys1  ptyx6     tty30  ttyc9  ttyre  ttyx3
kmem                ptycd  ptys2  ptyx7     tty31  ttyca  ttyrf  ttyx4
kmsg                ptyce  ptys3  ptyx8     tty32  ttycb  ttys0  ttyx5
log                 ptycf  ptys4  ptyx9     tty33  ttycc  ttys1  ttyx6
loop-control        ptyd0  ptys5  ptyxa     tty34  ttycd  ttys2  ttyx7
mapper              ptyd1  ptys6  ptyxb     tty35  ttyce  ttys3  ttyx8
mem                 ptyd2  ptys7  ptyxc     tty36  ttycf  ttys4  ttyx9
memory_bandwidth    ptyd3  ptys8  ptyxd     tty37  ttyd0  ttys5  ttyxa
mtd0                ptyd4  ptys9  ptyxe     tty38  ttyd1  ttys6  ttyxb
mtd0ro              ptyd5  ptysa  ptyxf     tty39  ttyd2  ttys7  ttyxc
mtd1                ptyd6  ptysb  ptyy0     tty4   ttyd3  ttys8  ttyxd
mtd1ro              ptyd7  ptysc  ptyy1     tty40  ttyd4  ttys9  ttyxe
mtd2                ptyd8  ptysd  ptyy2     tty41  ttyd5  ttysa  ttyxf
mtd2ro              ptyd9  ptyse  ptyy3     tty42  ttyd6  ttysb  ttyy0
mtd3                ptyda  ptysf  ptyy4     tty43  ttyd7  ttysc  ttyy1
mtd3ro              ptydb  ptyt0  ptyy5     tty44  ttyd8  ttysd  ttyy2
mtd4                ptydc  ptyt1  ptyy6     tty45  ttyd9  ttyse  ttyy3
mtd4ro              ptydd  ptyt2  ptyy7     tty46  ttyda  ttysf  ttyy4
mtd5                ptyde  ptyt3  ptyy8     tty47  ttydb  ttyt0  ttyy5
mtd5ro              ptydf  ptyt4  ptyy9     tty48  ttydc  ttyt1  ttyy6
mtd6                ptye0  ptyt5  ptyya     tty49  ttydd  ttyt2  ttyy7
mtd6ro              ptye1  ptyt6  ptyyb     tty5   ttyde  ttyt3  ttyy8
mtd7                ptye2  ptyt7  ptyyc     tty50  ttydf  ttyt4  ttyy9
mtd7ro              ptye3  ptyt8  ptyyd     tty51  ttye0  ttyt5  ttyya
mtdblock0           ptye4  ptyt9  ptyye     tty52  ttye1  ttyt6  ttyyb
mtdblock1           ptye5  ptyta  ptyyf     tty53  ttye2  ttyt7  ttyyc
mtdblock2           ptye6  ptytb  ptyz0     tty54  ttye3  ttyt8  ttyyd
mtdblock3           ptye7  ptytc  ptyz1     tty55  ttye4  ttyt9  ttyye
mtdblock4           ptye8  ptytd  ptyz2     tty56  ttye5  ttyta  ttyyf
mtdblock5           ptye9  ptyte  ptyz3     tty57  ttye6  ttytb  ttyz0
mtdblock6           ptyea  ptytf  ptyz4     tty58  ttye7  ttytc  ttyz1
mtdblock7           ptyeb  ptyu0  ptyz5     tty59  ttye8  ttytd  ttyz2
net                 ptyec  ptyu1  ptyz6     tty6   ttye9  ttyte  ttyz3
network_latency     ptyed  ptyu2  ptyz7     tty60  ttyea  ttytf  ttyz4
network_throughput  ptyee  ptyu3  ptyz8     tty61  ttyeb  ttyu0  ttyz5
null                ptyef  ptyu4  ptyz9     tty62  ttyec  ttyu1  ttyz6
port                ptyp0  ptyu5  ptyza     tty63  ttyed  ttyu2  ttyz7
ppp                 ptyp1  ptyu6  ptyzb     tty7   ttyee  ttyu3  ttyz8
psaux               ptyp2  ptyu7  ptyzc     tty8   ttyef  ttyu4  ttyz9
ptmx                ptyp3  ptyu8  ptyzd     tty9   ttyp0  ttyu5  ttyza
pts                 ptyp4  ptyu9  ptyze     ttyS0  ttyp1  ttyu6  ttyzb
ptya0               ptyp5  ptyua  ptyzf     ttyS1  ttyp2  ttyu7  ttyzc
ptya1               ptyp6  ptyub  random    ttyS2  ttyp3  ttyu8  ttyzd
ptya2               ptyp7  ptyuc  rtc       ttyS3  ttyp4  ttyu9  ttyze
ptya3               ptyp8  ptyud  rtc0      ttya0  ttyp5  ttyua  ttyzf
ptya4               ptyp9  ptyue  sdb       ttya1  ttyp6  ttyub  ubi_ctrl
ptya5               ptypa  ptyuf  sdb1      ttya2  ttyp7  ttyuc  uhid
ptya6               ptypb  ptyv0  sdb2      ttya3  ttyp8  ttyud  uinput
ptya7               ptypc  ptyv1  sdb3      ttya4  ttyp9  ttyue  urandom
ptya8               ptypd  ptyv2  sdb4      ttya5  ttypa  ttyuf  vcs
ptya9               ptype  ptyv3  sdd       ttya6  ttypb  ttyv0  vcs1
ptyaa               ptypf  ptyv4  sdd1      ttya7  ttypc  ttyv1  vcsa
ptyab               ptyq0  ptyv5  sg1       ttya8  ttypd  ttyv2  vcsa1
ptyac               ptyq1  ptyv6  sg3       ttya9  ttype  ttyv3  vga_arbiter
ptyad               ptyq2  ptyv7  shm       ttyaa  ttypf  ttyv4  vhci
ptyae               ptyq3  ptyv8  snapshot  ttyab  ttyq0  ttyv5  watchdog
ptyaf               ptyq4  ptyv9  snd       ttyac  ttyq1  ttyv6  watchdog0
ptyb0               ptyq5  ptyva  stderr    ttyad  ttyq2  ttyv7  zero
ptyb1               ptyq6  ptyvb  stdin     ttyae  ttyq3  ttyv8
ptyb2               ptyq7  ptyvc  stdout    ttyaf  ttyq4  ttyv9
ptyb3               ptyq8  ptyvd  tty       ttyb0  ttyq5  ttyva
ptyb4               ptyq9  ptyve  tty0      ttyb1  ttyq6  ttyvb
ptyb5               ptyqa  ptyvf  tty1      ttyb2  ttyq7  ttyvc
ptyb6               ptyqb  ptyw0  tty10     ttyb3  ttyq8  ttyvd
ptyb7               ptyqc  ptyw1  tty11     ttyb4  ttyq9  ttyve
root@debian:~# ls /dev/disk/
.  ..  by-id  by-label  by-partlabel  by-partuuid  by-path  by-uuid
root@debian:~# ls /dev/disk/by-label/
.  ..  rootfs
root@debian:~# ls -lah /dev/disk/by-label/   
total 0
drwxr-xr-x 2 root root  60 Jun 19 13:40 .
drwxr-xr-x 8 root root 160 Jun 19 13:33 ..
lrwxrwxrwx 1 root root  10 Jun 19 13:34 rootfs -> ../../sdd1
root@debian:~# sudo mount / -o remount,rw 
-bash: sudo: command not found
root@debian:~# /usr/bin/sudo 
-bash: /usr/bin/sudo: No such file or directory
root@debian:~# /usr/bin/    
-bash: /usr/bin/: Is a directory
root@debian:~# ls /usr/bin
.                                   neqn
..                                  newgrp
2to3                                nice
2to3-2.7                            nl
[                                   nohup
addpart                             nproc
apropos                             nroff
apt                                 nsenter
apt-cache                           nstat
apt-cdrom                           ntpdc
apt-config                          ntpq
apt-extracttemplates                ntpsweep
apt-ftparchive                      ntptrace
apt-get                             numfmt
apt-key                             od
apt-mark                            openssl
apt-sortpkgs                        pager
arch                                partx
awk                                 passwd
b2sum                               paste
base32                              pathchk
base64                              pdb
basename                            pdb2.7
bashbug                             perf
bootctl                             perl
bsd-from                            perl5.24-arm-linux-gnueabihf
bsd-write                           perl5.24.1
busctl                              perlbug
c2ph                                perldoc
c_rehash                            perlivp
cal                                 perlthanks
calc_tickadj                        pg
calendar                            pgrep
captoinfo                           pic
catchsegv                           pico
catman                              piconv
chacl                               pinentry
chage                               pinentry-curses
chattr                              pinky
chcon                               pkill
chfn                                pl2pm
chrt                                pldd
chsh                                pmap
cksum                               pmount
clear                               pod2html
clear_console                       pod2man
cmp                                 pod2text
col                                 pod2usage
colcrt                              podchecker
colrm                               podselect
column                              pr
comm                                preconv
compose                             prename
corelist                            print
cpan                                printenv
cpan5.24-arm-linux-gnueabihf        printerbanner
crontab                             printf
csplit                              prlimit
ctstat                              prove
cut                                 pstruct
dbus-cleanup-sockets                ptar
dbus-daemon                         ptardiff
dbus-monitor                        ptargrep
dbus-run-session                    ptx
dbus-send                           pumount
dbus-update-activation-environment  pwdx
dbus-uuidgen                        pyclean
ddcmon                              pycompile
deb-systemd-helper                  pydoc
deb-systemd-invoke                  pydoc2.7
debconf                             pygettext
debconf-apt-progress                pygettext2.7
debconf-communicate                 python
debconf-copydb                      python2
debconf-escape                      python2.7
debconf-set-selections              pyversions
debconf-show                        qemu-arm-static
decode-dimms                        rcp
decode-edid                         realpath
decode-vaio                         rename
delpart                             rename.ul
dh_python2                          renice
dialog                              reset
diff                                resizepart
diff3                               rev
dircolors                           rgrep
dirname                             rlogin
dpkg                                routef
dpkg-deb                            routel
dpkg-divert                         rsh
dpkg-maintscript-helper             rsync
dpkg-query                          rtstat
dpkg-split                          run-mailcap
dpkg-statoverride                   runcon
dpkg-trigger                        rview
du                                  savelog
dumpimage                           scp
edit                                script
editor                              scriptreplay
enc2xs                              sdiff
encguess                            see
env                                 select-editor
eqn                                 sensible-browser
ex                                  sensible-editor
expand                              sensible-pager
expiry                              seq
expr                                setarch
factor                              setfacl
faillog                             setsid
fallocate                           setterm
find                                sftp
flock                               sg
fmt                                 sha1sum
fold                                sha224sum
free                                sha256sum
from                                sha384sum
fw_printenv                         sha512sum
fw_setenv                           shasum
geqn                                shred
getconf                             shuf
getent                              skill
getfacl                             slabtop
getopt                              slogin
gpasswd                             snice
gpg                                 soelim
gpg-agent                           sort
gpg-connect-agent                   splain
gpg-zip                             split
gpgconf                             ssh
gpgparsemail                        ssh-add
gpgsplit                            ssh-agent
gpgv                                ssh-argv0
gpic                                ssh-copy-id
groff                               ssh-keygen
grog                                ssh-keyscan
grops                               stat
grotty                              stdbuf
groups                              sum
gtbl                                symcryptrun
h2ph                                systemd-analyze
h2xs                                systemd-cat
hd                                  systemd-cgls
head                                systemd-cgtop
helpztags                           systemd-delta
hexdump                             systemd-detect-virt
host                                systemd-mount
hostid                              systemd-path
hostnamectl                         systemd-resolve
htop                                systemd-run
iconv                               systemd-socket-activate
id                                  systemd-stdio-bridge
infocmp                             tabs
infotocap                           tac
install                             tail
instmodsh                           tasksel
ionice                              taskset
ipcmk                               tbl
ipcrm                               tee
ipcs                                test
iperf                               tic
iptables-xml                        timedatectl
ischroot                            timeout
join                                tload
json_pp                             toe
kbxutil                             top
kernel-install                      touch
kwboot                              tput
last                                tr
lastb                               traceproto
lastlog                             traceproto.db
lcf                                 traceroute
ldd                                 traceroute-nanog
less                                traceroute.db
lessecho                            traceroute6
lessfile                            traceroute6.db
lesskey                             troff
lesspipe                            truncate
lexgrog                             tset
lft                                 tsort
lft.db                              tty
libnetcfg                           tzselect
line                                ucf
link                                ucfq
linux-check-removal                 ucfr
linux-update-symlinks               ul
linux-version                       unexpand
linux32                             uniq
linux64                             unlink
lnstat                              unlzma
locale                              unmkinitramfs
localectl                           unshare
localedef                           unxz
logger                              update-alternatives
logname                             update-leap
look                                uptime
lorder                              users
lsattr                              utmpdump
lscpu                               vi
lsinitramfs                         view
lsipc                               vim.tiny
lslocks                             vmstat
lslogins                            w
lsns                                w.procps
lspgpot                             wall
lzcat                               watch
lzcmp                               watchgnupg
lzdiff                              wc
lzegrep                             wget
lzfgrep                             whatis
lzgrep                              whereis
lzless                              which
lzma                                whiptail
lzmainfo                            who
lzmore                              whoami
man                                 write
mandb                               xargs
manpath                             xsubpp
mawk                                xxd
mcookie                             xz
md5sum                              xzcat
md5sum.textutils                    xzcmp
mesg                                xzdiff
migrate-pubring-from-classic-gpg    xzegrep
mkenvimage                          xzfgrep
mkfifo                              xzgrep
mkimage                             xzless
mksunxiboot                         xzmore
namei                               yes
nawk                                zdump
ncal                                zipdetails
root@debian:~# ls /usr/bin | grep sudol
root@debian:~# ls /usr/bin | grep sudo 
root@debian:~# ls /usr/bin | grep su   
b2sum
cksum
md5sum
md5sum.textutils
mksunxiboot
sha1sum
sha224sum
sha256sum
sha384sum
sha512sum
shasum
sum
xsubpp
root@debian:~# qZsu -
-bash: qZsu: command not found
root@debian:~# 
root@debian:~# su -
debian
10.0.0.135  n
WD My Cloud EX4100
Linux version 4.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017
Debian 9.9
Wed Jun 19 15:33:11 PDT 2019 up 1 hour, 59 minutes
root@debian:~# 
root@debian:~# apt-get install sudo -y
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
root@debian:~# 
root@debian:~# dpkg --configure -a
dpkg: error: unable to access dpkg status area: Read-only file system

------
moderator edit: trimmed unecessary log



Edited 1 time(s). Last edit at 06/20/2019 12:50AM by bodhi.
Re: WDmycloudex4100 instructions
June 20, 2019 12:54AM
Johnei,

Take the USB rootfs to another Linux and check/fix file systems error. Assuming it is detected /dev/sdb1

e2fsck /dev/sdb1

Answer yes to fix any errors, and then
sync
sync

Unmount the USB drive.

And boot the WD Ex4100 with the USB again.

Log into Debian

mount

And proceed to do

apt-get upgrade

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 06/20/2019 12:55AM by bodhi.
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: