Activity for hdparm

  • Clarence Risher Clarence Risher created ticket #57

    Replace ultrabayd unsafe echo of BEL character with printf

  • Mark Lord Mark Lord modified ticket #93

    set-sector-size and -Istdout woes with TOSHIBA MG09ACA18TE

  • Mark Lord Mark Lord posted a comment on ticket #93

    The datasheet clearly shows that only the models with an "S" as the 5th character support changing the sector size. Yours has an "A". Drive doesn't support it.

  • Fabian V. Thobe Fabian V. Thobe created ticket #27

    Migration to a more collaboration friendly codebase

  • Jaakko Hintsala Jaakko Hintsala posted a comment on ticket #93

    This issue happens also on TOSHIBA MG10ACA20TA.

  • Jaakko Hintsala Jaakko Hintsala posted a comment on ticket #93

    Thank you so much! This worked for me too on TOSHIBA MG10ACA20TA

  • Mark Lord Mark Lord modified ticket #13

    HDparm creating sdX:sdX1 spurious logs in kernel log

  • Mark Lord Mark Lord posted a comment on ticket #13

    Rejected. This is a distro bug, not an hdparm bug. Fix your distro's scripts.

  • Anthony Desmarais Anthony Desmarais created ticket #13

    HDparm creating sdX:sdX1 spurious logs in kernel log

  • Jari Aalto Jari Aalto created ticket #97

    hdparm 9.65 / remove extra EOL whitesapce from the output

  • Jari Aalto Jari Aalto created ticket #26

    hdparm 9.65 / add --long option suport for all options

  • Mark Lord Mark Lord posted a comment on discussion Open Discussion

    No. Keeping this away from Microsoft.

  • Mark Lord Mark Lord modified ticket #56

    fdevname memory leak

  • Mark Lord Mark Lord modified ticket #56

    fdevname memory leak

  • Mark Lord Mark Lord posted a comment on ticket #56

    Not a real issue with anything. The memory involved is tiny, and everything is freed when the program exits.

  • Mark Lord Mark Lord posted a comment on ticket #12

    Try that and report back.

  • Mark Lord Mark Lord posted a comment on ticket #12

    --- hdparm-9.65/hdparm.c 2022-09-06 13:02:56.000000000 -0400 +++ hdparm/hdparm.c 2024-03-25 20:30:28.873285139 -0400 @@ -2,7 +2,7 @@ * hdparm.c - Command line interface to get/set hard disk parameters. * - by Mark Lord (C) 1994-2022 -- freely distributable. */ -#define HDPARM_VERSION "v9.65" +#define HDPARM_VERSION "v9.65+" #define _LARGEFILE64_SOURCE /*for lseek64*/ #define _BSD_SOURCE /* for strtoll() */ @@ -3040,16 +3040,18 @@ static void get_security_password (int h } else if (!handle_NULL ||...

  • Robert Pena Robert Pena posted a comment on ticket #12

    I get this output even when using -q (quite) when setting the SATA drive password or similar when issuing the erase command. Issuing SECURITY_SET_PASS command, password=...

  • Robert Pena Robert Pena created ticket #12

    Prevent password in output

  • Carlos Lopez Carlos Lopez posted a comment on ticket #93

    I had the same issue both with a Toshiba and a Seagate driver. In the end I ended using the tool openSeaChest_FormatUnit and with that I was able to correctly change the logical sector size on both HDDs. You can download the tool from here: https://github.com/Seagate/ToolBin (binaries avail here: https://github.com/Seagate/ToolBin/tree/master/openSeaChest/bin-build/22.07.26/ ) And there is a quick guide on how to use it here: https://wiki.archlinux.org/title/Advanced_Format#Seagate The tool its from...

  • Laurent Bonnaud Laurent Bonnaud created ticket #96

    hdparm -t does not display accurate bandwidth for fast SSD

  • Philipp Gühring Philipp Gühring created ticket #56

    fdevname memory leak

  • Neustradamus Neustradamus posted a comment on discussion Open Discussion

    Dear @hdparm team, @ideguy, It is possible to put the project on GitHub? Thanks in advance.

  • Tomasz Kłoczko Tomasz Kłoczko posted a comment on discussion Open Discussion

    Hi, Is it anywhere hdparm VCS repo? If not .. is it possible to create such repo best on github/giltlab? (because SF git interface sucks)

  • Nikos Barkas Nikos Barkas created ticket #55

    Add missing SATA and ACS/AST/APT revisions to identify

  • Nikos Barkas Nikos Barkas posted a comment on ticket #95

    Please close/delete this ticket, I have created an entry in patches.

  • Nikos Barkas Nikos Barkas created ticket #54

    Patch to add missing ssd form factors on NOMINAL FORM FACTOR

  • Nikos Barkas Nikos Barkas created ticket #95

    Add missing SSD Form Factor values on the NOMINAL FORM FACTOR

  • Zibri Zibri created ticket #94

    sanitize crypto scramble not correct

  • David Okamoto David Okamoto created ticket #11

    hdparm -C Update to display EPC check power mode states

  • dgcampea dgcampea created ticket #93

    set-sector-size and -Istdout woes with TOSHIBA MG09ACA18TE

  • Beren Scott Beren Scott created ticket #25

    Security as a background process

  • Mark Lord Mark Lord posted a comment on ticket #92

    I have no idea what you are asking. Both '-y' and '-Y' work as intended for me -- I use them regularly, and one can even verify them by using '-C' afterward to read back the (new) drive state.

  • Mark Lord Mark Lord modified ticket #92

    Sleep Now and Stand By Now.

  • Mark Lord Mark Lord posted a comment on ticket #92

    I have no idea what you are asking. Both '-y' and '-Y' work as intended for me -- I use them regularly, and one can even verify them by using '-C' afterward to read back the (new) drive state.

  • Beren Scott Beren Scott created ticket #92

    Sleep Now and Stand By Now.

  • Ratio Ratio posted a comment on ticket #53

    Parsing in other software: https://github.com/doug-gilbert/sg3_utils/blob/main/lib/sg_lib.c#L1840 Note about incorrect byte order i fixed there: https://github.com/doug-gilbert/sg3_utils/pull/25

  • Ratio Ratio created ticket #53

    Fix parsing sense data

  • Mark Lord Mark Lord created a blog post

    hdparm-9.65 is released

  • hdparm hdparm released /hdparm/hdparm-9.65.tar.gz

  • Mark Lord Mark Lord modified ticket #52

    Fix built with glibc 2.36

  • Mark Lord Mark Lord posted a comment on ticket #52

    Okay, I'll put that #ifndef in place for v9.65 and hope that it does more good than harm. Thanks

  • Mark Lord Mark Lord modified ticket #91

    `set-sector-size` out of range

  • Mark Lord Mark Lord posted a comment on ticket #91

    Yes, that got fixed ages ago! :)

  • copyliu copyliu posted a comment on ticket #91

    oh , debian stable provided hdparm version is 9.60, update to newest hdparm everything is good :)

  • copyliu copyliu created ticket #91

    `set-sector-size` out of range

  • Dirk Mueller Dirk Mueller posted a comment on ticket #52

    one option is to make an ifdef around the include of linux/fs.h: #ifndef FSCONFIG_SET_FLAG #include <linux/fs.h> #endif

  • Dirk Mueller Dirk Mueller posted a comment on ticket #52

    if at all this depends on the glibc version I think. the patch looks good to me. I have tested the following patch against glibc 2.19 and gcc 4.8, which is the oldest I still have around, and it compiles flawless. I have removed all linux/ includes as they should come via glibc (via sys/) instead: --- hdparm-9.64/hdparm.c +++ hdparm-9.64/hdparm.c @@ -24,9 +24,6 @@ #include <sys/mount.h> #include <sys/mman.h> #include <sys/user.h> -#include <linux/types.h> -#include <linux/fs.h> -#include <linux/major.h>...

  • Timo Gurr Timo Gurr posted a comment on ticket #52

    This shouldn't have anything to do with GCC(?). At least for my tests hdparm 9.64 with the patch applied compiled fine on two systems, one with glibc 2.35 and one with glibc 2.36 where it failed to build without the patch.

  • Mark Lord Mark Lord posted a comment on ticket #52

    Thanks. But doing this will break builds with older versions. Can you make it conditional upon the version of GCC ?

  • Khem Raj Khem Raj posted a comment on ticket #52

    proposed fix

  • Khem Raj Khem Raj created ticket #52

    Fix built with glibc 2.36

  • Mark Lord Mark Lord created a blog post

    hdparm-9.64 is released

  • hdparm hdparm released /hdparm/hdparm-9.64.tar.gz

  • Jose Maria Mauro Jose Maria Mauro created ticket #10

    Issue trying to secure erase.

  • getsnoopy getsnoopy created ticket #51

    Fix for some unit formatting issues

  • Mark Lord Mark Lord created a blog post

    hdparm-9.63 is released

  • hdparm hdparm released /hdparm/hdparm-9.63.tar.gz

  • Mark Lord Mark Lord posted a comment on ticket #90

    I have renamed the new flag to be "--sanitize-overwrite-passes" to avoid confusion with existing flags where "-pass" refers to a password. Otherwise, applied for hdparm-9.63.

  • Michal Grzedzicki Michal Grzedzicki posted a comment on ticket #90

    Hi Mark, did you have a time to look at the path bellow ?

  • Michal Grzedzicki Michal Grzedzicki posted a comment on ticket #90

    adding patch adding option to specify the pass count

  • Mark Lord Mark Lord modified ticket #90

    hdparm --sanitize-overwrite do not have an option to change the count parameter and default value

  • Mark Lord Mark Lord posted a comment on ticket #90

    Not a bug. It does what one asks it to do. If one wants just a single-pass erase, then use "--security-erase" instead. But I'm totally open to anyone who wants to submit a patch which adds a command-line option to specify the exact number of sanitize cycles. Cheers

  • Beren Scott Beren Scott posted a comment on discussion Open Discussion

    I'm looking through the source code, and I see provisions such as: switch (sanitize_feature) { case SANITIZE_STATUS_EXT: printf("Sanitize status:\n"); sanitize_state = get_sanitize_state(r.hob.nsect); sanitize_normal_output(sanitize_state, &r); break; When I run an enhanced secure erase command, I simply get nothing, it states that it's performing the erase, but nothing changes, then eventually at 30 minutes the process ends. Am I doing something wrong? How do I monitor this process?

  • Michal Grzedzicki Michal Grzedzicki created ticket #90

    hdparm --sanitize-overwrite do not have an option to change the count parameter and default value

  • stoatwblr stoatwblr posted a comment on ticket #89

    addendum, this looks mpt3sas specific, the sata interfaces aren't timing out after all

  • stoatwblr stoatwblr created ticket #89

    scsi timeouts in latest ubuntu kernels

  • Martin Guy Martin Guy posted a comment on ticket #88

    On 22/09/2021, Mark Lord ideguy@users.sourceforge.net wrote: Applied, thanks. I especially like how it nicely handles "0" as well as "1". :) Oh yes :) The second case instead always has plural hours and never 1 minute. If it ever gets internationalized this will all need reworking, but for now... Blessings & thanks M

  • Mark Lord Mark Lord posted a comment on ticket #88

    Applied, thanks. I especially like how it nicely handles "0" as well as "1". :)

  • Mark Lord Mark Lord modified ticket #88

    hdparm -I 12 says "(1 minutes)" and -I 242 "(1 hours)"

  • Norman Diamond Norman Diamond posted a comment on ticket #87

    "I have no idea why the compiler is treating bit shift output as signed value performing sign extension instead of zero extension." The reason is that unsigned short promotes to signed int unless short and int have the same length. ISO C language standard, section 6.3.1.1. Mr. Lord fixed hdparm but C is unfixable.

  • Martin Guy Martin Guy created ticket #88

    hdparm -I 12 says "(1 minutes)" and -I 242 "(1 hours)"

  • Mark Lord Mark Lord modified ticket #84

    hdparm -I /dev/sda crashes device

  • Mark Lord Mark Lord posted a comment on ticket #84

    Kernel (libata) bug, not hdparm.

  • Siegfried Schnieders Siegfried Schnieders posted a comment on ticket #84

    The error still exists in versoin 9.62.

  • Mark Lord Mark Lord modified ticket #87

    hdparm --dco-identify reports invalid value for Real max sectors

  • Mark Lord Mark Lord posted a comment on ticket #87

    Fix this and similar bugs elsewhere in the code. hdparm-9.62 now available.

  • Mark Lord Mark Lord created a blog post

    hdparm-9.62 is released

  • hdparm hdparm released /hdparm/hdparm-9.62.tar.gz

  • Michal Grzedzicki Michal Grzedzicki created ticket #87

    hdparm --dco-identify reports invalid value for Real max sectors

  • Mark Lord Mark Lord created a blog post

    hdparm-9.61 is released

  • hdparm hdparm released /hdparm/hdparm-9.61.tar.gz

  • hdparm hdparm released /hdparm/hdparm-9.61.tar.tz

  • Mark Lord Mark Lord posted a comment on ticket #10

    -J Get/set Western DIgital "Idle3" timeout for a WDC "Green" drive (DANGEROUS) There is support in there, but this was written many years ago, and WD may have changed the protocol. So it might still work, or it might brick your drive. Your call. WD doesn't tell us how it works, so that's the best shot at it for now.

  • mirh mirh posted a comment on ticket #10

    This should have been added in version 9.38. Though documentation claims it's not somehow as good as it could. Is idle3ctl also lacking in this regard?

  • Mark Lord Mark Lord created a blog post

    hdparm-9.60 is released

  • hdparm hdparm released /hdparm/hdparm-9.60.tar.gz

  • hdparm hdparm released /hdparm/hdparm-9.60.tar.gz

  • Mark Lord Mark Lord created a blog post

    hdparm-9.59 is released

  • hdparm hdparm released /hdparm/hdparm-9.59.tar.gz

  • Mark Lord Mark Lord modified ticket #50

    identify.c: Decode word 69 lower bits properly

  • Mark Lord Mark Lord posted a comment on ticket #50

    Looks good. Applied. Thanks.

  • Adrián Kálazi Adrián Kálazi created ticket #50

    identify.c: Decode word 69 lower bits properly

  • Mark Lord Mark Lord posted a comment on ticket #9

    Once the drive firmware has been programmed to "spin down" after inactivity (which is what -B does), then it will spin down so long as it is not being accessed by the system. So.. if you want it to spin-down, hack your copy of veracrypt to STOP continually accessing the drive.

  • none ofyourfkingbusiness none ofyourfkingbusiness created ticket #9

    hdparm + mounted veracrypt/truecrypt drive never spinning down with -B

  • Nishit M V Nishit M V posted a comment on ticket #17

    I just had the same issue , now the disk is not detectable in BIOS . Could you please tell me the fix and a way to recoved the disk, or is th HDD bricked for good ?

  • Rafal Rafal modified a comment on discussion Help

    Can you provide exact line what need to be added to sudoers file that allow to launch hdparm without being asked for password? nevermind, checked and works: administrator ALL = (ALL) NOPASSWD: /bin/hdparm

  • Rafal Rafal posted a comment on discussion Help

    Can you provide exact line what need to be added to sudoers file that allow to launch hdparm without being asked for password?

  • Mark Lord Mark Lord modified ticket #86

    close file handle before exit

  • Mark Lord Mark Lord posted a comment on ticket #86

    Pointless and unneeded code bloat. Invoking exit(2) closes all open descriptors already, so there is no need to waste code to do it separately.

1 >