I haven't disassembled OSDSYS yet, so I don't know whether the bootup sequence is similar to a normal PS2's... but so far:
1. If PATAD is the ATA HDD support module, it is just a normal retail ATAD module that comes with games (Has the "SCE Genuine HDD" check).
2. If HDDLOAD loads the PSX's UI from the HDD, it probably uses rom0

ATAD.
2. If the above is all true... the encryption of the data on the HDD might be done by the HDD itself.
Does anyone here know what will really happen if a SCPH-20401 HDD unit is locked and accessed without unlocking? Mine was always damaged, so maybe what I've experienced isn't what would have actually happened.
When I locked mine:
1. Homebrew software like uLaunchELF always couldn't access the disk because of buggy code in it's ATAD module.
2. My PC seems to screw up because the HDD reports that it's locked, but doesn't support the standard ATA security command set (It's reported too, but it seems that a lot of PC stuff don't detect this properly).
3. The Sony software screws up too, and reports that my HDD unit is not connected/powered (When the password is wrong, as it belonged to a different console).
But I didn't attempt to dump the disk with my PS2... so I don't know if the data is scrambled by the HDD when it's locked.