Asus WL-500g Premium and Seagate 500GB USB spindown issue

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
linuxares
DD-WRT Novice


Joined: 11 Nov 2007
Posts: 21

PostPosted: Tue Sep 08, 2009 17:46    Post subject: Asus WL-500g Premium and Seagate 500GB USB spindown issue Reply with quote
Firmware Version
DD-WRT v24-sp2 (07/21/09) mega - build 12533

I got a odd problem, I tried to search all over the forums with someone with the same problem.

The problem I have is that the HDD works perfect as a NAS. I can access it, upload files to it etc. Download from it.

But if I let it be for about 1hr, it spinsdown. So it just a green "led" on it that tells me its on, but just idling.

When I try to reconnect to it, it halts, completley. I need to disconnect the USB or the Power from the hdd to access it again. A reboot of the router works too.
I have tried to have it EXT2/3 and Linux-swap with FAT32 (This is not really a FAT32 partition except its a backup partition for my wii games, legal in sweden okey Wink) and also tried to make it EXT3, Swap, JFFS and OPT folders. Same issue.

Anyone have an idéa? It always works fine until it spindown/idle. I have made it not able to read FAT32 also so it ignores that partition.

Kind regards
Sponsor
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Tue Sep 08, 2009 18:56    Post subject: Reply with quote
Does the HDD have it's own power supply?

I found that using a powered hub with my 320gb Passport is the best way to go. Also, you should format the drive RAW:

http://www.ridgecrop.demon.co.uk/index.htm?fat32format.htm
linuxares
DD-WRT Novice


Joined: 11 Nov 2007
Posts: 21

PostPosted: Tue Sep 08, 2009 19:48    Post subject: Reply with quote
yes it does. I do not want to touch the FAT32, it should be alone. I want to use the EXT3 to use as a NAS.

Hmm... a powered hub? Doesn't the Passport have the option to turn on or off spindown?
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Tue Sep 08, 2009 20:26    Post subject: Reply with quote
Yes, that tutorial is for FAT32, but follow the first step. You want an unallocated RAW partition. This will remove all the manufacturers tools like Sync and system restore. Then format and partition the drive. It worked for me..
linuxares
DD-WRT Novice


Joined: 11 Nov 2007
Posts: 21

PostPosted: Tue Sep 08, 2009 21:44    Post subject: Reply with quote
Masterman wrote:
Yes, that tutorial is for FAT32, but follow the first step. You want an unallocated RAW partition. This will remove all the manufacturers tools like Sync and system restore. Then format and partition the drive. It worked for me..


Ah, thank you. I will try that =)
linuxares
DD-WRT Novice


Joined: 11 Nov 2007
Posts: 21

PostPosted: Wed Sep 16, 2009 21:20    Post subject: Reply with quote
No, still same error =/

Spins down, wont spin up when FTPing to it.
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Wed Sep 16, 2009 21:29    Post subject: Reply with quote
Found this:

http://wohlgemuth.spaces.live.com/blog/cns!F4563EC157EE7AD6!327.entry

http://ubuntuforums.org/showthread.php?t=679228

_________________
Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Wed Sep 16, 2009 21:37    Post subject: Reply with quote
Lemme know if it works so I/we can add it to the Wiki..
_________________
Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
nklb
DD-WRT Novice


Joined: 15 Sep 2009
Posts: 14

PostPosted: Thu Sep 17, 2009 0:05    Post subject: Reply with quote
I have a version of this drive that I have been using for a while with dd-wrt. I had to do the sdparm trick a while ago for the same reason, so I can confirm that it works.
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Thu Sep 17, 2009 1:25    Post subject: Reply with quote
Ok, I updated the Wiki:

http://www.dd-wrt.com/wiki/index.php/USB_storage#Prevent_Harddisk_Spindown

_________________
Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
nklb
DD-WRT Novice


Joined: 15 Sep 2009
Posts: 14

PostPosted: Thu Sep 17, 2009 22:36    Post subject: Reply with quote
In fairness, the only commands that are needed are these:

To check the settings on the drive:
sdparm -a /dev/sdX

To clear the value that causes the drive to sleep:
sdparm --clear STANDBY -6 /dev/sdX
linuxares
DD-WRT Novice


Joined: 11 Nov 2007
Posts: 21

PostPosted: Sat Sep 19, 2009 13:44    Post subject: Reply with quote
Will try out.

Fast question, since I don't want to touch my external harddrive with Optware packages.

Is it possible to use a USB-key to have the OPT folder so I can keep the hdd untouched?

Since this router got 2 USB ports.
teixeirap
DD-WRT Novice


Joined: 27 Apr 2010
Posts: 21

PostPosted: Mon May 10, 2010 22:47    Post subject: Reply with quote
Masterman wrote:
Ok, I updated the Wiki:

http://www.dd-wrt.com/wiki/index.php/USB_storage#Prevent_Harddisk_Spindown


Guys this is easier, it's been faced before with the SLUG (NSLU2) ... the solution doesn't stop the spin down but configures the kernel to use it properly, i.e wakes up HDD when needed.

See: http://www.nslu2-linux.org/wiki/FAQ/DealWithAutoSpinDownOnSeagateFreeAgent

You can use the following in your start up script to enable on all drives:
for f in /sys/class/scsi_disk/*; do echo 1 > $f/allow_restart; done

This has worked for me and I think is better than forcing the HDD to never spin down.
8hatchery
DD-WRT Novice


Joined: 03 Jul 2010
Posts: 5

PostPosted: Fri Jul 16, 2010 0:23    Post subject: Reply with quote
teixeirap wrote:
Masterman wrote:
Ok, I updated the Wiki:

http://www.dd-wrt.com/wiki/index.php/USB_storage#Prevent_Harddisk_Spindown


Guys this is easier, it's been faced before with the SLUG (NSLU2) ... the solution doesn't stop the spin down but configures the kernel to use it properly, i.e wakes up HDD when needed.

See: http://www.nslu2-linux.org/wiki/FAQ/DealWithAutoSpinDownOnSeagateFreeAgent

You can use the following in your start up script to enable on all drives:
for f in /sys/class/scsi_disk/*; do echo 1 > $f/allow_restart; done

This has worked for me and I think is better than forcing the HDD to never spin down.


This is much better than the previous method.
It works for me. Thanks a million.
gbxk86a
DD-WRT Novice


Joined: 25 Aug 2010
Posts: 12

PostPosted: Thu Aug 26, 2010 1:39    Post subject: Reply with quote
teixeirap wrote:
Masterman wrote:
Ok, I updated the Wiki:

http://www.dd-wrt.com/wiki/index.php/USB_storage#Prevent_Harddisk_Spindown


Guys this is easier, it's been faced before with the SLUG (NSLU2) ... the solution doesn't stop the spin down but configures the kernel to use it properly, i.e wakes up HDD when needed.

See: http://www.nslu2-linux.org/wiki/FAQ/DealWithAutoSpinDownOnSeagateFreeAgent

You can use the following in your start up script to enable on all drives:
for f in /sys/class/scsi_disk/*; do echo 1 > $f/allow_restart; done

This has worked for me and I think is better than forcing the HDD to never spin down.



This works for me with a Seagate 250 GB Freeagent external hard drive. However, I did have error when I first copied and pasted to the command box. With a little guessing (I never used Linux commands), it worked with a semicolon at the end behind "done."

Thank you for such an easy solution.
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum