Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-11-2014, 12:40 PM
|
#1
|
LQ Newbie
Registered: Aug 2014
Distribution: Slackware
Posts: 25
Rep:
|
Toshiba Laptop some problems with hdparm
Hey guys
i have this laptop and i installed slackware beside windows 8.1.
The problem is: i execute # hdparm -B 255 /dev/sda
I create a thing in the crontab to create a textfile with the loadcyclecount. But the harddrive continous this cycle and dont stop.
Sorry my english sucks :P
|
|
|
09-11-2014, 01:33 PM
|
#2
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,297
|
A little more info would help - distro, drive type, contents of crontab.
Did you reboot since setting hdparm -B? If so you must set it at each boot, probably in /etc/rc.d/rc.local or /etc/init.d/rc.local, depending on distro.
Some drives may not support this option.
|
|
|
09-11-2014, 02:20 PM
|
#3
|
LQ Newbie
Registered: Aug 2014
Distribution: Slackware
Posts: 25
Original Poster
Rep:
|
Slackware 14.1 32bits
I set in the crontab " */5 * * * * smartctl -a /dev/sda | grep -i load >> hddlog.txt "
i dont know if this is what you mean with drive type.
Quote:
/dev/sda:
ATA device, with non-removable media
Model Number: TOSHIBA MK5055GSXN
Serial Number: Z983F0J6S
Firmware Revision: GC002M
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6
Standards:
Supported: 8 7 6 5
Likely used: 8
Configuration:
Logical max current
cylinders 16383 65535
heads 16 1
sectors/track 63 63
--
CHS current addressable sectors: 4128705
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 976773168
Logical Sector size: 512 bytes
Physical Sector size: 512 bytes
device size with M = 1024*1024: 476940 MBytes
device size with M = 1000*1000: 500107 MBytes (500 GB)
cache/buffer size = 8192 KBytes
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
Standby timer values: spec'd by Standard, no device specific minimum
R/W multiple sector transfer: Max = 16 Current = 16
Advanced power management level: disabled
DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* NOP cmd
* DOWNLOAD_MICROCODE
Advanced Power Management feature set
SET_MAX security extension
* 48-bit Address feature set
* Device Configuration Overlay feature set
* Mandatory FLUSH_CACHE
* FLUSH_CACHE_EXT
* SMART error logging
* SMART self-test
* General Purpose Logging feature set
* WRITE_{DMA|MULTIPLE}_FUA_EXT
* 64-bit World wide name
* IDLE_IMMEDIATE with UNLOAD
* Gen1 signaling speed (1.5Gb/s)
* Gen2 signaling speed (3.0Gb/s)
* Native Command Queueing (NCQ)
* Host-initiated interface power management
* Phy event counters
* Idle-Unload when NCQ is active
* DMA Setup Auto-Activate optimization
Device-initiated interface power management
* Software settings preservation
* SMART Command Transport (SCT) feature set
* SCT Error Recovery Control (AC3)
* SCT Features Control (AC4)
* SCT Data Tables (AC5)
Security:
Master password revision code = 65534
supported
not enabled
not locked
not frozen
not expired: security count
not supported: enhanced erase
176min for SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 50000392368833ba
NAA : 5
IEEE OUI : 000039
Unique ID : 2368833ba
|
|
|
|
09-11-2014, 03:28 PM
|
#4
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,297
|
That drive supports disabling the power management, and smartctl says it is disabled...
Quote:
Advanced power management level: disabled
|
And what is the cron writing to hddlog.txt?
And about my other questions?
Quote:
Did you reboot since setting hdparm -B?
If so you must set it at each boot, probably in /etc/rc.d/rc.local or /etc/init.d/rc.local, depending on distro.
|
For Slackware you would add the hdparm command to /etc/rc.d/rc.local for it to take effect with each boot. Also make /etc/rc.d/rc.local executable if not already ( chmod +x /etc/rc.d/rc.local).
|
|
|
09-11-2014, 04:48 PM
|
#5
|
LQ Newbie
Registered: Aug 2014
Distribution: Slackware
Posts: 25
Original Poster
Rep:
|
Quote:
Originally Posted by astrogeek
And what is the cron writing to hddlog.txt?
|
Is writing how many load cycle he does. And continuos...
And yes i set hdparm /etc/rc.d/rc.local to take effect with each boot
Last edited by Colatra; 09-11-2014 at 04:49 PM.
|
|
|
09-11-2014, 04:51 PM
|
#6
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,297
|
Quote:
Originally Posted by Colatra
Is writing how many load cycle he does. E continua...
And yes i set hdparm /etc/rc.d/rc.local to take effect with each boot
|
Yes, but what I mean is for you to post a useful sample of what is being written by cron.
Is /etc/rc.d/rc.local executable?
|
|
|
09-12-2014, 07:41 AM
|
#7
|
LQ Newbie
Registered: Aug 2014
Distribution: Slackware
Posts: 25
Original Poster
Rep:
|
#hdparm -B 254 /dev/sda
This commamd solved my problema.
|
|
|
09-12-2014, 07:48 AM
|
#8
|
Member
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211
Rep:
|
This hdparm command is meant to disable the Intellipark feature of the new WD drives.
I've issued it on my laptop as well, because the clicky sound when I'm using Slackware made me crazy.
Yet another feature only decent on Windows...
|
|
|
All times are GMT -5. The time now is 05:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|