OpenWrt Forum Archive

Topic: Accessing USB stick

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

How can I tell if OpenWrt sees the USB stick which has been inserted?

Would it be seen as /dev/sda?

login via ssh and type

dmesg
rj-45 wrote:

login via ssh and type

dmesg

I did that but didn't understand what it meant or how to mount it

usb 1-1.1: new high speed USB device number 3 using ehci-platform

I tried following the links although there is plenty of scope for misunderstanding.

I've now installed kmod-usb-storage but am unable to install kmode-fs-msdosfs...

What is the OpenWrt equivalent of lsblk or blkid?

When a USB stick is inserted there are dmesg msgs showing USB Mass Storage device detected, but I am unable to mount it.

did you install

kmod-usb2

Yes.  I installed:-
kmod-usb2
kmod-usb-storage

But was unable to install:-
kmod-fs-msdofs

the error message would be helpful

rj-45 wrote:

the error message would be helpful

Unknown package 'kmod-fs-msdosfs'.

ntfs installed ok.

It's kmod-fs-msdos.  You may need kmod-fs-vfat or kmod-fs-extfat depending on the format on the drive.

I managed to access an NTFS formatted USB stick, so I'm getting the hang of it.
Accessing a FAT partition is still on my ToDo list...

balanga wrote:

Yes.  I installed:-
kmod-usb2
kmod-usb-storage

But was unable to install:-
kmod-fs-msdofs

Hi,i got one tl-wr720n,and flash with `openw71xx-generic-tl-wr720n-v3-squashfs-factory.bin`.
When i input `opkg install kmod-usb-storage`,the result is:
Unknown package 'kmod-usb-storage'.
Collected errors:
* opkg_install_cmd: Cannot install package kmod-usb-storage.

Now,how should i solve it?Thank you.

did you run

opkg update

But I think the 720n hasn't enough space to install the packages
https://wiki.openwrt.org/toh/tp-link/tl-wr720n, it has only 4MB flash

(Last edited by rj-45 on 25 Feb 2018, 13:10)

@yiwang

Devices with only 4MB flash have serious problems with not enough space being available for installation of additional packages. Suggested reading regarding devices with low flash/RAM (yes, you should read them all and thoroughly.):

(Last edited by tmo26 on 25 Feb 2018, 14:24)

The discussion might have continued from here.