Results 1 to 4 of 4

Thread: 11.04 killing my hard drive as Jaunty years before

  1. #1
    Join Date
    Sep 2011
    Beans
    18

    11.04 killing my hard drive as Jaunty years before

    Hi, i have Lenovo Ideapad B560 P/N 59063957 since july using Ubuntu 11.04 and my Load Cycle count growing very fast...

    here are some values

    Code:
    root@zemkovo-lenovo:/home/zemko# smartctl -d ata -a /dev/sda
    smartctl 5.40 2010-07-12 r3124 [x86_64-unknown-linux-gnu] (local build)
    Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
    
    === START OF INFORMATION SECTION ===
    Model Family:     Western Digital Scorpio Blue Serial ATA family
    Device Model:     WDC WD5000BEVT-24A0RT0
    Serial Number:    WD-WX11EA0A1163
    Firmware Version: 01.01A02
    User Capacity:    500*107*862*016 bytes
    Device is:        In smartctl database [for details use: -P show]
    ATA Version is:   8
    ATA Standard is:  Exact ATA specification draft version not indicated
    Local Time is:    Sun Sep 25 18:45:58 2011 CEST
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    
    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED
    
    General SMART Values:
    Offline data collection status:  (0x00)	Offline data collection activity
    					was never started.
    					Auto Offline Data Collection: Disabled.
    Self-test execution status:      (   0)	The previous self-test routine completed
    					without error or no self-test has ever 
    					been run.
    Total time to complete Offline 
    data collection: 		 (13200) seconds.
    Offline data collection
    capabilities: 			 (0x7b) SMART execute Offline immediate.
    					Auto Offline data collection on/off support.
    					Suspend Offline collection upon new
    					command.
    					Offline surface scan supported.
    					Self-test supported.
    					Conveyance Self-test supported.
    					Selective Self-test supported.
    SMART capabilities:            (0x0003)	Saves SMART data before entering
    					power-saving mode.
    					Supports SMART auto save timer.
    Error logging capability:        (0x01)	Error logging supported.
    					General Purpose Logging supported.
    Short self-test routine 
    recommended polling time: 	 (   2) minutes.
    Extended self-test routine
    recommended polling time: 	 ( 154) minutes.
    Conveyance self-test routine
    recommended polling time: 	 (   5) minutes.
    SCT capabilities: 	       (0x7037)	SCT Status supported.
    					SCT Feature Control supported.
    					SCT Data Table supported.
    
    SMART Attributes Data Structure revision number: 16
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
      1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
      3 Spin_Up_Time            0x0027   183   180   021    Pre-fail  Always       -       1850
      4 Start_Stop_Count        0x0032   096   096   000    Old_age   Always       -       4749
      5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
      7 Seek_Error_Rate         0x002e   100   253   000    Old_age   Always       -       0
      9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       652
     10 Spin_Retry_Count        0x0032   100   100   051    Old_age   Always       -       0
     11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
     12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       352
    192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       34
    193 Load_Cycle_Count        0x0032   198   198   000    Old_age   Always       -       6570
    194 Temperature_Celsius     0x0022   108   101   000    Old_age   Always       -       39
    196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
    197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
    198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
    199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
    200 Multi_Zone_Error_Rate   0x0008   100   253   051    Old_age   Offline      -       0
    
    SMART Error Log Version: 1
    No Errors Logged
    
    SMART Self-test log structure revision number 1
    No self-tests have been logged.  [To run self-tests, use: smartctl -t]
    
    
    SMART Selective self-test log data structure revision number 1
     SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
        1        0        0  Not_testing
        2        0        0  Not_testing
        3        0        0  Not_testing
        4        0        0  Not_testing
        5        0        0  Not_testing
    Selective self-test flags (0x0):
      After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.
    Code:
    root@zemkovo-lenovo:/home/zemko# hdparm -I /dev/sda
    
    /dev/sda:
    
    ATA device, with non-removable media
    	Model Number:       WDC WD5000BEVT-24A0RT0                  
    	Serial Number:      WD-WX11EA0A1163
    	Firmware Revision:  01.01A02
    	Transport:          Serial, 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	16383
    	heads		16	16
    	sectors/track	63	63
    	--
    	CHS current addressable sectors:   16514064
    	LBA    user addressable sectors:  268435455
    	LBA48  user addressable sectors:  976773168
    	Logical/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
    	Nominal Media Rotation Rate: 5400
    Capabilities:
    	LBA, IORDY(can be disabled)
    	Queue depth: 32
    	Standby timer values: spec'd by Standard, with device specific minimum
    	R/W multiple sector transfer: Max = 16	Current = 0
    	Advanced power management level: 254
    	Recommended acoustic management value: 128, current value: 254
    	DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
    	     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
    	    	Automatic Acoustic Management feature set
    	   *	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
    	   *	{READ,WRITE}_DMA_EXT_GPL commands
    	   *	Segmented DOWNLOAD_MICROCODE
    	   *	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
    	   *	NCQ priority information
    	   *	DMA Setup Auto-Activate optimization
    	    	Device-initiated interface power management
    	   *	Software settings preservation
    	   *	SMART Command Transport (SCT) feature set
    	   *	SCT Long Sector Access (AC1)
    	   *	SCT LBA Segment Access (AC2)
    	   *	SCT Features Control (AC4)
    	   *	SCT Data Tables (AC5)
    	    	unknown 206[12] (vendor specific)
    	    	unknown 206[13] (vendor specific)
    	    	unknown 206[14] (vendor specific)
    Security: 
    	Master password revision code = 65534
    		supported
    	not	enabled
    	not	locked
    	not	frozen
    	not	expired: security count
    		supported: enhanced erase
    	134min for SECURITY ERASE UNIT. 134min for ENHANCED SECURITY ERASE UNIT.
    Logical Unit WWN Device Identifier: 50014ee600aaac2f
    	NAA		: 5
    	IEEE OUI	: 0014ee
    	Unique ID	: 600aaac2f
    Checksum: correct
    Code:
    root@zemkovo-lenovo:/home/zemko# cat /etc/laptop-mode/laptop-mode.conf
    ###############################################################################
    #
    # Configuration for Laptop Mode Tools
    # -----------------------------------
    #
    # There is a "system" to the configuration setting names:
    #    CONTROL_something=0/1   Determines whether Laptop Mode Tools controls 
    #                            something
    #    LM_something=value      Value of "something" when laptop mode is active
    #    NOLM_something=value    Value of "something" when laptop mode is NOT
    #                            active
    #    AC_something=value      Value of "something" when the computer is running
    #                            on AC power
    #    BATT_something=value    Value of "something when the computer is running
    #                            on battery power
    #
    # There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the
    # available prefixes are different for each setting. The available ones are 
    # documented in the manual page, laptop-mode.conf(8). If there is no LM_/
    # NOLM_ in a setting name, then the value is used independently of laptop
    # mode state, and similarly, if there is no AC_/BATT_, then the value is used
    # independently of power state.
    #
    # Some options only work on ACPI systems. They are marked ACPI-ONLY.
    #
    # Note that this configuration file is a fragment of shell script: you
    # can use all the features of the shell scripting language to achieve your
    # desired configuration.
    #
    # 
    # Modules
    # -------
    #
    # Laptop Mode Tools modules have separate configuration files, that can be
    # found in /etc/laptop-mode/conf.d. Please look through these configuration
    # files as well, there are many useful power saving tools in there!
    #
    ###############################################################################
    
    
    ###############################################################################
    # Enable/Disable laptop-mode-tools execution
    # ------------------------------------------
    # Set it to 0 to completely disable laptop-mode-tools from running
    ###############################################################################
    #
    ENABLE_LAPTOP_MODE_TOOLS=1
    
    
    ###############################################################################
    # Configuration debugging
    # -----------------------
    ###############################################################################
    
    #
    # Set this to 1 if you want to see a lot of information when you start/stop 
    # laptop_mode.
    #
    VERBOSE_OUTPUT=0
    
    # Set this to 1 if you want to log messages to syslog
    LOG_TO_SYSLOG=1
    
    # Run in shell debug mode
    # Enable this if you would like to execute the entire laptop-mode-tools program
    # in shell debug mode. Warning: This will create a lot of text output
    # If you are debugging an individual module, perhaps you would want to enable
    # each module specific debug mode (available in module conf files)
    DEBUG=0
    
    ###############################################################################
    # When to enable laptop mode
    # --------------------------
    #
    # "Laptop mode" is the mode in which laptop mode tools makes the computer
    # consume less power. This includes the kernel "laptop_mode" feature, which
    # allows your hard drives to spin down, as well as various other settings which
    # can be tweaked by laptop mode tools. You can enable or disable all of these
    # settings using the CONTROL_... options further down in this config file.
    ###############################################################################
    
    
    #
    # Enable laptop mode when on battery power.
    #
    ENABLE_LAPTOP_MODE_ON_BATTERY=1
    
    
    #
    # Enable laptop mode when on AC power.
    #
    ENABLE_LAPTOP_MODE_ON_AC=0
    
    
    #
    # Enable laptop mode when the laptop's lid is closed, even when we're on AC
    # power? (ACPI-ONLY)
    #
    ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0
    
    
    #
    # Enable all simple zero-configuration auto modules
    # This option enables all simple modules (listed below) without requiring
    # the user to enable each module individually
    #
    # List of modules which can be automatically enabled with this setting are:
    #
    # ac97-powersave
    # cpufreq
    # dpms-standby
    # eee-superhe
    # ethernet
    # exec-commands
    # hal-polling
    # hdparm
    # intel-hda-powersave
    # intel-sata-powermgmt
    # runtime-pm
    # sched-mc-power-savings
    # sched-smt-power-savings
    # terminal-blanking
    # usb-autosuspend
    # wireless-ipw-power
    # wireless-iwl-power
    # wireless-power
    #
    # Set this to 1 to enable all simple zero-configuration auto modules listed above.
    #
    # NOTE: You can explicitly enable/disable any of the above modules by changing their
    # values in the individual settings file
    #
    ENABLE_AUTO_MODULES=1
    
    
    
    ###############################################################################
    # When to enable data loss sensitive features
    # -------------------------------------------
    #
    # When data loss sensitive features are disabled, laptop mode tools acts as if
    # laptop mode were disabled, for those features only.
    #
    # Data loss sensitive features include:
    # - laptop_mode (i.e., delayed writes)
    # - hard drive write cache
    #
    # All of the options that follow can be set to 0 in order to prevent laptop
    # mode tools from using them to stop data loss sensitive features. Use this
    # when you have a battery that reports the wrong information, that confuses
    # laptop mode tools.
    #
    # Disabling data loss sensitive features is ACPI-ONLY, and it only works if
    # your battery gives off frequent ACPI events to indicate a change in battery
    # level.
    #
    # NOTE: If your battery does NOT give off battery events often enough, you can
    # enable the battery-level-polling module to make this work. Look at the
    # file /etc/laptop-mode/conf.d/battery-level-polling.conf for more information.
    #
    ###############################################################################
    
    
    #
    # Disable all data loss sensitive features when the battery level (in % of the
    # battery capacity) reaches this value.
    #
    MINIMUM_BATTERY_CHARGE_PERCENT=3
    
    
    #
    # Disable data loss sensitive features when the battery reports its state
    # as "critical".
    #
    DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
    
    
    
    ###############################################################################
    # Controlled hard drives and partitions
    # -------------------------------------
    #
    # For spinning down your hard drives, laptop mode will remount file systems and
    # adjust hard drive spindown timeouts. These parameters specify which
    # devices and partitions are affected by laptop mode.
    ###############################################################################
    
    
    #
    # The drives that laptop mode controls.
    # Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a
    # wildcard, which will get you all your IDE and SCSI/SATA drives.
    #
    HD="/dev/[hs]d[abcdefgh]"
    
    
    #
    # The partitions (or mount points) that laptop mode controls.
    # Separate the values by spaces. Use "auto" to indicate all partitions on drives
    # listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can
    # also specify mount points, e.g. "/mnt/data".
    #
    PARTITIONS="auto /dev/mapper/*"
    
    
    #
    # If this is enabled, laptop mode tools will assume that SCSI drives are
    # really SATA drives that only _look_ like SCSI drives, and will use hdparm
    # to control them. Set this to 0 if you have /dev/sd devices and you want
    # laptop mode tools to use the "sdparm" command to control them. 
    #
    ASSUME_SCSI_IS_SATA=1
    
    
    ###############################################################################
    # Hard drive behaviour settings
    # -----------------------------
    #
    # These settings specify how laptop mode tools will adjust the various
    # parameters of your hard drives and file systems.
    ###############################################################################
    
    
    #
    # Maximum time, in seconds, of work that you are prepared to lose when your
    # system crashes or power runs out. This is the maximum time that Laptop Mode
    # will keep unsaved data waiting in memory before spinning up your hard drive.
    #
    LM_BATT_MAX_LOST_WORK_SECONDS=600
    LM_AC_MAX_LOST_WORK_SECONDS=360
    
    
    #
    # Should laptop mode tools control readahead?
    #
    CONTROL_READAHEAD=1
    
    
    #
    # Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG
    # by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB).
    # Effectively, the disk will read a complete MP3 at once, and will then spin 
    # down while the MP3/OGG is playing. Don't set this too high, because the 
    # readahead is applied to _all_ files that are read from disk.
    #
    LM_READAHEAD=3072
    NOLM_READAHEAD=128
    
    
    #
    # Should laptop mode tools add the "noatime" option to the mount options when 
    # laptop mode is enabled?
    #
    CONTROL_NOATIME=0
    
    # Should laptop use relatime instead of noatime? The "relatime" mount option has
    # more standards-compliant semantics, and allows more applications to work,
    # while retaining a low level of atime updates (i.e., disk writes).
    USE_RELATIME=1
    
    
    #
    # Should laptop mode tools control the hard drive idle timeout settings?
    #
    CONTROL_HD_IDLE_TIMEOUT=1
    
    
    #
    # Idle timeout values. (hdparm -S)
    # Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds
    # for battery and for AC with laptop mode on.
    #
    LM_AC_HD_IDLE_TIMEOUT_SECONDS=20
    LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20
    NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
    
    
    #
    # Should laptop mode tools control the hard drive power management settings?
    #
    # Set to 0 to disable
    CONTROL_HD_POWERMGMT="auto"
    
    
    #
    # Power management for HD (hdparm -B values)
    #
    BATT_HD_POWERMGMT=1
    LM_AC_HD_POWERMGMT=254
    NOLM_AC_HD_POWERMGMT=254
    
    
    #
    # Should laptop mode tools control the hard drive write cache settings?
    #
    CONTROL_HD_WRITECACHE=0
    
    
    #
    # Write cache settings for HD (hdparm -W values)
    #
    NOLM_AC_HD_WRITECACHE=1
    NOLM_BATT_HD_WRITECACHE=0
    LM_HD_WRITECACHE=0
    
    
    
    
    ###############################################################################
    # Settings you probably don't want to touch
    # -----------------------------------------
    #
    # It is usually not necessary to change these parameters. They are included
    # for completeness' sake.
    ###############################################################################
    
    
    #
    # Change mount options on partitions in PARTITIONS? You don't really want to
    # disable this. If you do, then your hard drives will probably not spin down
    # anymore.
    #
    CONTROL_MOUNT_OPTIONS=1
    
    
    #
    # Dirty synchronous ratio.  At this percentage of dirty pages the process
    # which calls write() does its own writeback.
    #
    LM_DIRTY_RATIO=60
    NOLM_DIRTY_RATIO=40
    
    
    #
    # Allowed dirty background ratio, in percent.  Once DIRTY_RATIO has been
    # exceeded, the kernel will wake pdflush which will then reduce the amount
    # of dirty memory to dirty_background_ratio.  Set this nice and low, so once
    # some writeout has commenced, we do a lot of it.
    #
    LM_DIRTY_BACKGROUND_RATIO=1
    NOLM_DIRTY_BACKGROUND_RATIO=10
    
    
    #
    # kernel default settings -- don't touch these unless you know what you're 
    # doing.
    #
    DEF_UPDATE=5
    DEF_XFS_AGE_BUFFER=15
    DEF_XFS_SYNC_INTERVAL=30
    DEF_XFS_BUFD_INTERVAL=1
    DEF_MAX_AGE=30
    
    
    #
    # This must be adjusted manually to the value of HZ in the running kernel
    # on 2.4, until the XFS people change their 2.4 external interfaces to work in
    # centisecs. This can be automated, but it's a work in progress that still
    # needs some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
    # external interfaces, and that is currently always set to 100. So you don't
    # need to change this on 2.6.
    #
    XFS_HZ=100
    
    
    #
    # Seconds laptop mode has to to wait after the disk goes idle before doing
    # a sync.
    #
    LM_SECONDS_BEFORE_SYNC=2
    to reduce growing number of Load cycles I am using $hdparm -B 254 -S 253 /dev/sda

    but system cannot get same values after restart, reboot or unpluggin' from AC adapter even, the value is listed in hdparm.conf the load cycle count is growing without new command

    Code:
    root@zemkovo-lenovo:/home/zemko# cat /etc/hdparm.conf
    ## This is the default configuration for hdparm for Debian.  It is a 
    ## rather simple script, so please follow the following guidelines :)
    ## Any line that begins with a comment is ignored - add as many as you 
    ## like.  Note that an in-line comment is not supported.  If a line 
    ## consists of whitespace only (tabs, spaces, carriage return), it will be
    ## ignored, so you can space control fields as you like.  ANYTHING ELSE
    ## IS PARSED!!  This means that lines with stray characters or lines that 
    ## use non # comment characters will be interpreted by the initscript.  
    ## This has probably minor, but potentially serious, side effects for your 
    ## hard drives, so please follow the guidelines.  Patches to improve 
    ## flexibilty welcome.  Please read /usr/share/doc/hdparm/README.Debian for 
    ## notes about known issues, especially if you have an MD array.
    ##
    ## Note that if the init script causes boot problems, you can pass 'nohdparm' 
    ## on the kernel command line, and the script will not be run.
    ##
    ## Uncommenting the options below will cause them to be added to the DEFAULT
    ## string which is prepended to options listed in the blocks below.
    ##
    ## If an option is listed twice, the second instance replaces the first.
    ##
    ## /sbin/hdparm is not run unless a block of the form:
    ##      DEV {
    ##         option
    ##         option
    ##         ...
    ##      }
    ## exists.  This blocks will cause /sbin/hdparm OPTIONS DEV to be run.
    ## Where OPTIONS is the concatenation of all options previously defined
    ## outside of a block and all options defined with in the block.
    
    # -q be quiet
    quiet 
    # -a sector count for filesystem read-ahead
    #read_ahead_sect = 12
    # -A disable/enable the IDE drive's read-lookahead feature
    #lookahead = on
    # -b bus state
    #bus = on
    # -B apm setting
    #apm = 254
    # -c enable (E)IDE 32-bit I/O support - can be any of 0,1,3
    #io32_support = 1
    # -d disable/enable the "using_dma" flag for this drive
    #dma = off
    # -D enable/disable the on-drive defect management
    #defect_mana = off
    # -E cdrom speed
    #cd_speed = 16
    # -k disable/enable the "keep_settings_over_reset" flag for this drive
    #keep_settings_over_reset = off
    # -K disable/enable the drive's "keep_features_over_reset" flag
    #keep_features_over_reset = on
    # -m sector count for multiple sector I/O
    #mult_sect_io = 32
    # -P maximum sector count for the drive's internal prefetch mechanism
    #prefetch_sect = 12
    # -r read-only flag for device
    #read_only = off
    # -s Turn on/off power on in standby mode
    # poweron_standby = off
    # -S standby (spindown) timeout for the drive
    #spindown_time = 253
    # -u interrupt-unmask flag for the drive
    #interrupt_unmask = on
    # -W Disable/enable the IDE drive's write-caching feature
    #write_cache = off
    # -X IDE transfer mode for newer (E)IDE/ATA2 drives
    #transfer_mode = 34
    # -y force to immediately enter the standby mode
    #standby
    # -Y force to immediately enter the sleep mode
    #sleep
    # -Z Disable the power-saving function of certain Seagate drives
    #disable_seagate
    # -M Set the acoustic management properties of a drive
    #acoustic_management
    # -p Set the chipset PIO mode
    # chipset_pio_mode
    # --security-freeze Freeze the drive's security status
    # security_freeze
    # --security-unlock Unlock the drive's security
    # security_unlock = PWD
    # --security-set-pass Set security password
    # security_pass = password
    # --security-disable Disable drive locking
    # security_disable
    # --user-master Select password to use
    # user-master = u
    # --security-mode Set the security mode
    # security_mode = h
    
    # Root file systems.  Please see README.Debian for details
    # ROOTFS = /dev/hda
    
    ## New note - you can use straight hdparm commands in this config file 
    ## as well - the set up is ugly, but it keeps backwards compatibility
    ## Additionally, it should be noted that any blocks that begin with 
    ## the keyword 'command_line' are not run until after the root filesystem
    ## is mounted.  This is done to avoid running blocks twice.  If you need 
    ## to run hdparm to set parameters for your root disk, please use the 
    ## standard format.
    
    #Samples follow:
    #First three are good for devfs systems, fourth one for systems that do 
    #not use devfs.  The fifth example uses straight hdparm command line
    #syntax.  Any of the blocks that use command line syntax must begin with
    #the keyword 'command_line', and no attempt is made to validate syntax.  
    #It is provided for those more comfortable with hdparm syntax. 
    
    #/dev/discs/disc0/disc {
    #	mult_sect_io = 16
    #	write_cache = off
    #	spindown_time = 240
    #}
    
    #/dev/discs/disc1/disc {
    #	mult_sect_io = 32
    #	spindown_time = 36
    #	write_cache = off
    #}
    
    #/dev/cdroms/cdrom0 {
    #	dma = on		   
    #	interrupt_unmask = on
    #	io32_support = 0
    #}
    
    #/dev/hda {
    #	mult_sect_io = 16
    #	write_cache = off
    #	dma = on
    #}
    Last edited by zemko; September 26th, 2011 at 08:41 PM.

  2. #2
    Join Date
    Sep 2011
    Beans
    18

    Re: 11.04 killing my hard drive as Jaunty years before

    adding

    Code:
    /dev/sdx {
    apm = 254
    apm_battery = 254
    }
    to the end of /etc/hdparm.conf solves the problem

    and of course you must disable (set to 0) Laptop-Mode and laptop-mode-tools in /etc/laptop-mode/laptop-mode.conf

    Code:
    ###############################################################################
    # Enable/Disable laptop-mode-tools execution
    # ------------------------------------------
    # Set it to 0 to completely disable laptop-mode-tools from running
    ###############################################################################
    #
    ENABLE_LAPTOP_MODE_TOOLS=0
    
    
    ###############################################################################
    # Configuration debugging
    # -----------------------
    ###############################################################################
    
    #
    # Set this to 1 if you want to see a lot of information when you start/stop 
    # laptop_mode.
    #
    VERBOSE_OUTPUT=0
    
    # Set this to 1 if you want to log messages to syslog
    LOG_TO_SYSLOG=1
    
    # Run in shell debug mode
    # Enable this if you would like to execute the entire laptop-mode-tools program
    # in shell debug mode. Warning: This will create a lot of text output
    # If you are debugging an individual module, perhaps you would want to enable
    # each module specific debug mode (available in module conf files)
    DEBUG=0
    
    ###############################################################################
    # When to enable laptop mode
    # --------------------------
    #
    # "Laptop mode" is the mode in which laptop mode tools makes the computer
    # consume less power. This includes the kernel "laptop_mode" feature, which
    # allows your hard drives to spin down, as well as various other settings which
    # can be tweaked by laptop mode tools. You can enable or disable all of these
    # settings using the CONTROL_... options further down in this config file.
    ###############################################################################
    
    
    #
    # Enable laptop mode when on battery power.
    #
    ENABLE_LAPTOP_MODE_ON_BATTERY=0
    
    
    #
    # Enable laptop mode when on AC power.
    #
    ENABLE_LAPTOP_MODE_ON_AC=0
    
    
    #
    # Enable laptop mode when the laptop's lid is closed, even when we're on AC
    # power? (ACPI-ONLY)
    #
    ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0
    Last edited by zemko; September 30th, 2011 at 05:29 PM.

  3. #3
    Join Date
    Oct 2005
    Location
    Holland
    Beans
    945
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: 11.04 killing my hard drive as Jaunty years before

    Thanks for adding your solution, and welcome to this forum.

    You can mark the thread as solved, using Thread Tools on top of this page

    Topsiho

  4. #4
    Join Date
    Sep 2011
    Beans
    18

    Re: 11.04 killing my hard drive as Jaunty years before

    Topsiho: done

    plus added one more step to do

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •