OpenWrt Forum Archive

Topic: After reboot SDA1 & SDA2 are missing

The content of this topic has been archived on 29 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi there,

I am using an USB Storage stick to extend storage fro MR3020 - so I can install additional packaged required for a script. It worked like a charm with installed services and scripts. Now I had to reboot the device because a script was failing.

After the reboot, SDA1 & SDA2 are missing. If I run via SSH the command:
- ls /dev | grep sda

it returns only ' sda ' where normally it returns ' sda sda1 sda2' .

packages required for supporting this usb ' block-mount, kmod-fs-ext4 and kmod-usb-storage are still present.

What can it be? And or how can I enable the sda1 and sd2 again?

When you plug in the USB memory stick, execute dmesg at the shell prompt and see what it says.

Do you have more than one storage device?
Does that device work in other computers (specifically, can you at least see the partitions)?

@mazilo

this is the output:

[    0.000000] Linux version 3.18.23 (perus@ub1510) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r47278) ) #4 Mon Feb 29 23:20:08 EET 2016
[    0.000000] MyLoader: sysp=5306ac2e, boardp=8e303482, parts=f904f9ea
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x01ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 803580f0, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=TL-MR3020  console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 28456K/32768K available (2477K kernel code, 126K rwdata, 528K rodata, 252K init, 188K bss, 4312K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] NET: Registered protocol family 16
[    0.100000] MIPS: machine is TP-LINK TL-MR3020
[    0.370000] Switched to clocksource MIPS
[    0.370000] NET: Registered protocol family 2
[    0.380000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.380000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.380000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.390000] TCP: reno registered
[    0.390000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.410000] NET: Registered protocol family 1
[    0.410000] PCI: CLS 0 bytes, default 32
[    0.410000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.430000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.430000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.440000] msgmni has been set to 55
[    0.460000] io scheduler noop registered
[    0.460000] io scheduler deadline registered (default)
[    0.460000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.470000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a AR933X UART
[    0.480000] console [ttyATH0] enabled
[    0.480000] bootconsole [early0] disabled
[    0.500000] m25p80 spi0.0: found w25q32, expected m25p80
[    0.500000] m25p80 spi0.0: w25q32 (4096 Kbytes)
[    0.500000] 5 tp-link partitions found on MTD device spi0.0
[    0.510000] Creating 5 MTD partitions on "spi0.0":
[    0.510000] 0x000000000000-0x000000020000 : "u-boot"
[    0.520000] 0x000000020000-0x0000001357c0 : "kernel"
[    0.530000] 0x0000001357c0-0x0000003f0000 : "rootfs"
[    0.530000] mtd: device 2 (rootfs) set to be root filesystem
[    0.540000] 1 squashfs-split partitions found on MTD device rootfs
[    0.540000] 0x0000003a0000-0x0000003f0000 : "rootfs_data"
[    0.550000] 0x0000003f0000-0x000000400000 : "art"
[    0.550000] 0x000000020000-0x0000003f0000 : "firmware"
[    0.580000] libphy: ag71xx_mdio: probed
[    1.170000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.180000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.180000] TCP: cubic registered
[    1.180000] NET: Registered protocol family 17
[    1.190000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.200000] 8021q: 802.1Q VLAN Support v1.8
[    1.210000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.220000] Freeing unused kernel memory: 252K (80371000 - 803b0000)
[    2.520000] init: Console is alive
[    2.520000] init: - watchdog -
[    4.450000] usbcore: registered new interface driver usbfs
[    4.450000] usbcore: registered new interface driver hub
[    4.460000] usbcore: registered new device driver usb
[    4.520000] SCSI subsystem initialized
[    4.530000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.540000] ehci-platform: EHCI generic platform driver
[    4.540000] ehci-platform ehci-platform: EHCI Host Controller
[    4.540000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    4.550000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    4.580000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    4.580000] hub 1-0:1.0: USB hub found
[    4.580000] hub 1-0:1.0: 1 port detected
[    4.590000] usbcore: registered new interface driver usb-storage
[    4.640000] init: - preinit -
[    5.270000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    5.500000] random: procd urandom read with 8 bits of entropy available
[    8.320000] eth0: link up (100Mbps/Full duplex)
[    8.750000] mount_root: loading kmods from internal overlay
[    9.040000] jffs2: notice: (357) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    9.050000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    9.060000] block: extroot: device not present, retrying in 5 seconds
[   14.070000] block: extroot: cannot find device sda2
[   14.100000] jffs2: notice: (354) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   14.260000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   14.270000] block: extroot: device not present, retrying in 5 seconds
[   15.030000] usb 1-1: new high-speed USB device number 3 using ehci-platform
[   15.180000] usb-storage 1-1:1.0: USB Mass Storage device detected
[   15.180000] scsi host0: usb-storage 1-1:1.0
[   16.190000] scsi 0:0:0:0: Direct-Access     USB      Flash Drive      2.00 PQ: 0 ANSI: 0
[   16.200000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   19.280000] block: extroot: cannot find device sda2
[   19.280000] mount_root: switching to jffs2 overlay
[   19.330000] eth0: link down
[   19.340000] procd: - early -
[   19.350000] procd: - watchdog -
[   20.230000] procd: - ubus -
[   21.250000] procd: - init -
[   22.330000] NET: Registered protocol family 10
[   22.340000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   22.360000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
[   22.370000] Backport generated by backports.git backports-20151218-0-g2f58d9d
[   22.380000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   22.400000] nf_conntrack version 0.5.0 (448 buckets, 1792 max)
[   22.450000] xt_time: kernel timezone is -0000
[   22.580000] PPP generic driver version 2.4.2
[   22.580000] NET: Registered protocol family 24
[   22.650000] ath: EEPROM regdomain: 0x0
[   22.650000] ath: EEPROM indicates default country code should be used
[   22.650000] ath: doing EEPROM country->regdmn map search
[   22.650000] ath: country maps to regdmn code: 0x3a
[   22.650000] ath: Country alpha2 being used: US
[   22.650000] ath: Regpair used: 0x3a
[   22.660000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   22.660000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   33.430000] device eth0 entered promiscuous mode
[   33.430000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   36.170000] eth0: link up (100Mbps/Full duplex)
[   36.170000] br-lan: port 1(eth0) entered forwarding state
[   36.180000] br-lan: port 1(eth0) entered forwarding state
[   36.180000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   38.180000] br-lan: port 1(eth0) entered forwarding state
[   75.970000] random: nonblocking pool is initialized
[ 1727.750000] usb 1-1: USB disconnect, device number 3
[ 1733.040000] usb 1-1: new high-speed USB device number 4 using ehci-platform
[ 1733.260000] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 1733.270000] scsi host1: usb-storage 1-1:1.0
[ 1734.270000] scsi 1:0:0:0: Direct-Access     Kingston DataTraveler 2.0 0000 PQ: 0 ANSI: 4
[ 1734.280000] sd 1:0:0:0: [sda] 30535744 512-byte logical blocks: (15.6 GB/14.5 GiB)
[ 1734.290000] sd 1:0:0:0: [sda] Write Protect is off
[ 1734.290000] sd 1:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 1734.300000] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1734.320000]  sda: sda1 sda2
[ 1734.330000] sd 1:0:0:0: [sda] Attached SCSI removable disk

Does it say somehting to you?

[ 1734.280000] sd 1:0:0:0: [sda] 30535744 512-byte logical blocks: (15.6 GB/14.5 GiB)
[ 1734.290000] sd 1:0:0:0: [sda] Write Protect is off
[ 1734.290000] sd 1:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 1734.300000] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1734.320000]  sda: sda1 sda2
[ 1734.330000] sd 1:0:0:0: [sda] Attached SCSI removable disk

Looks like the system does find sda1 and sda2... no idea why they do not show, however.

dmesg wrote:

[   19.280000] block: extroot: cannot find device sda2
[   19.280000] mount_root: switching to jffs2 overlay
<some 1700 seconds into the future>
[ 1727.750000] usb 1-1: USB disconnect, device number 3
[ 1733.040000] usb 1-1: new high-speed USB device number 4 using ehci-platform
[ 1733.260000] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 1733.270000] scsi host1: usb-storage 1-1:1.0
[ 1734.270000] scsi 1:0:0:0: Direct-Access     Kingston DataTraveler 2.0 0000 PQ: 0 ANSI: 4
[ 1734.280000] sd 1:0:0:0: [sda] 30535744 512-byte logical blocks: (15.6 GB/14.5 GiB)
[ 1734.290000] sd 1:0:0:0: [sda] Write Protect is off
[ 1734.290000] sd 1:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 1734.300000] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1734.320000]  sda: sda1 sda2
[ 1734.330000] sd 1:0:0:0: [sda] Attached SCSI removable disk

The discussion might have continued from here.