OpenWrt Forum Archive

Topic: Openwrt, WL-500gd, not be able to mount USB drive

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

Firmware used :

http://downloads.openwrt.org/attitude_a … uashfs.trx

Router : WL-500gd

this is going to mount the USB drive, but somehow the problem persisted, error message below, please help.

mount: mounting /dev/sdb1 on /mnt/share failed: Invalid argument

REF:
http://wiki.openwrt.org/doc/howto/usb.storage
http://store.jpgottech.com/support/tp-l … ing-guide/

firmware, or uses opkg update and install,
http://downloads.openwrt.org/attitude_a … x/generic/



my mounting process,

root@OpenWrt:~# mkswap /dev/sdb2
Setting up swapspace version 1, size = 518304 KiB
no label, UUID=355a951e-ddac-4f5a-9311-f6e664a58e00
root@OpenWrt:~# swapon /dev/sdb2
root@OpenWrt:~# mkdir -p /mnt/share
root@OpenWrt:~# mount -t ext4 /dev/sdb1 /mnt/share -o rw,sync
mount: mounting /dev/sdb1 on /mnt/share failed: Invalid argument
root@OpenWrt:~#
root@OpenWrt:~#



the drive info of USB thumb drive,

root@OpenWrt:~# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.21.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p

Disk /dev/sdb: 1031 MB, 1031798784 bytes
32 heads, 62 sectors/track, 1015 cylinders, total 2015232 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048      978610      488281+  83  Linux
/dev/sdb2          978611     2015231      518310+  82  Linux swap / Solaris

Command (m for help): q

root@OpenWrt:~# clear

(Last edited by xiaolaba on 14 Jul 2014, 05:32)

What packages did you install? It seems you need this:

opkg update
opkg install kmod-fs-ext4

Remember that kmod packages need a matching kernel, so you will need to update to the current Trunk snapshot

I also cannot mount my usb flash disk. When I checked the content of /dev/ , I could not even find sdaX or sdbX there. What is the problem?

The discussion might have continued from here.