Usb detected but can not access

I am new to openwrt. Recently I got a router with usb support and I flashed it with openwrt. But now I am facing problem with can not access my usb. My kernel shows me the message that it is in sda1. But how to access it like a nas.

Wed Feb 22 06:49:17 2017 kern.info kernel: [  784.831704] usb 1-1: new high-speed USB device number 2 using ehci-platform
Wed Feb 22 06:49:18 2017 kern.info kernel: [  784.984542] usb-storage 1-1:1.0: USB Mass Storage device detected
Wed Feb 22 06:49:18 2017 kern.info kernel: [  784.992228] scsi host0: usb-storage 1-1:1.0
Wed Feb 22 06:49:19 2017 kern.notice kernel: [  785.993047] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.01 PQ: 0 ANSI: 2
Wed Feb 22 06:49:19 2017 kern.notice kernel: [  786.013144] sd 0:0:0:0: [sda] 7821312 512-byte logical blocks: (4.00 GB/3.73 GiB)
Wed Feb 22 06:49:19 2017 kern.notice kernel: [  786.022438] sd 0:0:0:0: [sda] Write Protect is off
Wed Feb 22 06:49:19 2017 kern.debug kernel: [  786.027416] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
Wed Feb 22 06:49:19 2017 kern.err kernel: [  786.028161] sd 0:0:0:0: [sda] No Caching mode page found
Wed Feb 22 06:49:19 2017 kern.err kernel: [  786.033744] sd 0:0:0:0: [sda] Assuming drive cache: write through
Wed Feb 22 06:49:19 2017 kern.info kernel: [  786.050923]  sda: sda1 < sda5 >
Wed Feb 22 06:49:19 2017 kern.notice kernel: [  786.060922] sd 0:0:0:0: [sda] Attached SCSI removable disk

It looks like you've got the kernel modules you need to recognize the USB drive, but perhaps not those for the file system on it, as well as perhaps needing the utilities to mount the device. "Access it like a NAS" would suggest that you're looking for NFS or Samba as well.

https://openwrt.org/docs/guide-user/storage/usb-drives might be a good starting point for more information.

2 Likes

I have only 103kb left in my router. So it's impossible to load all the module for me. So is there any way that will help me to install modules in my usb storage.

Which router do you have? What have you installed on it, both in terms of OpenWrt, as well as packages you might have added?

Suggested reading regarding devices with low flash/RAM (yes, you should read them all and thoroughly.):