LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-11-2014, 12:40 PM   #1
Colatra
LQ Newbie
 
Registered: Aug 2014
Distribution: Slackware
Posts: 25

Rep: Reputation: Disabled
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
 
Old 09-11-2014, 01:33 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
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.
 
Old 09-11-2014, 02:20 PM   #3
Colatra
LQ Newbie
 
Registered: Aug 2014
Distribution: Slackware
Posts: 25

Original Poster
Rep: Reputation: Disabled
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
 
Old 09-11-2014, 03:28 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
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).
 
Old 09-11-2014, 04:48 PM   #5
Colatra
LQ Newbie
 
Registered: Aug 2014
Distribution: Slackware
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by astrogeek View Post
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.
 
Old 09-11-2014, 04:51 PM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by Colatra View Post
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?
 
Old 09-12-2014, 07:41 AM   #7
Colatra
LQ Newbie
 
Registered: Aug 2014
Distribution: Slackware
Posts: 25

Original Poster
Rep: Reputation: Disabled
#hdparm -B 254 /dev/sda
This commamd solved my problema.
 
Old 09-12-2014, 07:48 AM   #8
Nh3xus
Member
 
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211

Rep: Reputation: 57
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...
 
  


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
Problems with Toshiba Tecra S2 laptop rblampain Linux - Hardware 3 04-22-2011 04:47 AM
Problems during the installation of Suse 10.2 in a new toshiba laptop mariav Linux - Software 2 03-28-2007 06:01 PM
Toshiba Laptop Resolution Problems aliraein Linux - Laptop and Netbook 3 11-01-2005 12:46 AM
Graphic problems with Mandrake and Toshiba laptop CHiWuaN Linux - Newbie 1 03-03-2004 02:07 AM
redhat hat 7.2 on toshiba laptop hang problems mlagmay Linux - General 4 04-10-2002 04:50 PM

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

All times are GMT -5. The time now is 06:16 PM.

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