LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-30-2013, 02:08 PM   #1
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Rep: Reputation: Disabled
USB disk won't sleep under Slackware-14.1


Sequel to my: USB disk won't sleep under Slackware 14.0

The fix under Slackware 14.0 (udisks2-1.98.0) was to use a udev rule to add ID_ATA_FEATURE_SET_SMART_ENABLED=0 which stopped udisks2 from polling the disk every 10 minutes and keeping it from sleeping.

This no longer works in Slackware 14.1 with udisks2-2.1.0. I've tried that, and several others (ID_ATA_FEATURE_SET_SMART=0, UDISKS_ATA_SMART_IS_AVAILABLE=0) to no avail; udisks2 still polls the disk for SMART information every 10 minutes, keeping it from sleeping.

Any ideas out there? (Other than removepkg udisks2)
 
Old 11-30-2013, 06:35 PM   #2
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Original Poster
Rep: Reputation: Disabled
I got a workaround, disabling SMART capability on the drive (here sdb):
Code:
# smartctl -s off /dev/sdb
This setting is apparently saved in the disk drive's own NVRAM, so it only needs to be used once. The trick is that it has to be run while the udisks2 daemon udisksd is NOT running. (If I disable SMART on the drive while udisksd is running, udisksd helpfully turns it right back on.) Once this is done, and udisksd restarted, the disk is no longer polled, and it goes to sleep as it should.

But it does seem to be a bug in udisks2, that the udev property ID_ATA_FEATURE_SET_SMART_ENABLED is not transfered into udisks2 to set the SmartEnabled property.
 
Old 12-01-2013, 06:12 AM   #3
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Why is udisks2 using SMART commands without being configured to do so? There are broken drives out there, which corrupt data if SMART commands are used in parallel to writing. Why is broken software like this included with Slackware?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] USB disk won't sleep under Slackware-14.0 ljb643 Slackware 4 10-31-2012 03:02 PM
Need to install Slackware but laptop won't read disk emeisner Slackware - Installation 6 08-15-2012 07:27 AM
How can one get USB external disk drive to "sleep"? harryhaller Linux - Hardware 4 09-06-2008 12:55 AM
Usb disk corrupt, won't mount guitara Linux - Hardware 4 05-11-2006 02:39 AM
Why won't Slackware 7.1 lowmem.i boot, every other disk / version will? SBing Slackware 4 08-01-2004 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration