This is strange, could you please post the VendorID and ProductID of your device. (lsusb or cat /proc/bus/usb/devices)
According to this table your device should work if the GUID corresponds to the VID and PID.
Printable View
This is strange, could you please post the VendorID and ProductID of your device. (lsusb or cat /proc/bus/usb/devices)
According to this table your device should work if the GUID corresponds to the VID and PID.
Okay, I just bought a 3,5''-Case which is not working (.. it was even already posted here: GUID: 05e307020000000000000000)
But unfortunately in the list here, there a no prices or type names. I would like a cheap one - so can one recommend sth?
this one would be really cheap - but which chipset in it?
NOT WORKING !
scsi-stop does not work for my usb to ide adapter !
Host scsi0: usb-storage
Vendor: Unknown
roduct: USB TO IDE
Serial Number: None
Protocol: Transparent SCSI
Transport: Bulk
GUID: 05e307020000000000000000
Attached: Yes
Working:
It's a cheap box (~15 Eur), Spire GigaPod VIII - SP105SL,Code:Host scsi0: usb-storage
Vendor: Prolific Technology Inc.
Product: Mass Storage Device
Serial Number: 0
Protocol: Transparent SCSI
Transport: Bulk
GUID: 067b25060000000000000000
Attached: Yes
http://www.spirecoolers.com/main/pro...sp?ProdID=601#
Code:
Firmware Version WHITE RUSSIAN (0.9)
Kernel Version Linux version 2.4.30 (nbd@ds10) (gcc version 3.4.4 (OpenWrt-1.0)) #1 Sat Feb 3 13:16:08 CET 2007
Current Date/Time Sat Dec 22 22:34:23 UTC 2007
# cat /proc/scsi/usb-storage-0/0
Host scsi0: usb-storage
Vendor: Sunplus Technology Inc.
Product: USB to Serial-ATA bridge
Serial Number: SAMSUNG HDS0MUJ1NPB00489
Protocol: Transparent SCSI
Transport: Bulk
GUID: 04fc0c15317ffffffffffff9
Attached: Yes
WORKING
SEAGATE 7200.10 320Gb SATAII with NEXT STAR3 ( vantec) Hdd encosure
Host scsi0: usb-storage
Vendor: Sunplus Technology Inc.
Product: USB to Serial-ATA bridge
Serial Number: ST3320620A 6QF3KP6H
Protocol: Transparent SCSI
Transport: Bulk
GUID: 04fc0c25fffffff97af35971
Attached: Yes
Port: 1
Bus: 01:03.2-1
IT WORKS
The harddisk is a Western Digital
Type: WD Elements Portable 120 GB (WDE1MS1200)
Code:Vendor: Western Digital
Product: External HDD
Serial Number: 575845373037373036313033
Protocol: Transparent SCSI
Transport: Bulk
GUID: 105810103037373036313033
Vendor=1058 ProdID=1010 Rev= 1.02
Manufacturer=Western Digital
Product=External HDD
SerialNumber=575845373037373036313033
For using the script on a ASUS RT-N16, please see: http://wl500g.info/showpost.php?p=203696&postcount=173
MMm, I wouldn't know were ipkg gets the md5sum from. the md5sum
in the Makefile is correct, i just checked that.
Building from source should work. I'm now running a 2.6 kernel, that
already has proper scsi support, that might work
for you also (but 2.6 still no wireless AP-mode for the wl500g).
Western Digital WDMEW2500
Thanks for a great tutorial.Code:Host scsi0: usb-storage
Vendor: Western Digital
Product: External HDD
Serial Number: 5758453230384B5938363434
Protocol: Transparent SCSI
Transport: Bulk
GUID: 1058070430384b5938363434
Vendor=1058 ProdID=0704 Rev= 1.05
Manufacturer=Western Digital
Product=External HDD
Larmoe
Kamikaze brcm47xx kernel 2.6 on Asus WL-500gP
USB -> SATA adapter is a very cheap one, but based on Sunplus:
Code:# cat /proc/scsi/usb-storage/0
Host scsi0: usb-storage
Vendor: Sunplus Technology Co.,Ltd.
Product: USB to Serial-ATA bridge
Serial Number: FDF724040F000000FFFF2CFAFFFA9D
Protocol: Transparent SCSI
Transport: Bulk
Quirks:
So from all I can read it should be working, but when I run scsi-stop I get:Code:# cat /proc/bus/usb/devices
Vendor=04fc ProdID=0c25 Rev= 1.12
Manufacturer=Sunplus Technology Co.,Ltd.
Product=USB to Serial-ATA bridge
or a different program I found here: http://www.johnkerry.plus.com/scsi-spin.html which should be compiled for Kamikaze (no version mentioned) and kernel 2.6:Code:# /scsi-stop /dev/sda
/dev/sda is not a SCSI block device
Anybody have any ideea why it is not working?Code:# scsi-spin -d -f /dev/sda
scsi-spin [warning]: device is mounted but --force is passed
scsi-spin: /dev/sda is not a disk or generic SCSI device.
The harddrive is a Hitachi 400GB SATA U150: HDS724040KLSA80
/Morten
The TrekStor maxi m.u Disk works fine :)
Vendor=0c0b ProdID=b159 Rev= 1.03
$ cat /proc/scsi/usb-storage-1/1
Host scsi1: usb-storage
Vendor: Trekstor
Product: DataStation maxi m.u
Protocol: Transparent SCSI
Transport: Bulk
Attached: Yes
I explicitely checked the 500GB and the 750GB version.
I'm a total Linux newbie but still I managed to spin down my HDD with scsi-stop. I also put scsi-stop.sh script in my router according to instruction provided here. However two questions come to my mind.
Is this instruction full or do I have to do something more to get this script running every time I reboot my router?
I read here that it is impossible to spin-down HDD when Samba is running. Is it true? I am using my HDD as a media disk so everyone in the house can acces it. That is why I don't want to use the switch on the enclosure to power off/on my drive (it won't be accessible). I want it to be accessible all the time but to spin-down in periods of inactivity (e.g. when everone is at work, at night) to extend life of the disk and not to make noise in the night. I use Samba to share disk in Windows.
As I'm new to Asus's router and Linux any help will be apreciated.
I found the following deamon:
Spindown is a system daemon that spins down idle disks [...] uses sg_start to spin the disk down. It also works with usb disks and hotswappable disks because it doesn't watch the device name (hda, sdb, ...), but the device id. This means that it doesn't matter if the disk is swapped while the deamon is running.
More info: http://linux.softpedia.com/get/Syste...wn-37597.shtml
usb storage case not working
hdd inside maxtor daimiond 8 20GB
cat /proc/scsi/usb-storage-0/0
Host scsi0: usb-storage
Vendor: Generic
Product: USB TO IDE Bridge
Serial Number: None
Protocol: Transparent SCSI
Transport: Bulk
GUID: 058f63900000000000000000
Attached: Yes
Searching the internet on one of the bridges, I came across this site:
http://www.hdsentinel.com/usbharddisks.php
These might all be working bridges?!
Checking the list with the known good list here, I think it doesn't give any guarantee.
WORKING
HDD: WDC WD6400AAKS-22A7B0 640Gb
BOX: i-Stor iS302
Host scsi0: usb-storage
Vendor: JMicron
Product: JM20336 SATA, USB Combo
Serial Number: DA4180005888
Protocol: Transparent SCSI
Transport: Bulk
GUID: 152d23360000da4180005888
Attached: Yes
Port: 1
Bus: 01:03.2-1
P: Vendor=152d ProdID=2336 Rev= 1.00
S: Manufacturer=JMicron
S: Product=JM20336 SATA, USB Combo
S: SerialNumber=DA4180005888
Works well:
Asus WL-500W + Oleg's latest 1.9.2.7-10 firmware + scsi-idle package
HDD: WD Caviar Black 1TB
Box: Tsunami "S-3500" (SATA-USB)
Code:Host scsi1: usb-storage
Vendor: Sunplus Technology Inc.
Product: USB to Serial-ATA bridge
Serial Number: WDC WD1001 WD-WMATV0145969
Protocol: Transparent SCSI
Transport: Bulk
GUID: 04fc0c15fff616bdf0145969
Attached: Yes
Port: 2
Bus: 01:03.2-2
Code:Vendor=04fc ProdID=0c15 Rev=c6.83
Not working
Code:$ cat /proc/scsi/usb-storage-0/0
Host scsi0: usb-storage
Vendor: JMicron
Product: USB to ATA/ATAPI Bridge
Serial Number: 22229141C800
Protocol: Transparent SCSI
Transport: Bulk
GUID: 152d2338000022229141c800
Attached: Yes
Port: 1
Bus: 00:03.1-1
Code:$ cat /proc/bus/usb/devices
...
P: Vendor=152d ProdID=2338 Rev= 1.00
S: Manufacturer=JMicron
...
I would really like to spin down my HDD when it is inactive for 20 minutes. When I try, I get this error:PHP Code:/usr/local/sbin/scsi-stop /dev/scsi/host0/bus0/target0/lun
0/disc
Am I doing something wrong, or does it just not work with my HDD. If it doesn't work, are there any other options?PHP Code:/dev/scsi/host0/bus0/target0/lun0/disc is not a SCSI block device
I'm using two 1tb discs in RAID1 (using mdadm) and mounted as md0
if I use the scsi-stop script (one for each disc) the discs spindown correctly but when the discs are needed again only one disc resume, breaking the RAID sync. Is there a way to stop this from happen or another script to use raid md0?Code:$ cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] [multipath]
read_ahead 1024 sectors
md0 : active raid1 scsi/host0/bus0/target0/lun0/part1[0] scsi/host1/bus0/target0/lun0/part1[1]
976759936 blocks [2/2] [UU]
the discs:Code:scsi-stop.sh /dev/scsi/host0/bus0/target0/lun0/disc
scsi-stop.sh /dev/scsi/host1/bus0/target0/lun0/disc
Code:$ cat /proc/scsi/usb-storage-0/0
Host scsi0: usb-storage
Vendor: Iomega
Product: External HD
Serial Number: 9E057FFFFFFF
Protocol: Transparent SCSI
Transport: Bulk
GUID: 059b037000009e057fffffff
Attached: Yes
Port: 1.1
Bus: 01:03.2-1.1
Spin-down/-up Works well on Oleg (lly.dev r655)
Code:Host scsi1: usb-storage
Vendor: Iomega
Product: Iomega Select HDD
Serial Number: 5E23FFFFFFFF
Protocol: Transparent SCSI
Transport: Bulk
GUID: 059b047a00005e23ffffffff
Attached: Yes
Port: 2.1
Code:P: Vendor=059b ProdID=047a Rev= 0.00
S: Manufacturer=Iomega
S: Product=Iomega Select HDD
Hi, I'm actually using teddy_bear's USB Tomato mod on a WL-520GU (stupid 4 MB flash...), and it includes scsi-stop and scsi-start, and I wanted to share my experience with getting it working.
I used a watt-meter to verify that the disk actually did spin down or up. My setup involves an external enclosure with the following stats.
This is very similar to one that doesn't work (PID=2338). But I had to do something funny to get mine to work. If I call scsi-stop, the disk spins down, and when I go to access it, the disk becomes inaccessible. If I call scsi-stop and then scsi-start before accessing the disk, it behaves correctly, staying spun down until I go to access it.Code:Host scsi0: usb-storage
Vendor: JMicron
Product: JM20336 SATA, USB Combo
Serial Number: DA0150217888
Protocol: Transparent SCSI
Transport: Bulk
GUID: 152d23360000da0150217888
Attached: Yes
Port: 1
Bus: 00:03.1-1
Vendor=152d ProdID=2336
There are other Tomato-specific requirements for scsi-stop and scsi-start. You need to put the script in /jffs, and you need the build with awk. Here's the final script with the other Tomato-specific changes.
Code:#!/bin/sh
if /usr/bin/[ $# -ne 1 ]; then
/bin/echo 1>&2 "Usage: $0 <device>"
exit 1
fi
PERIOD=30
BOUNDARY=1200
SCSISTOP=scsi-stop
SCSISTART=scsi-start
LOGFILE=/tmp/scsi-stop.log
searchstr="disk_io:"
devaddr="(`/bin/ls -l $1 | /usr/bin/awk '{print($5 int($6/16))}'`)"
str=`/bin/grep "$searchstr" /proc/stat | devaddr="$devaddr" /usr/bin/awk -v 'RS= |\n' -F : '{ if($1==ENVIRON["devaddr"]) print($2) }'`
cooltime=0
stopped=0
while true; do
/bin/sleep $PERIOD
newstr=`/bin/grep "$searchstr" /proc/stat | devaddr="$devaddr" /usr/bin/awk -v 'RS= |\n' -F : '{ if($1==ENVIRON["devaddr"]) print($2) }'`
if /usr/bin/[ "$newstr" = "$str" ]; then
cooltime=$(($cooltime + $PERIOD))
if /usr/bin/[ $cooltime -ge $BOUNDARY -a $stopped -eq 0 ]; then
$SCSISTOP $1
$SCSISTART $1
time=`/bin/date '+%b %e %H:%M:%S'`
/bin/echo "$time: Cooled down..." >> $LOGFILE
stopped=1
fi
else
if /usr/bin/[ $cooltime -ne 0 ]; then
time=`/bin/date '+%b %e %H:%M:%S'`
/bin/echo "$time: Disk first used after $cooltime seconds" >> $LOGFILE
fi
cooltime=0
str=$newstr
stopped=0
fi
done
Prestigio Don't works
Code:Host scsi0: usb-storage
Vendor: Prestigio
Product: USB Storage HDD
Serial Number: 7DF88FFFFFFF
Protocol: Transparent SCSI
Transport: Bulk
GUID: 152d233900007df88fffffff
Attached: Yes
Port: 1
Bus: 01:03.2-1
Works well
Box: Transcend StoreJet 2.5 (SATA)
Code:Host scsi1: usb-storage
Vendor: JMicron
Product: StoreJet Transcend
Serial Number: 0D0708925FFF
Protocol: Transparent SCSI
Transport: Bulk
GUID: 152d232900000d0708925fff
Attached: Yes
Port: 1.1
Bus: 01:03.2-1.1
Code:P: Vendor=152d ProdID=2329 Rev= 0.00
S: Manufacturer=JMicron
S: Product=StoreJet Transcend
I have the same problem, can anybody help?
PHP Code:Host scsi0: usb-storage
Vendor: Sunplus Technology Inc.
Product: USB to Serial-ATA bridge
Serial Number: SAMSUNG HDS1Y6J1LS806829
Protocol: Transparent SCSI
Transport: Bulk
GUID: 04fc0c25315ffffffffffff9
Attached: Yes
Port: 1
Bus: 01:03.2-1
My problem was firmware 1.9.2.7-d-r1612, with oleg 1.9.2.10 was everything ok.
Problem was only my swap (its on the same hdd).
Disc goes down, but after second it spin-up :( so nothing for me
WORKING!
Thnks ;) But i'm not understand HowTo find VendorID&ProductID, there is a lot of code :eek:Code:Host scsi0: usb-storage
Vendor: JMicron
Product: Samsung STORY Station
Serial Number: 0000002CE09310500532
Protocol: Transparent SCSI
Transport: Bulk
GUID: 04e85f05002ce09310500532
Attached: Yes
Port: 1.1
Bus: 00:03.1-1.1
Code:T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 1, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.04
S: Manufacturer=Linux 2.4.20 ehci_hcd
S: Product=PCI device 14e4:471a
S: SerialNumber=00:03.1
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 2
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0424 ProdID=2502 Rev= 0.01
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=256ms
T: Bus=02 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=04e8 ProdID=5f05 Rev= 0.00
S: Manufacturer=JMicron
S: Product=Samsung STORY Station
S: SerialNumber=0000002CE09310500532
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB OHCI Root Hub
S: SerialNumber=b8003000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
Hy , i have a question for you guys:
How can i stop my HDD from spinning when i don't need it ?
I read this post: http://wl500g.info/showthread.php?t=7836&page=5 and i tryied xander solution:
but seems that my hdd doesn't work through scsi mode because i get:Quote:
Here's the possible solution:
1. Download http://oleg.wl500g.info/bin/scsi-stop - this binary is able to spin-down your disk immediately after execution.
2. Place it somewhere on your router (you should be able to reach it via PATH environment variable) and make it executable.
3. You can use the script I've written which works in background and spins down disk after some period of inactivity:
http://wl500g.info/showpost.php?p=47135&postcount=10
I use it this way (I named the script scsi-stop.sh):
Code:
./scsi-stop.sh /dev/scsi/host0/bus0/target0/lun0/disc &It automatically writes some log messages to scsi-stop.log.
It works for me. You can change it as you wish.
and when i try the path that i think is correct ( newbie, i know )Code:/dev/scsi/host0/bus0/target0/lun0/disc: No such file or directory
i get:Code:[admin@RouterASSUS work]$ scsi-stop /dev/discs/disca/disc
I have latest 1.9.2.7-rtn-r3497 firmware from http://wl500g.googlecode.com/, and installed by wengi tutorial from: http://wl500g.info/showthread.php?t=10307 (with disca changes of course)Code:/dev/discs/disca/disc is not a SCSI block device
Can anybody help ? Thank you !
Hi ,
you can modify that script for you needs ,plase it somwhere and make a cron job:
It looks ugly , but worked for me.
#!/bin/bash
DISKNAME=sdd
now=`/opt/bin/date`
a=0
#check 70 times with 0.1s gaps,
#and go on adding
for i in `seq 0 70`
do
b=`awk '/$DISKNAME/ {print $12}' /proc/diskstats`
a=`expr $a + $b`
sleep 0.1s
done
echo $a
if [ $a == 0 ]
then
echo "$now /dev/sdd No Activity-->>spindown" >> /opt/var/log/syslog.log
/opt/bin/sync
/opt/bin/sdparm --flexible --command=sync /dev/$DISKNAME &>/dev/null
/opt/bin/sdparm --flexible --command=stop /dev/$DISKNAME &>/dev/null
/opt/bin/sdparm --flexible --command=stop /dev/$DISKNAME &>/dev/null
/opt/bin/sg_start --stop /dev/$DISKNAME
/opt/bin/sg_start --stop /dev/$DISKNAME
/opt/bin/sg_start 0 --pc=2 /dev/$DISKNAME
/opt/bin/sg_start 0 --pc=2 /dev/$DISKNAME
/opt/bin/sg_start 0 --pc=3 /dev/$DISKNAME
/opt/bin/sg_start 0 --pc=3 /dev/$DISKNAME
else
echo "$now /dev/sdd Active-->wait ....." >> /opt/var/log/syslog.log
fi
exit 0
Of cours you have to :
ipkg install sg3-utils
ipkg install sdparm
Regards
Rumen
thanks a lot, but how can i test it before because doesn't work on all hhd's ?
And btw what do i put in crontab ? what line, or can i put the script in init.d ?
And second, disk name i have to put my disk name ? and the time for waiting to idle is editable ? thank you very much!
PS: when i try a simple command
[admin@RouterASSUS root]$ /opt/bin/sg_start --stop /dev/discs/disca
i get
Error trying to open /dev/discs/disca: Is a directory
even when i enter:
[admin@RouterASSUS root]$ /opt/bin/sg_start --stop /dev/$DISKNAME
i get:
Error trying to open /dev/: Is a directory
I used the old scsi tools to do the same thing: http://wpte.kicks-ass.net/forum/showthread.php?tid=4
it's a modification of the old d script:)
hy, that is what i was looking for, but can i issue a command before all this to see if the hdd is stopping ? like in the old scsi-stop ?
2. that is my problem i can't find hdd name .......
well the harddrives are labeled like "sdx" with x as a or b or c etc.
so your first drive is called "sda" your first partition on sda is called "sda1" etc.
you can check it in /dev :
for me it shows this:Quote:
ls /dev/ | grep sd
you can try if the script will work like this:Quote:
sda
sda1
sda2
sda3
sdb
sdb1
Quote:
/usr/sbin/scsi-stop /dev/sda
yes that was helpfull. THANK YOU
But i have a problem when i run your script, my command line freezes and i have to exit with ctrl+c and hdd won't stop spinning. how can i test this ?
and by the way thank you very much for your help !
by the way my firmware is not oleg's latest .10 , is 1.9.2.7-rtn-r3497 as i said . hdd seems that doesn't work via scsi mode or something is changed ....Quote:
[admin@RouterASSUS root]$ /usr/sbin/scsi-stop /dev/sda
/dev/sda is not a SCSI block device
quoting:
don't forget the & character, it will make the script run in the background;)Quote:
this can be used like:
Quote:
/usr/local/sbin/scsi-stop.sh sda &
/usr/local/sbin/scsi-stop.sh sdb &
I know I use this script on my rt-n16.Quote:
by the way my firmware is not oleg's latest .10 , is 1.9.2.7-rtn-r3497 as i said . hdd seems that doesn't work via scsi mode or something is changed ....
if it says "/dev/sda is not a SCSI block device" it might not be possible.
it did work on .10/d firmware for you?
adn yes: ........
butCode:[admin@RouterASSUS root]$ ls /dev/ | grep sd
sda
sda1
sda2
sda3
Code:[admin@RouterASSUS root]$ /usr/sbin/scsi-stop /dev/sda
/dev/sda is not a SCSI block device