Hardware PATA Disk Locking?

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,194
Trophies
3
Website
trastindustries.com
XP
26,919
Country
United Kingdom
Most around here meet it when fiddling with softmods on original xboxes, stuff like http://www.xbox-scene.com/articles/lock-hdd.php . If the drive (hence the lists of them which work) and motherboard controller (most USB ones apparently do not hence guides there saying you need a motherboard) supports it then you can tell it to lock itself.

You probably will not find much looking for IDE or ata or atapi or pata locking, go higher level and find IDE commands and work on from there.
https://www.pjrc.com/tech/8051/ide/wesley.html#idecommands is a good start, though it does not include much on locking. http://wiki.osdev.org/PCI_IDE_Controller#Commands is also nice. http://www.retroleum.co.uk/electronics-articles/an-8-bit-ide-interface/ is good for a basic overview.
http://www.t13.org/documents/uploadeddocuments/docs2006/d1699r3f-ata8-acs.pdf has a load of info but might well have been the high level stuff you spoke of.

It all stems from "trusted computing", though technically that is a slight aside from the security features or a superset of it, which is both fancy DRM and theoretically something a bit more special. In hard drives not much of it aims for either fault tolerance or high availability or encryption really though which means we are back to fancy DRM and ensuring little in the way of user serviceability.
https://www.trustedcomputinggroup.org/wp-content/uploads/TCG_SWG_SIIF_1_0-1.pdf is still pretty high level but does cover ATA (also SCSI and some SAS stuff, not to mention a bit on SATA as well so be careful if clicking around).

ANSI INCITS 452-2008 is referenced above and though it is of the same line as the PDFs linked I will link another version
http://www.t13.org/documents/uploadeddocuments/docs2008/d1699r6a-ata8-acs.pdf
Page 49 (internal page numbering, not PDF which would be 93 if you are going by that) has good stuff and the tables after that cover more.

If you mean how does it physically work then most halfway modern drives have a massive controller attached to the spinning rust so as to allow OS devs, hardware makers and whatnot to not have to worry about constantly checking, accounting for sector remapping and all that jazz. Said controller is often a fairly full computer when all is said and done (even SD cards have RAM and a processor these days) and they figured the security types would want something as well. To that end the modes you found (unlocked, locked and frozen, or if you prefer the numbered states that can result from various combinations of those and password limits and power state) will all do different things with different commands. With the controller being the gatekeeper for it all then no controller on your side, no play.
 

gudenau

Largely ignored
OP
Member
Joined
Jul 7, 2010
Messages
3,848
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
4,414
Country
United States
Most around here meet it when fiddling with softmods on original xboxes, stuff like http://www.xbox-scene.com/articles/lock-hdd.php . If the drive (hence the lists of them which work) and motherboard controller (most USB ones apparently do not hence guides there saying you need a motherboard) supports it then you can tell it to lock itself.

You probably will not find much looking for IDE or ata or atapi or pata locking, go higher level and find IDE commands and work on from there.
https://www.pjrc.com/tech/8051/ide/wesley.html#idecommands is a good start, though it does not include much on locking. http://wiki.osdev.org/PCI_IDE_Controller#Commands is also nice. http://www.retroleum.co.uk/electronics-articles/an-8-bit-ide-interface/ is good for a basic overview.
http://www.t13.org/documents/uploadeddocuments/docs2006/d1699r3f-ata8-acs.pdf has a load of info but might well have been the high level stuff you spoke of.

It all stems from "trusted computing", though technically that is a slight aside from the security features or a superset of it, which is both fancy DRM and theoretically something a bit more special. In hard drives not much of it aims for either fault tolerance or high availability or encryption really though which means we are back to fancy DRM and ensuring little in the way of user serviceability.
https://www.trustedcomputinggroup.org/wp-content/uploads/TCG_SWG_SIIF_1_0-1.pdf is still pretty high level but does cover ATA (also SCSI and some SAS stuff, not to mention a bit on SATA as well so be careful if clicking around).

ANSI INCITS 452-2008 is referenced above and though it is of the same line as the PDFs linked I will link another version
http://www.t13.org/documents/uploadeddocuments/docs2008/d1699r6a-ata8-acs.pdf
Page 49 (internal page numbering, not PDF which would be 93 if you are going by that) has good stuff and the tables after that cover more.

If you mean how does it physically work then most halfway modern drives have a massive controller attached to the spinning rust so as to allow OS devs, hardware makers and whatnot to not have to worry about constantly checking, accounting for sector remapping and all that jazz. Said controller is often a fairly full computer when all is said and done (even SD cards have RAM and a processor these days) and they figured the security types would want something as well. To that end the modes you found (unlocked, locked and frozen, or if you prefer the numbered states that can result from various combinations of those and password limits and power state) will all do different things with different commands. With the controller being the gatekeeper for it all then no controller on your side, no play.

Been looking into the XBox stuff, but this is more of a PC question as I am lookinginto making a USB adapter that could work. Thanks, I'll look at thise docs!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Veho @ Veho:
    kensmum
    and my phat pipe: https://i.imgur.com/QpKtuiG.jpg
    +1
  • K3N1 @ K3N1:
    Pipe needs to be phatter tbh
  • Psionic Roshambo @ Psionic Roshambo:
    LOL Veho she can chew the back off my log while I lay pipe!
  • K3N1 @ K3N1:
    Here we go
  • Veho @ Veho:
    It has been [0] days since the last mass shooting.
  • K3N1 @ K3N1:
    Biden apologizes again.
  • K3N1 @ K3N1:
    My old work place had something like that there had been 60 days since the last injury and management would throw a pizza party if it made it to 120
  • Veho @ Veho:
    Did that ever happen?
  • K3N1 @ K3N1:
    About once a year
  • Sonic Angel Knight @ Sonic Angel Knight:
    K3N1 Gonna eat taco for dinner :P
  • Halbour @ Halbour:
    how
    the hell can i post images without imgur in the status here...?
  • K3N1 @ K3N1:
    The 3 dots by the smiley face
  • Halbour @ Halbour:
    in the "recent status updates"... not h
    ere
  • Halbour @ Halbour:
    by previously saing "here" i meant this site
  • Veho @ Veho:
    Don't just post the link, don't post a link to a webp file, don't post an embed link, get the image URL and embed it using the IMG tags.
  • Veho @ Veho:
    There, I fixed it for you.
  • Halbour @ Halbour:
    .... how do i do that...???
  • Veho @ Veho:
    Well either take the image URL, ending in .jpg or .png or an image file format, and use the "insert image" button and paste the image link there, or just copy and paste the picture into the status field and it will upload as an attachment and show up in your post.
  • Halbour @ Halbour:
    oh, i think i get it... thx
  • Priceiscool @ Priceiscool:
    So any thoughts on eshops closing?
  • K3N1 @ K3N1:
    20230327-165426.jpg
    pickle ranch
    K3N1 @ K3N1: https://abc7ny.com/tsa-peanut-butter-liquid-carry/13004716/