Need help getting SD Card on USB dongle/modem to work as exroot storage
I install
opkg install block-mount kmod-fs-ext4 e2fsprogs fdisk kmod-usb-storage kmod-usb-uhci kmod-usb-net-cdc-ether usb-modeswitch
and get the following on preinit stage of boot log (as per the troubleshooting exroot guidelines)
root@OpenWrt:~# block info; uci show fstab; logread | sed -n -e "/- preinit -/,/- init -/p"
/dev/mtdblock3: UUID="7c5eed31-ae17fbc8-caba8b62-e61e3dfd" VERSION="4.0" MOUNT="/rom" TYPE="squashfs"
/dev/mtdblock4: MOUNT="/overlay" TYPE="jffs2"
/dev/sda1: UUID="8e1fc956-98a9-4168-9977-fdb664ce0bfe" VERSION="1.0" TYPE="ext4"
fstab.@global[0]=global
fstab.@global[0].anon_swap='0'
fstab.@global[0].anon_mount='0'
fstab.@global[0].auto_swap='1'
fstab.@global[0].auto_mount='1'
fstab.@global[0].delay_root='5'
fstab.@global[0].check_fs='0'
fstab.rwm=mount
fstab.rwm.device='/dev/mtdblock4'
fstab.rwm.target='/rwm'
fstab.overlay=mount
fstab.overlay.uuid='8e1fc956-98a9-4168-9977-fdb664ce0bfe'
fstab.overlay.target='/overlay'
Fri Oct 7 23:28:11 2022 user.info kernel: [ 2.764059] init: - preinit -
Fri Oct 7 23:28:11 2022 kern.notice kernel: [ 3.993505] random: jshn: uninitialized urandom read (4 bytes read)
Fri Oct 7 23:28:11 2022 kern.notice kernel: [ 4.109969] random: jshn: uninitialized urandom read (4 bytes read)
Fri Oct 7 23:28:11 2022 kern.notice kernel: [ 4.215388] random: jshn: uninitialized urandom read (4 bytes read)
Fri Oct 7 23:28:11 2022 kern.info kernel: [ 7.812908] usb 1-1: new high-speed USB device number 2 using ehci-platform
Fri Oct 7 23:28:11 2022 kern.notice kernel: [ 9.275559] jffs2: notice: (422) jffs2_build_xattr_subsystem: complete building xattr subsystem, 35 of xdatum (29 unchecked, 4 orphan) and 54 of xref (10 dead, 0 orphan) found.
Fri Oct 7 23:28:11 2022 user.info kernel: [ 9.298572] mount_root: loading kmods from internal overlay
Fri Oct 7 23:28:11 2022 user.info kernel: [ 9.522419] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
Fri Oct 7 23:28:11 2022 kern.notice kernel: [ 9.895170] SCSI subsystem initialized
Fri Oct 7 23:28:11 2022 kern.info kernel: [ 9.923086] ehci-pci: EHCI PCI platform driver
Fri Oct 7 23:28:11 2022 kern.info kernel: [ 9.939342] uhci_hcd: USB Universal Host Controller Interface driver
Fri Oct 7 23:28:11 2022 kern.info kernel: [ 9.948372] ohci-pci: OHCI PCI platform driver
Fri Oct 7 23:28:11 2022 kern.info kernel: [ 9.976202] usb-storage 1-1:1.0: USB Mass Storage device detected
Fri Oct 7 23:28:11 2022 kern.info kernel: [ 9.983108] usb-storage 1-1:1.0: Quirks match for vid 19d2 pid 1225: 1
Fri Oct 7 23:28:11 2022 kern.info kernel: [ 9.990699] scsi host0: usb-storage 1-1:1.0
Fri Oct 7 23:28:11 2022 kern.info kernel: [ 9.995779] usbcore: registered new interface driver usb-storage
Fri Oct 7 23:28:11 2022 user.info kernel: [ 10.003658] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
Fri Oct 7 23:28:11 2022 user.info kernel: [ 10.176976] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Fri Oct 7 23:28:11 2022 user.info kernel: [ 10.187610] block: extroot: device not present, retrying in 5 seconds
Fri Oct 7 23:28:11 2022 kern.notice kernel: [ 11.063666] scsi 0:0:0:0: CD-ROM DEMO USB SCSI CD-ROM 2.31 PQ: 0 ANSI: 2
Fri Oct 7 23:28:11 2022 kern.info kernel: [ 14.237251] usb 1-1: USB disconnect, device number 2
Fri Oct 7 23:28:11 2022 kern.info kernel: [ 14.692915] usb 1-1: new high-speed USB device number 3 using ehci-platform
Fri Oct 7 23:28:11 2022 kern.info kernel: [ 14.897487] usb-storage 1-1:1.2: USB Mass Storage device detected
Fri Oct 7 23:28:11 2022 kern.info kernel: [ 14.906488] scsi host0: usb-storage 1-1:1.2
Fri Oct 7 23:28:11 2022 user.err kernel: [ 15.301320] block: extroot: cannot find device with UUID 8e1fc956-98a9-4168-9977-fdb664ce0bfe
Fri Oct 7 23:28:11 2022 user.info kernel: [ 15.311562] mount_root: switching to jffs2 overlay
Fri Oct 7 23:28:11 2022 kern.warn kernel: [ 15.319958] overlayfs: upper fs does not support tmpfile.
Fri Oct 7 23:28:11 2022 user.warn kernel: [ 15.375219] urandom-seed: Seeding with /etc/urandom.seed
Fri Oct 7 23:28:11 2022 user.info kernel: [ 15.535235] procd: - early -
Fri Oct 7 23:28:11 2022 user.info kernel: [ 15.538623] procd: - watchdog -
Fri Oct 7 23:28:11 2022 kern.notice kernel: [ 16.023128] scsi 0:0:0:0: Direct-Access DEMO MMC Storage 2.31 PQ: 0 ANSI: 2
Fri Oct 7 23:28:11 2022 kern.warn kernel: [ 16.045186] sd 0:0:0:0: Power-on or device reset occurred
Fri Oct 7 23:28:11 2022 kern.notice kernel: [ 16.063988] sd 0:0:0:0: [sda] 124735488 512-byte logical blocks: (63.9 GB/59.5 GiB)
Fri Oct 7 23:28:11 2022 kern.notice kernel: [ 16.150040] sd 0:0:0:0: [sda] Write Protect is off
Fri Oct 7 23:28:11 2022 kern.debug kernel: [ 16.154982] sd 0:0:0:0: [sda] Mode Sense: 0f 00 00 00
Fri Oct 7 23:28:11 2022 kern.notice kernel: [ 16.155852] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Fri Oct 7 23:28:11 2022 kern.info kernel: [ 16.185517] sda: sda1
Fri Oct 7 23:28:11 2022 kern.notice kernel: [ 16.194629] sd 0:0:0:0: [sda] Attached SCSI removable disk
Fri Oct 7 23:28:11 2022 kern.notice kernel: [ 16.318663] random: jshn: uninitialized urandom read (4 bytes read)
Fri Oct 7 23:28:11 2022 kern.notice kernel: [ 16.638731] random: jshn: uninitialized urandom read (4 bytes read)
Fri Oct 7 23:28:11 2022 user.info kernel: [ 16.690720] procd: - watchdog -
Fri Oct 7 23:28:11 2022 user.info kernel: [ 16.698677] procd: - ubus -
Fri Oct 7 23:28:11 2022 kern.notice kernel: [ 16.993179] random: ubusd: uninitialized urandom read (4 bytes read)
Fri Oct 7 23:28:11 2022 user.info kernel: [ 17.034269] procd: - init -
root@OpenWrt:~#
I've tried all the troubleshooting tips on
after following the steps to transfer to USB, none worked.
It's a ethernet ready dongle, no settings, nothing required. Plug and play, shows up as eth1, how to I utilize the SD Card on it, thanks.
Edit:
Edited my fstab
Increased the delay to 15 seconds
Option enabled to 1
config global
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '15'
option check_fs '0'
config mount
option target '/mnt/sda1'
option uuid '8e1fc956-98a9-4168-9977-fdb664ce0bfe'
option enabled '1'
It now mounts df -h
root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 3.8M 3.8M 0 100% /rom
tmpfs 28.1M 268.0K 27.9M 1% /tmp
/dev/mtdblock4 2.0M 1.8M 220.0K 89% /overlay
overlayfs:/overlay 2.0M 1.8M 220.0K 89% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda1 58.2G 3.9M 55.2G 0% /mnt/sda1