OpenWrt Forum Archive

Topic: [HELP] Can't Auto Mounting USB Storage When Boot Startup

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

Specification :

TP-Link WR1043ND - OpenWrt Backfire 10.03.1-RC4 (r24038)
USB Storage 2GB Format Ext2 /dev/sda

root@OpenWrt:/# lsusb

Bus 001 Device 004: ID 1e4e:0100                                           #USB WebCam
Bus 001 Device 003: ID 13fe:3600 Kingston Technology Company Inc.          #USB Storage
Bus 001 Device 002: ID 0409:005a NEC Corp. HighSpeed Hub                   #USB Hub Okion
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@OpenWrt:/# vim /etc/config/fstab

config global automount
        option from_fstab 1
        option anon_mount 1

config global autoswap
        option from_fstab 1
        option anon_swap 0

config mount
        option target   /media/storage
        option device   /dev/sda
        option fstype   ext4
        option options  rw,sync
        option enabled  1
        option enabled_fsck 0

config swap
        option device   /dev/sda2
        option enabled  0

but...
when i'm start fstab manually
it's work fine...

root@OpenWrt:/# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 2176      2176         0 100% /rom
tmpfs                    14728        52     14676   0% /tmp
tmpfs                      512         0       512   0% /dev
/dev/mtdblock3            4608      3712       896  81% /overlay
mini_fo:/overlay          2176      2176         0 100% /
root@OpenWrt:/# /etc/init.d/fstab start
root@OpenWrt:/# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 2176      2176         0 100% /rom
tmpfs                    14728        60     14668   0% /tmp
tmpfs                      512         0       512   0% /dev
/dev/mtdblock3            4608      3712       896  81% /overlay
mini_fo:/overlay          2176      2176         0 100% /
/dev/sda               1890720         8   1794664   0% /media/storage

How to auto mounting my USB Storage?
if you want any information. Just reply me in comment below...
plzzz... help me cz i want to ExtRoot it...

(Last edited by bulongx on 3 Jul 2011, 18:33)

I guess /dev/sda should be /dev/sda1

crisman wrote:

I guess /dev/sda should be /dev/sda1

there is no sda1 (USB Storage Plugged)

root@OpenWrt:/dev# ls
1-1                 mtd3                ppp
1-1.2               mtd3ro              ptmx
1-1.3               mtd4                pts
console             mtd4ro              random
cpu_dma_latency     mtd5                sda
full                mtd5ro              shm
fuse                mtdblock0           snd
kmsg                mtdblock1           tty
log                 mtdblock2           ttyS0
mem                 mtdblock3           urandom
mtd0                mtdblock4           usb1
mtd0ro              mtdblock5           video0
mtd1                network_latency     watchdog
mtd1ro              network_throughput  zero
mtd2                null
mtd2ro              port

But when i mount manually  on /dev/sda it's work... is there any manner to format it to get /dev/sda1 ?

i format my USB Storage with EASEUS Partition Master 8.0.1 Home Edition (Windows).

Any solution!?

(Last edited by bulongx on 3 Jul 2011, 19:14)

done by my self...

i follow 2 instructions from link below... n' I geting work perfectly with NTFS format for my USB storage...

http://wiki.openwrt.org/doc/uci/fstab#sleep.before.startup
https://forum.openwrt.org/viewtopic.php?pid=120423#p120423

The discussion might have continued from here.