What's new

how to restart the usb ?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

GoNz0

Very Senior Member
My usb3 hdd will not mount until it is unplugged and put back, then it shows straight away.

if there anything I can do in the JFFS to restart this and get the damn thing to mount on a router reboot ?

it does all this then shows unmounted :(

Code:
Jan  1 00:00:15 kernel: scsi 0:0:0:0: Direct-Access     Toshiba  External USB 3.0 0201 PQ: 0 ANSI: 6
Jan  1 00:00:15 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
Jan  1 00:00:15 kernel: sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
Jan  1 00:00:15 kernel: sd 0:0:0:0: [sda] 5860533160 512-byte logical blocks: (3.00 TB/2.72 TiB)
Jan  1 00:00:15 kernel: sd 0:0:0:0: [sda] Write Protect is off
Jan  1 00:00:15 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Jan  1 00:00:15 kernel: sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
Jan  1 00:00:15 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Jan  1 00:00:15 kernel:  sda: unknown partition table
Jan  1 00:00:15 kernel: sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
Jan  1 00:00:15 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
Jan  1 00:00:15 kernel: sd 0:0:0:0: [sda] Attached SCSI disk
 
Well, lets see if this helps:
add to /jffs/scripts/wan-start
Code:
#!/bin/sh
sleep 15
/sbin/hotplug2
and make the file executable
Code:
chmod a+rx /jffs/scripts/wan-start
The sleep time can be de- or increased if that helps
 
Can you reboot your router and then post the complete log as well as the contents of /tmp/usb.log
 
I did think it would work apart from one rather large issue.

If I unmount the drive the command works fine.

If I reboot the router and try to mount the drive without replugging the USB I get the following returned (without mounting it)

Code:
ASUSWRT-Merlin RT-AC68U_3.0.0.4 Sun Apr  6 15:20:36 UTC 2014
GoNz0@RT-AC68U:/tmp/home/root# /sbin/hotplug2
[sighandler]: No more events to be processed, quitting.
[cleanup]: Waiting for children.
[cleanup]: All children terminated.
GoNz0@RT-AC68U:/tmp/home/root#
:confused:
 
It needs to be unmounted first then. WhatsThatCommandAgain?
 
logs attached thanks :)
 

Attachments

  • syslog.zip
    6.6 KB · Views: 190
  • usb.zip
    602 bytes · Views: 172
My USB Log looks about the same. --> looks OK.
Is your VERY BIG DEVICE attached to a hub?
 
nope, i did try a hub to see if that helped but it doesn't work at all.
 
I can see 2 problems.

1. The router isn't seeing /dev/sda5 when it boots up (although it can see /dev/sda1).

2. It thinks the disk has 512-byte logical blocks rather than 4096.

I think this is a common problem with disks with non-512 byte blocks.

Try:

Code:
/sbin/asus_sd sda5 remove
/sbin/asus_sd sda1 remove
/sbin/asus_sd sda remove
/sbin/hotplug2
 
Can you attach the log files again.

How about this:

Code:
/sbin/asus_sd sda5 remove
/sbin/asus_sd sda1 remove

rmmod sd_mod
insmod sd_mod
 
Last edited:

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top