Advertisement
Guest User

SATA lock

a guest
May 31st, 2021
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.49 KB | None | 0 0
  1. ubuntu@ubuntu:~$ sudo hdparm -I /dev/sda
  2.  
  3. /dev/sda:
  4.  
  5. ATA device, with non-removable media
  6. Model Number: Samsung SSD 870 QVO 1TB
  7. Serial Number: S5___1F
  8. Firmware Revision: SVQ01B6Q
  9. Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
  10. Standards:
  11. Used: unknown (minor revision code 0x005e)
  12. Supported: 11 8 7 6 5
  13. Likely used: 11
  14. Configuration:
  15. Logical max current
  16. cylinders 16383 16383
  17. heads 16 16
  18. sectors/track 63 63
  19. --
  20. CHS current addressable sectors: 16514064
  21. LBA user addressable sectors: 268435455
  22. LBA48 user addressable sectors: 1953525168
  23. Logical Sector size: 512 bytes
  24. Physical Sector size: 512 bytes
  25. Logical Sector-0 offset: 0 bytes
  26. device size with M = 1024*1024: 953869 MBytes
  27. device size with M = 1000*1000: 1000204 MBytes (1000 GB)
  28. cache/buffer size = unknown
  29. Form Factor: 2.5 inch
  30. Nominal Media Rotation Rate: Solid State Device
  31. Capabilities:
  32. LBA, IORDY(can be disabled)
  33. Queue depth: 32
  34. Standby timer values: spec'd by Standard, no device specific minimum
  35. R/W multiple sector transfer: Max = 1 Current = 1
  36. DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
  37. Cycle time: min=120ns recommended=120ns
  38. PIO: pio0 pio1 pio2 pio3 pio4
  39. Cycle time: no flow control=120ns IORDY flow control=120ns
  40. Commands/features:
  41. Enabled Supported:
  42. * SMART feature set
  43. * Security Mode feature set
  44. * Power Management feature set
  45. * Write cache
  46. * Look-ahead
  47. * Host Protected Area feature set
  48. * WRITE_BUFFER command
  49. * READ_BUFFER command
  50. * NOP cmd
  51. * DOWNLOAD_MICROCODE
  52. SET_MAX security extension
  53. * 48-bit Address feature set
  54. * Device Configuration Overlay feature set
  55. * Mandatory FLUSH_CACHE
  56. * FLUSH_CACHE_EXT
  57. * SMART error logging
  58. * SMART self-test
  59. * General Purpose Logging feature set
  60. * WRITE_{DMA|MULTIPLE}_FUA_EXT
  61. * 64-bit World wide name
  62. Write-Read-Verify feature set
  63. * WRITE_UNCORRECTABLE_EXT command
  64. * {READ,WRITE}_DMA_EXT_GPL commands
  65. * Segmented DOWNLOAD_MICROCODE
  66. * Gen1 signaling speed (1.5Gb/s)
  67. * Gen2 signaling speed (3.0Gb/s)
  68. * Gen3 signaling speed (6.0Gb/s)
  69. * Native Command Queueing (NCQ)
  70. * Phy event counters
  71. * READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
  72. * DMA Setup Auto-Activate optimization
  73. Device-initiated interface power management
  74. * Asynchronous notification (eg. media change)
  75. * Software settings preservation
  76. Device Sleep (DEVSLP)
  77. unknown 78[10]
  78. * SMART Command Transport (SCT) feature set
  79. * SCT Write Same (AC2)
  80. * SCT Error Recovery Control (AC3)
  81. * SCT Features Control (AC4)
  82. * SCT Data Tables (AC5)
  83. * reserved 69[4]
  84. * DOWNLOAD MICROCODE DMA command
  85. * SET MAX SETPASSWORD/UNLOCK DMA commands
  86. * WRITE BUFFER DMA command
  87. * READ BUFFER DMA command
  88. * Data Set Management TRIM supported (limit 8 blocks)
  89. * Deterministic read ZEROs after TRIM
  90. Security:
  91. Master password revision code = 59304
  92. supported
  93. enabled
  94. locked
  95. not frozen
  96. not expired: security count
  97. supported: enhanced erase
  98. Security level maximum
  99. 4min for SECURITY ERASE UNIT. 8min for ENHANCED SECURITY ERASE UNIT.
  100. Logical Unit WWN Device Identifier: 5002___278e
  101. NAA : 5
  102. IEEE OUI : 002538
  103. Unique ID : f7070278e
  104. Device Sleep:
  105. DEVSLP Exit Timeout (DETO): 50 ms (drive)
  106. Minimum DEVSLP Assertion Time (MDAT): 30 ms (drive)
  107. Checksum: correct
  108.  
  109. ubuntu@ubuntu:~$ sudo hdparm --user-master m --security-unlock tttttttttttttttttttttttttttttttt /dev/sda
  110. security_password: "tttttttttttttttttttttttttttttttt"
  111.  
  112. /dev/sda:
  113. Issuing SECURITY_UNLOCK command, password="tttttttttttttttttttttttttttttttt", user=master
  114. SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 04 51 40 00 21 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  115.  
  116. ubuntu@ubuntu:~$ sudo hdparm --user-master m --security-disable tttttttttttttttttttttttttttttttt /dev/sda
  117. security_password: "tttttttttttttttttttttttttttttttt"
  118.  
  119. /dev/sda:
  120. Issuing SECURITY_DISABLE command, password="tttttttttttttttttttttttttttttttt", user=master
  121. SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 04 51 40 00 21 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  122. SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 04 51 40 00 21 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement