Re: hdparm problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/20/2015 12:04 PM, jd1008 wrote:


On 03/20/2015 11:24 AM, Rick Stevens wrote:
hdparm --user-master m --set-security-pass

It is belching the usage at me:

# hdparm --user-master m --set-security-pass thepassword /dev/sdc

hdparm - get/set hard disk parameters - version v9.45, by Mark Lord.

Usage:  hdparm  [options] [device ...]

Options:
  -a   Get/set fs readahead
  -A   Get/set the drive look-ahead flag (0/1)
  -b   Get/set bus state (0 == off, 1 == on, 2 == tristate)
  -B   Set Advanced Power Management setting (1-255)
  -c   Get/set IDE 32-bit IO setting
  -C   Check drive power mode status
  -d   Get/set using_dma flag
  -D   Enable/disable drive defect management
  -E   Set cd/dvd drive speed
  -f   Flush buffer cache for device on exit
  -F   Flush drive write cache
  -g   Display drive geometry
  -h   Display terse usage information
  -H   Read temperature from drive (Hitachi only)
  -i   Display drive identification
  -I   Detailed/current information directly from drive
  -J   Get/set Western DIgital "Idle3" timeout for a WDC "Green" drive
(DANGEROUS)
  -k   Get/set keep_settings_over_reset flag (0/1)
  -K   Set drive keep_features_over_reset flag (0/1)
  -L   Set drive doorlock (0/1) (removable harddisks only)
  -m   Get/set multiple sector count
  -M   Get/set acoustic management (0-254, 128: quiet, 254: fast)
  -n   Get/set ignore-write-errors flag (0/1)
  -N   Get/set max visible number of sectors (HPA) (VERY DANGEROUS)
  -p   Set PIO mode on IDE interface chipset (0,1,2,3,4,...)
  -P   Set drive prefetch count
  -q   Change next setting quietly
  -Q   Get/set DMA queue_depth (if supported)
  -r   Get/set device readonly flag (DANGEROUS to set)
  -R   Get/set device write-read-verify flag
  -s   Set power-up in standby flag (0/1) (DANGEROUS)
  -S   Set standby (spindown) timeout
  -t   Perform device read timings
  -T   Perform cache read timings
  -u   Get/set unmaskirq flag (0/1)
  -U   Obsolete
  -v   Use defaults; same as -acdgkmur for IDE drives
  -V   Display program version and exit immediately
  -w   Perform device reset (DANGEROUS)
  -W   Get/set drive write-caching flag (0/1)
  -x   Obsolete
  -X   Set IDE xfer mode (DANGEROUS)
  -y   Put drive in standby mode
  -Y   Put drive to sleep
  -z   Re-read partition table
  -Z   Disable Seagate auto-powersaving mode
  --dco-freeze      Freeze/lock current device configuration until next
power cycle
  --dco-identify    Read/dump device configuration identify data
  --dco-restore     Reset device configuration back to factory defaults
  --dco-setmax      Use DCO to set maximum addressable sectors
  --direct          Use O_DIRECT to bypass page cache for timings
  --drq-hsm-error   Crash system with a "stuck DRQ" error (VERY DANGEROUS)
  --fallocate       Create a file without writing data to disk
  --fibmap          Show device extents (and fragmentation) for a file
  --fwdownload            Download firmware file to drive (EXTREMELY
DANGEROUS)
  --fwdownload-mode3      Download firmware using min-size segments
(EXTREMELY DANGEROUS)
  --fwdownload-mode3-max  Download firmware using max-size segments
(EXTREMELY DANGEROUS)
  --fwdownload-mode7      Download firmware using a single segment
(EXTREMELY DANGEROUS)
  --fwdownload-modee      Download firmware using mode E (min-size
segments) (EXTREMELY DANGEROUS)
  --fwdownload-modee-max  Download firmware using mode E (max-size
segments) (EXTREMELY DANGEROUS)
  --idle-immediate  Idle drive immediately
  --idle-unload     Idle immediately and unload heads
  --Istdin          Read identify data from stdin as ASCII hex
  --Istdout         Write identify data to stdout as ASCII hex
  --make-bad-sector Deliberately corrupt a sector directly on the media
(VERY DANGEROUS)
  --offset          use with -t, to begin timings at given offset (in
GiB) from start of drive
  --prefer-ata12    Use 12-byte (instead of 16-byte) SAT commands when
possible
  --read-sector     Read and dump (in hex) a sector directly from the media
  --repair-sector   Alias for the --write-sector option (VERY DANGEROUS)
  --security-help   Display help for ATA security commands
  --trim-sector-ranges        Tell SSD firmware to discard unneeded data
sectors: lba:count ..
  --trim-sector-ranges-stdin  Same as above, but reads lba:count pairs
from stdin
  --verbose         Display extra diagnostics from some commands
  --write-sector    Repair/overwrite a (possibly bad) sector directly on
the media (VERY DANGEROUS)

I've never used this stuff, Joanne, but I know people who have, which
is why I suggested you have the user password set (the "--set-security-password" command defaults to "--user-master u").

You may have to specify "--user-master m --set-security-password thepassword --security-mode h" to actually set it, and if it's already
set, I don't know that you can change it. You could try "hdparm
--security-help" for details on what it expects.

As all of these commands are considered "dangerous", I'd only play with
them on a drive you can afford to turn into a doorstop or paperweight
if things go wrong.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-     Try to look unimportant.  The bad guys may be low on ammo.     -
----------------------------------------------------------------------
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux