<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=3051&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [CLOSED] secure erase failure - unlock ssd with hdparm not possible]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=3051</link>
		<description><![CDATA[The most recent posts in [CLOSED] secure erase failure - unlock ssd with hdparm not possible.]]></description>
		<lastBuildDate>Sat, 14 Sep 2019 18:29:58 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [CLOSED] secure erase failure - unlock ssd with hdparm not possible]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=17853#p17853</link>
			<description><![CDATA[<p>Just for future reference, indeed it appears your SATA to USB adapter was the problem. Never ever use advanced SATA features over such an adapter:<br /><a href="https://sourceforge.net/p/hdparm/support-requests/7/" rel="nofollow">https://sourceforge.net/p/hdparm/support-requests/7/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (b3bgd)]]></author>
			<pubDate>Sat, 14 Sep 2019 18:29:58 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=17853#p17853</guid>
		</item>
		<item>
			<title><![CDATA[Re: [CLOSED] secure erase failure - unlock ssd with hdparm not possible]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=17827#p17827</link>
			<description><![CDATA[<p>thx b3bgd.<br />Of course I forgot....</p><p>However that gave me an: </p><div class="codebox"><pre><code>SECURITY_UNLOCK: Invalid argument</code></pre></div><p>instead, but this too:</p><div class="codebox"><pre><code>Security:
        Master password revision code = 1
                supported 
                enabled
        not     locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
        20min for SECURITY ERASE UNIT. 60min for ENHANCED SECURITY ERASE UNIT.</code></pre></div><p>so I can run the erase command.<br />I have done that already and it was running corectly accept that: </p><div class="codebox"><pre><code>The running kernel lacks CONFIG_IDE_TASK_IOCTL support for this device.</code></pre></div><p>was showing up again.<br />Hower the:</p><div class="codebox"><pre><code>        Master password revision code = 65534</code></pre></div><p>has changed to</p><div class="codebox"><pre><code>        Master password revision code = 1</code></pre></div><p>and after the erase it is still there....<br />Dunno what&#039;s the problem but I do not care anymore, a friend of mine took the SSD to use it so I do not need a solution here anymore.</p>]]></description>
			<author><![CDATA[dummy@example.com (nogeek)]]></author>
			<pubDate>Fri, 13 Sep 2019 17:46:17 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=17827#p17827</guid>
		</item>
		<item>
			<title><![CDATA[Re: [CLOSED] secure erase failure - unlock ssd with hdparm not possible]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=17804#p17804</link>
			<description><![CDATA[<div class="quotebox"><cite>nogeek wrote:</cite><blockquote><div><p>I have a Toshiba device here and figured out that &quot;the&quot; masterpassword (it is the only one I have found in several lists) is 32 spaces, but that did not work:</p><div class="codebox"><pre><code>$ hdparm --user-master m --security-set-pass                                  /dev/sdb
missing PASSWD</code></pre></div><p>I tried 34 spaces between &quot;--security-set-pass&quot; and &quot;/dev/sdb&quot;, because you need a space after each option/parameter and 32 spaces (because the first logical did not work and I am frustrated...).</p></div></blockquote></div><p>That&#039;s not what 32 spaces on a command line do... Just try:</p><div class="codebox"><pre><code>echo                   x</code></pre></div><p>and see what you get. The error message above is pretty clear: <span class="bbc">missing PASSWD</span><br />Try:</p><div class="codebox"><pre><code>$ hdparm --user-master m --security-set-pass &quot;                                &quot; /dev/sdb</code></pre></div><p>Observe the 32 spaces in quotes.</p>]]></description>
			<author><![CDATA[dummy@example.com (b3bgd)]]></author>
			<pubDate>Wed, 11 Sep 2019 05:27:40 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=17804#p17804</guid>
		</item>
		<item>
			<title><![CDATA[[CLOSED] secure erase failure - unlock ssd with hdparm not possible]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=17803#p17803</link>
			<description><![CDATA[<p>I have connected the SSD via a SATA to USB 2.0 Adpater and it is reconized by the computer:</p><div class="codebox"><pre><code>$ lsblk
NAME             MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sdb                8:16   0 447.1G  0 disk</code></pre></div><p>#</p><p>Checking if secure erase is possible (printing here only the security section):</p><div class="codebox"><pre><code>$ hdparm -I /dev/sdb

Security:
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
        20min for SECURITY ERASE UNIT. 60min for ENHANCED SECURITY ERASE UNIT.</code></pre></div><p>#</p><p>Have had set a passwort.</p><div class="codebox"><pre><code>$ hdparm --user-master u --security-set-pass sec123abc /dev/sdb
security_password: &quot;sec123abc&quot;

/dev/sdb:
 Issuing SECURITY_SET_PASS command, password=&quot;sec123abc&quot;, user=user, mode=high
The running kernel lacks CONFIG_IDE_TASK_IOCTL support for this device.
SECURITY_SET_PASS: Invalid argument</code></pre></div><p>#</p><p>Because of this error I checked the SSD again and three time in a row I get different output each time I run the command:</p><div class="codebox"><pre class="vscroll"><code>$ hdparm -I /dev/sdb

/dev/sdb:

ATA device, with non-removable media
Standards:
        Likely used: 1
Configuration:
        soft sectored
        head switch time &gt; 15us
        fixed drive
        disk xfer rate &lt;= 5Mbs
        disk xfer rate &gt; 5Mbs, &lt;= 10Mbs
        data strobe offset option
        format speed tolerance gap reqd
        Logical         max     current
        cylinders       21314   0
        heads           0       0
        sectors/track   0       0
        --
        Logical/Physical Sector size:           512 bytes
        device size with M = 1024*1024:           0 MBytes
        device size with M = 1000*1000:           0 MBytes
        cache/buffer size  = unknown
Capabilities:
        IORDY not likely
        Cannot perform double-word IO
        R/W multiple sector transfer: not supported
        DMA: not supported
        PIO: pio0</code></pre></div><p>#</p><div class="codebox"><pre class="vscroll"><code>$ hdparm -I /dev/sdb

/dev/sdb:
SG_IO: bad/missing sense data, sb[]:  70 00 03 00 00 00 00 0a 00 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

ATA device, with non-removable media
Standards:
        Likely used: 1
Configuration:
        Logical         max     current
        cylinders       0       0
        heads           0       0
        sectors/track   0       0
        --
        Logical/Physical Sector size:           512 bytes
        device size with M = 1024*1024:           0 MBytes
        device size with M = 1000*1000:           0 MBytes
        cache/buffer size  = unknown
Capabilities:
        IORDY not likely
        Cannot perform double-word IO
        R/W multiple sector transfer: not supported
        DMA: not supported
        PIO: pio0

#

$ hdparm -I /dev/sdb

/dev/sdb:

ATA device, with non-removable media
        Model Number:       TOSHIBA-TR200
        Serial Number:      49QB725OKBSN
        Firmware Revision:  SBFA15.2
        Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
        Supported: 11 10 9 8 7 6 5
        Likely used: 11
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:   937703088
        Logical  Sector size:                   512 bytes
        Physical Sector size:                   512 bytes
        Logical Sector-0 offset:                  0 bytes
        device size with M = 1024*1024:      457862 MBytes
        device size with M = 1000*1000:      480103 MBytes (480 GB)
        cache/buffer size  = unknown
        Form Factor: 2.5 inch
        Nominal Media Rotation Rate: Solid State Device
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec&#039;d by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        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
                SET_MAX security extension
           *    48-bit Address feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    General Purpose Logging feature set
           *    WRITE_{DMA|MULTIPLE}_FUA_EXT
           *    64-bit World wide name
           *    {READ,WRITE}_DMA_EXT_GPL commands
           *    Segmented DOWNLOAD_MICROCODE
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
           *    Gen3 signaling speed (6.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Phy event counters
           *    READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
                DMA Setup Auto-Activate optimization
                Device-initiated interface power management
           *    Software settings preservation
                Device Sleep (DEVSLP)
           *    DOWNLOAD MICROCODE DMA command
           *    SET MAX SETPASSWORD/UNLOCK DMA commands
           *    WRITE BUFFER DMA command
           *    READ BUFFER DMA command
           *    Data Set Management TRIM supported (limit 8 blocks)
Security:
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
        20min for SECURITY ERASE UNIT. 60min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 58ce38ec0124245e
        NAA             : 5
        IEEE OUI        : 8ce38e
        Unique ID       : c0124245e
Device Sleep:
        DEVSLP Exit Timeout (DETO): 100 ms (drive)
        Minimum DEVSLP Assertion Time (MDAT): 10 ms (drive)
Checksum: correct</code></pre></div><p>#</p><p>When I run the command now I only get the last sort of output.</p><p>It says that there is a password now, but if I try to unlock the SSD the following happens:</p><div class="codebox"><pre><code>$ hdparm --user-master u --security-unlock sec123abc /dev/sdb
security_password: &quot;sec123abc&quot;

/dev/sdb:
 Issuing SECURITY_UNLOCK command, password=&quot;sec123abc&quot;, user=user
The running kernel lacks CONFIG_IDE_TASK_IOCTL support for this device.
SECURITY_UNLOCK: Invalid argument</code></pre></div><p>#</p><p>I tried to disable it again (I know that I have to unlock it first but everything before works strange, so I just give it a try):</p><div class="codebox"><pre><code>$ hdparm --user-master u --security-disable sec123abc /dev/sdb
security_password: &quot;sec123abc&quot;

/dev/sdb:
 Issuing SECURITY_DISABLE command, password=&quot;sec123abc&quot;, user=user
The running kernel lacks CONFIG_IDE_TASK_IOCTL support for this device.
SECURITY_UNLOCK: Invalid argument</code></pre></div><p>So something seems to be wrong with the kernel?<br />My Kernel is linux-image-5.2.13-gnu (it is linux-libre), I did not modify it or something like that.</p><p>#</p><p>Then I red here:<br /><a href="https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase" rel="nofollow">https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase</a><br />that using a USB-Interface makes problems... (to late badly)</p><p>#</p><p>So I put the SSD into a SATA drive of another computer with devuan live minimal running, install hdparm and try to unlock and disable, what gives me the same output like this guy here got:<br /><a href="https://www.overclockers.com/forums/archive/index.php/t-693716.html" rel="nofollow">https://www.overclockers.com/forums/arc … 93716.html</a><br />On the live system runs the default devuan kernel.</p><p>Further he solved his problem by using a master password to unlock his SSD.<br />There are (unofficial) lists on the web with them. here is one of them:<br /><a href="https://ipv5.wordpress.com/2008/04/14/list-of-hard-disk-ata-master-passwords/" rel="nofollow">https://ipv5.wordpress.com/2008/04/14/l … passwords/</a><br />I have a Toshiba device here and figured out that &quot;the&quot; masterpassword (it is the only one I have found in several lists) is 32 spaces, but that did not work:</p><div class="codebox"><pre><code>$ hdparm --user-master m --security-set-pass                                  /dev/sdb
missing PASSWD</code></pre></div><p>I tried 34 spaces between &quot;--security-set-pass&quot; and &quot;/dev/sdb&quot;, because you need a space after each option/parameter and 32 spaces (because the first logical did not work and I am frustrated...).</p><p>#</p><p>I did not run the erase command and I do not will!</p><p>It would be nice if anyone could help me out....</p>]]></description>
			<author><![CDATA[dummy@example.com (nogeek)]]></author>
			<pubDate>Wed, 11 Sep 2019 01:05:27 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=17803#p17803</guid>
		</item>
	</channel>
</rss>
