Activity for Mark Lord

  • 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 ||...

  • 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.

  • 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 created a blog post

    hdparm-9.65 is released

  • 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! :)

  • 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 ?

  • Mark Lord Mark Lord created a blog post

    hdparm-9.64 is released

  • Mark Lord Mark Lord created a blog post

    hdparm-9.63 is released

  • 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.

  • 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

  • Mark Lord Mark Lord modified ticket #88

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

  • 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 #84

    hdparm -I /dev/sda crashes device

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

    Kernel (libata) bug, not hdparm.

  • 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

  • Mark Lord Mark Lord created a blog post

    hdparm-9.61 is released

  • 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.

  • Mark Lord Mark Lord created a blog post

    hdparm-9.60 is released

  • Mark Lord Mark Lord created a blog post

    hdparm-9.59 is released

  • 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.

  • 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.

  • 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.

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

    "The running kernel lacks CONFIG_IDE_TASK_IOCTL support for this device." Perhaps complain to your distro provider about that.

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

    I think you forgot to include the actual command you issued that generated that message.

  • Mark Lord Mark Lord modified ticket #80

    hdparm readahead max is only 2048 - could be higher

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

    The -a parameter is for filesystem read-ahead, not the drive's own readahead (see man page, yes this is documented). The Linux kernel automatically tunes block device read-ahead on its own as well, so there is little (if any) real benefit to fiddling with this value.

  • Mark Lord Mark Lord modified ticket #49

    DCO Identify Real Max Sectors Value incorrect

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

    Thanks. Fixed for hdparm-9.59.

  • Mark Lord Mark Lord modified ticket #79

    9.57 segfaults if drive identification fails

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

    Fixed, and released: hdparm-9.58. Thanks Alex!

  • Mark Lord Mark Lord created a blog post

    hdparm-9.58 is released

  • Mark Lord Mark Lord created a blog post

    hdparm-9.57 is released

  • Mark Lord Mark Lord modified ticket #24

    --read-sector: Add option for raw/binary output

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

    Not going to happen. Working around it is easy enough I suppose.

  • Mark Lord Mark Lord modified ticket #23

    --read-sector: Use SAT or other passthrough method if needed (for sg not block device)

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

    Okay, hdparm-9.57 will skip the "is full device" check (which uses the HDIO_GETGEO call) when run on a character device node.

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

    I think that both of these people are trying to use advanced SATA commands over a USB connection. The USB drivers do not implement the "missing" IOCTL --> it is very specific to libata and the IDE stack. Cheers

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

    Due to other changes in the next release, the code is not yet "in shape" for passing along. For this bug, I just ensured that the loop does do depth++ each time around. The sysfs attr that it is looking for does not always (or even often?) exist, so it's not an error to not find it. Cheers

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

    Fixed for next release (9.57).

  • Mark Lord Mark Lord modified ticket #78

    Bug (endless loop with buffer overflow) in sysfs.c

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

    Fixed for next release (hdparm-9.57)

  • Mark Lord Mark Lord created a blog post

    hdparm-9.56 is released

  • Mark Lord Mark Lord modified ticket #76

    --Istdin incorrectly byte-swaps (or fails to) hex identify data

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

    fixed in hdparm-9.56

  • Mark Lord Mark Lord modified ticket #15

    Options to output raw binary IDENTIFY DEVICE and DCO data

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

    Fixed in hdparm-9.56

  • Mark Lord Mark Lord modified a comment on ticket #76

    Good one! I wonder when that got broken.. I used it all the time when building up drive databases. Darn. will fix. Soon!

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

    Good one! I wonder when that go broken.. I used it all the time when building up drive databases. Darn. will fix. Soon!

  • Mark Lord Mark Lord modified a blog post

    hdparm-9.55 is released

  • Mark Lord Mark Lord created a blog post

    hdparm-9.55 is released

  • Mark Lord Mark Lord modified ticket #44

    use sys/sysmacros.h in more places

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

    This will be included in hdparm-9.55.

  • Mark Lord Mark Lord created a blog post

    hdparm-9.54 is released

  • Mark Lord Mark Lord modified ticket #47

    Fix error code handling on some JMicron USB to (S)ATA bridges

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

    Isn't this already there? Eg. hdparm --sanitize-crypto-scramble and similar..

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

    Nobody seems to have fixed it yet.

  • Mark Lord Mark Lord created a blog post

    hdparm-9.53 is released

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

    Patch conflict with others in the queue: emaiing Iestyn Walters directly to hopefully get this resolved.

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

    Could you possibly fix that "code block" above to be more readable, and convert it into a patch so that I know where in the code it ought to be placed? Thanks.

  • Mark Lord Mark Lord modified ticket #57

    Can't use hdparm on AF drive behind USB bridge

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

    Thanks -- patch now merged into hdparm-9.52.

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

    I lost track of this patch years ago and only just rediscovered it. MERGED.

  • Mark Lord Mark Lord created a blog post

    hdparm-9.52 is released

  • Mark Lord Mark Lord created a blog post

    hdparm-9.51 is released

  • Mark Lord Mark Lord modified ticket #74

    Avoid password as cli parameter, show a prompt instead.

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

    Good suggestion. Fixed with new --security-prompt-for-password flag in hdparm-9....

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

    Perhaps the two SAS drives do not implement the SATA IDENTIFY command, which is what...

  • Mark Lord Mark Lord modified ticket #22

    option to skip "set APM setting" (-B) operation on drives that don't support APM

  • Mark Lord Mark Lord modified a comment on ticket #22

    hdparm is used to test/debug new/old drive features. As such, when I tell it to send...

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

    hdparm is used to test/debug new/old drive features. As such, when I tell it to send...

  • Mark Lord Mark Lord modified ticket #72

    bad make command in Makefile

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

    Thanks. I have changed the "make" into $(MAKE). The -j is there for my convenience,...

  • Mark Lord Mark Lord modified ticket #71

    typos in the code and man page

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

    Thanks. Applied for the next release (9.51 and higher).

  • Mark Lord Mark Lord created a blog post

    hdparm-9.50 is released

  • Mark Lord Mark Lord created a blog post

    hdparm-9.49 is released

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

    A patch is the best thing. And don't use this silly cloud interface to pass it along...

  • Mark Lord Mark Lord modified ticket #69

    Missing information for NVME SSD disk

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

    Most likely the device driver (Linux kernel) is not processing the IDENTIFY DEVICE...

  • Mark Lord Mark Lord modified ticket #67

    Incorrectly checking Smart self test instead of security bit and skipping security section.

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

    Fixed for the next release, thanks.

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

    It has been a few years since anyone last checked/reported using hdparm on SAS drives,...

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

    Okay, no version info provided. Try again with latest hdparm from thsi site, and...

  • Mark Lord Mark Lord modified ticket #66

    cannot read / set parameters on sas drives

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

    The "-i" (lowercase) flag is very specfic to the Linux ATA and IDE drivers. Use "-I"...

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

    For this to move forward, somebody has to step up and volunteer to implement it,...

1 >