Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] HDD wakes up himself after some time
Thank you for your donation

Pages (3): « Previous 1 2 3 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: HDD wakes up himself after some time
7th Jan, 2014, 04:21 AM
Post: #16
feg Offline
Registered
Posts: 8
Joined: Jan 2014
Reputation: 0
RE: HDD wakes up himself after some time
I tried this program however now and as I thought my drive is not supported. Is not even on the list in program.

So I don't know what I should do now.
Find all posts by this user
Quote this message in a reply
7th Jan, 2014, 04:23 AM
Post: #17
Alcoinus Offline
Registered
Posts: 17
Joined: Jan 2014
Reputation: 0
RE: HDD wakes up himself after some time
Hmm... Maybe there is an other software which supports your HDD. Just search on http://www.wdc.com
Find all posts by this user
Quote this message in a reply
7th Jan, 2014, 11:29 AM
Post: #18
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: HDD wakes up himself after some time
@Alcoinus,

can you post what hdparm is actually doing on the drive ?

Code:
sudo -i
DEVNAME=/dev/sda FORCE_RUN=yes VERBOSE=yes /etc/init.d/hdparm hotplug

the above command will output on screen hdparms action and will run regardles of "nohdparm" setting in /boot/cmdline.txt .
(just btw a better solution to let hdparm work on your xbian is putting "FORCE_RUN=yes" line into /etc/default/hdparm as some parameters in cmdline.txt can change with updates)

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
7th Jan, 2014, 06:01 PM
Post: #19
Alcoinus Offline
Registered
Posts: 17
Joined: Jan 2014
Reputation: 0
RE: HDD wakes up himself after some time
@mk01,
The command outputs the following:
Terminal
xbian@xbian ~ $ sudo -i
[sudo] password for xbian:
root@xbian:~# DEVNAME=/dev/sda FORCE_RUN=yes VERBOSE=yes /etc/init.d/hdparm hotplug
[ ok v/sda.
root@xbian:~#
( and the hdd starts to spin )
Find all posts by this user
Quote this message in a reply
7th Jan, 2014, 08:21 PM
Post: #20
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: HDD wakes up himself after some time
that means no action. can you please put nohdparm to cmdline.txt, reboot a retry?

either hdparm knows action has been already done or there is really no action.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
7th Jan, 2014, 08:39 PM
Post: #21
Alcoinus Offline
Registered
Posts: 17
Joined: Jan 2014
Reputation: 0
RE: HDD wakes up himself after some time
Its the same:
Terminal
[sudo] password for xbian:
root@xbian:~# DEVNAME=/dev/sda FORCE_RUN=yes VERBOSE=yes /etc/init.d/hdparm hotplug
[ ok v/sda.
root@xbian:~# DEVNAME=/dev/sda FORCE_RUN=yes VERBOSE=yes /etc/init.d/hdparm hotplug
[ ok v/sda.
root@xbian:~#
Find all posts by this user
Quote this message in a reply
7th Jan, 2014, 08:54 PM
Post: #22
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: HDD wakes up himself after some time
then you can edit /etc/init.d/hdparm

comment "set -e" and insert "set -x"
Code:
#set -e
set -x

when you run again, you will see line step by step what is happening. you can upload to pastebin. I will go through it.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
7th Jan, 2014, 08:58 PM
Post: #23
Alcoinus Offline
Registered
Posts: 17
Joined: Jan 2014
Reputation: 0
RE: HDD wakes up himself after some time
here it is http://pastebin.com/LZu8YA9M
Find all posts by this user
Quote this message in a reply
7th Jan, 2014, 09:20 PM
Post: #24
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: HDD wakes up himself after some time
can you please re-run it after you take root privileges (sudo -i)

you started it as xbian user and the actions failed.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
7th Jan, 2014, 09:28 PM
Post: #25
Alcoinus Offline
Registered
Posts: 17
Joined: Jan 2014
Reputation: 0
RE: HDD wakes up himself after some time
haha ok. here is the new one http://pastebin.com/jyvBVk01
Find all posts by this user
Quote this message in a reply
7th Jan, 2014, 09:53 PM
Post: #26
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: HDD wakes up himself after some time
/sbin/hdparm -q -S60 /dev/sda

the same command as usbmounter. the only difference is that hdparm is called from udev from all block devices (including non-rotational) and trying to set this on SD/USB sticks etc. this was causing system locks, slowdowns and other bad things with some combinations of hardware.

XBian is checking /sys/block/sda/queue/rotational to be "1" before that.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
7th Jan, 2014, 10:22 PM
Post: #27
Alcoinus Offline
Registered
Posts: 17
Joined: Jan 2014
Reputation: 0
RE: HDD wakes up himself after some time
okay. but what do you want to say with this to me?
Find all posts by this user
Quote this message in a reply
7th Jan, 2014, 11:23 PM
Post: #28
feg Offline
Registered
Posts: 8
Joined: Jan 2014
Reputation: 0
RE: HDD wakes up himself after some time
Hmm, I'm reading posts above and I also don't know how it can resolve our problem (or maybe now only mine because you solved it in a different way)
Find all posts by this user
Quote this message in a reply
7th Jan, 2014, 11:37 PM
Post: #29
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: HDD wakes up himself after some time
@Alcoinus

that you should check if the drive is correctly recognized as rotational (as I posted above) and if yes then we have just to find why udev doesn't triggers usbmount as designed and wanted and expected (maybe small bug somewhere) and then this standard setup will work again without researching and hacking.

(literally this one issue won't stay between mystery X-Files)

@feg

unfortunately your issue is different one and probably is related to HDD type and/or firmware. I also have two 1TB usb WD passport drives which are ignoring all kind of trials).

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
7th Jan, 2014, 11:54 PM
Post: #30
Alcoinus Offline
Registered
Posts: 17
Joined: Jan 2014
Reputation: 0
RE: HDD wakes up himself after some time
ok. i checked and in /sys/block/sda/queue/rotational is a 1.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (3): « Previous 1 2 3 Next »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 10th May, 2025, 07:12 PM Powered By MyBB, © 2002-2025 MyBB Group.