Ubuntu

hdparm Ignores Order of Command-Line Flags.

Reported by Ralph Corderoy on 2008-04-25
4
Affects Status Importance Assigned to Milestone
hdparm (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: hdparm

Ubuntu 7.10, hdparm 7.5-1ubuntu1. hdparm(1) doesn't point out that the
options aren't interpreted in the order they're given but instead in a
fixed order. This causes problems when /etc/hdparm.conf contains

    /dev/disk/by-id/ata-ST320423A_3EJ0GMSY {
        # 5 second units * 60 == 5 minutes.
        spindown_time = 60
        standby
    }

because

    hdparm -S60 -y /dev/disk/by-id/ata-ST320423A_3EJ0GMSY

is run but the `standby now' is done first, then wiped-out by setting
the `idle time' to five minutes.

    /dev/disk/by-id/ata-ST320423A_3EJ0GMSY:
     issuing standby command
     setting standby to 60 (5 minutes)

which results in the drive state (-C) still being `active/idle'.

Either hdparm needs to be altered to process options in the command-line
order, or hdparm(8) needs to be very clear that the order is fixed, what
the order is, and that multiple invocations of hdparm may be required as
a workaround.

jtniehof (jtniehof) wrote :

Confirmed in hdparm 9.15-1ubuntu4, Ubuntu 9.10, using the submitter's suggested command line (hdparm -S60 -y).

Changed in hdparm (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.