Modify

Opened 5 years ago

Last modified 4 years ago

#12138 new defect

devices freezes and reboot when attaching a USB HDD to it

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: Cc:

Description

the latest version openwrt is not working properly with my MW4530r(similar to WDR4300). whenever i attach a USB HDD device to the device, it first freezes and then reboot. if the devices boots with a USB HDD connected to it, it wll never boot. i've tried different USB HDDs and flashed the latest trunk on different router models.to be specific, i flashed the same version(r33312) onto my 703n and got the same result.

Attachments (1)

pkglist (3.1 KB) - added by anonymous 5 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 5 years ago by anonymous

Post list of installed packages and configuration!!

comment:2 Changed 5 years ago by anonymous

Ok, here's a list of installed packages:
base-files - 115-r33311
blkid - 2.21.2-1
block-mount - 0.2.0-8
busybox - 1.19.4-3
ddns-scripts - 1.0.0-20
dnsmasq - 2.62-2
dropbear - 2011.54-2
firewall - 2-53
hd-idle - 1.04-1
hotplug2 - 1.0-beta-4
iptables - 1.4.10-4
iw - 3.3-1
jshn - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
kernel - 3.3.8-1-ac640b23866cc61b2b901345fe27569e
kmod-ath - 3.3.8+2012-07-16-1
kmod-ath9k - 3.3.8+2012-07-16-1
kmod-ath9k-common - 3.3.8+2012-07-16-1
kmod-cfg80211 - 3.3.8+2012-07-16-1
kmod-crypto-aes - 3.3.8-1
kmod-crypto-arc4 - 3.3.8-1
kmod-crypto-core - 3.3.8-1
kmod-fs-ext4 - 3.3.8-1
kmod-fs-ntfs - 3.3.8-1
kmod-fs-vfat - 3.3.8-1
kmod-gpio-button-hotplug - 3.3.8-1
kmod-i2c-core - 3.3.8-1
kmod-input-core - 3.3.8-1
kmod-ipt-conntrack - 3.3.8-1
kmod-ipt-core - 3.3.8-1
kmod-ipt-nat - 3.3.8-1
kmod-ipt-nathelper - 3.3.8-1
kmod-leds-gpio - 3.3.8-1
kmod-ledtrig-default-on - 3.3.8-1
kmod-ledtrig-netdev - 3.3.8-1
kmod-ledtrig-timer - 3.3.8-1
kmod-ledtrig-usbdev - 3.3.8-1
kmod-lib-crc-ccitt - 3.3.8-1
kmod-lib-crc16 - 3.3.8-1
kmod-mac80211 - 3.3.8+2012-07-16-1
kmod-nls-base - 3.3.8-1
kmod-nls-cp437 - 3.3.8-1
kmod-nls-iso8859-1 - 3.3.8-1
kmod-nls-iso8859-13 - 3.3.8-1
kmod-nls-iso8859-2 - 3.3.8-1
kmod-nls-utf8 - 3.3.8-1
kmod-ppp - 3.3.8-1
kmod-pppoe - 3.3.8-1
kmod-pppox - 3.3.8-1
kmod-scsi-core - 3.3.8-1
kmod-usb-core - 3.3.8-1
kmod-usb-ohci - 3.3.8-1
kmod-usb-storage - 3.3.8-1
kmod-usb-uhci - 3.3.8-1
kmod-usb2 - 3.3.8-1
kmod-video-core - 3.3.8-1
kmod-video-uvc - 3.3.8-1
kmod-video-videobuf2 - 3.3.8-1
kmod-wdt-ath79 - 3.3.8-1
libblkid - 2.21.2-1
libblobmsg-json - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
libc - 0.9.33.2-1
libgcc - 4.6-linaro-1
libip4tc - 1.4.10-4
libiwinfo - 35
libiwinfo-lua - 35
libjpeg - 6b-1
libjson - 0.9-2
liblua - 5.1.4-8
libnl-tiny - 0.1-3
libpthread - 0.9.33.2-1
libubox - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
libubus - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
libubus-lua - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
libuci - 2012-03-28.1-1
libuci-lua - 2012-03-28.1-1
libuuid - 2.21.2-1
libxtables - 1.4.10-4
lua - 5.1.4-8
luci - trunk+svn9195-1
luci-app-firewall - trunk+svn9195-1
luci-i18n-english - trunk+svn9195-1
luci-lib-core - trunk+svn9195-1
luci-lib-ipkg - trunk+svn9195-1
luci-lib-lmo - trunk+svn9195-1
luci-lib-nixio - trunk+svn9195-1
luci-lib-sys - trunk+svn9195-1
luci-lib-web - trunk+svn9195-1
luci-mod-admin-core - trunk+svn9195-1
luci-mod-admin-full - trunk+svn9195-1
luci-proto-core - trunk+svn9195-1
luci-proto-ppp - trunk+svn9195-1
luci-sgi-cgi - trunk+svn9195-1
luci-theme-base - trunk+svn9195-1
luci-theme-openwrt - trunk+svn9195-1
mjpg-streamer - r148-4
mtd - 18
netifd - 2012-08-11-9411d498c46fe3f1c4d79eb8fa0b7c97dd32a990
opkg - 618-2
ppp - 2.4.5-6
ppp-mod-pppoe - 2.4.5-6
swap-utils - 2.21.2-1
swconfig - 10
uboot-envtools - 2012.04.01-1
ubus - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
ubusd - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
uci - 2012-03-28.1-1
uhttpd - 40
vsftpd - 3.0.0-1
wireless-tools - 29-5
wpad-mini - 20120428-2

Changed 5 years ago by anonymous

comment:3 follow-up: Changed 5 years ago by jogo

Is the hdd powered through USB or from an external power brick?

If the former, try using an external power source, or use a powered USB hub in between.

If it is powered externally, try what happends when you put a USB hub in between.

comment:4 in reply to: ↑ 3 Changed 5 years ago by anonymous

Replying to jogo:

Is the hdd powered through USB or from an external power brick?

If the former, try using an external power source, or use a powered USB hub in between.

If it is powered externally, try what happends when you put a USB hub in between.

it's a portable USB HDD and this shouldn't be caused by insufficient power supply. with svn31296, i don't have a problem like this.if i attach this USB HDD to 703n running svn31296, the device works with no problem. then i flashed the r33311 on 703n. and the device would hang and reboot when i attach a portable USB HDD to it. since wdr4300 is not supported in r31296, i can not be sure if 31296 will cause the same problem to mw4530r.

comment:5 Changed 5 years ago by anonymous

the problem arises from auto mounting.if i delete the auto-mount scripts under /etc/hotplug.d/block/40-usbmount, it will work fine. but in that way, i have to mount each partition manually. also, i cannot use fstab to auto mount and that will give the same result. all in all, you have to manually mount your USB HDD to avoid the freeze and eventual reboot.i've also tried svn32461, in which, support is added for wdr4300, and it doesn't make a difference.

comment:6 Changed 5 years ago by anonymous

seems i'm the only one experiencing the problem. I've compiled an image with older kernel(3.3.7) after a lot of patching and it works! no more rebooting upon connecting my HDDs.i have 3 portable USB HDDs. one is a Hitachi 320GB,another 120GB Toshiba and the third western digital 320GB. after hours of testing, i come to the conclusion that only HDD of Japanese brands have problem with 3.3.8 kernel, namely Hitachi and Toshiba, and WD hdd doesn't have such problem. another findings is any older kernels than 3.3.8 doesn't pose such problem for my Japanese HDDs. i tested 3.2.14, 3.3.6 and 3.3.7 and all of them works perfectly.

comment:7 Changed 5 years ago by Kilowatt

I have the same problem with Attitude and last trunk, I have tested with 2TB Western Digital HDD and 4GB Kingston pendrive, same result.

comment:8 follow-up: Changed 5 years ago by boorg@…

I can confirm this, on Attitude. I have tested Samsung HDD, other Samsung HDD works OK. In my case, the 'bad' disk have one external partition and one ext3 partition in it. OpenWrt tries to mount external partition and freeze, restart. The workaround is to define correct partition in fstab and disable automounting of unknown devices (eg. "option 'anon_mount' '0'" in global automount).
Then, disk is auto mounted properly, but of course other devices are not automounted.
I don't know if one can prevent mounting external partition explicitly?

comment:9 Changed 5 years ago by boorg

Extended partition, not external of course...

comment:10 in reply to: ↑ 8 Changed 5 years ago by khairil@…

Replying to boorg@…:

I can confirm this, on Attitude. I have tested Samsung HDD, other Samsung HDD works OK. In my case, the 'bad' disk have one external partition and one ext3 partition in it. OpenWrt tries to mount external partition and freeze, restart. The workaround is to define correct partition in fstab and disable automounting of unknown devices (eg. "option 'anon_mount' '0'" in global automount).
Then, disk is auto mounted properly, but of course other devices are not automounted.
I don't know if one can prevent mounting external partition explicitly?

thanks boorg! this solved my problem

comment:11 Changed 4 years ago by davinc.cnivad@…

This looks similar to /ticket/14213.html , and the fix there for 40-mount works for me. I guess this should be closed as a dup of 14213

comment:12 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.