After some googling , I found the trick to restore and unlock manually with hdparm. I get back to work.
Ho yes, let me explain how to;
gnome-disks when selecting "ATA SECURE ERASE" under "Formatting" tab, will call "udiskd" service daemon for this job. You can see under /var/log/daemon.log (and system.log) this log entry when you start to format hdd with "ATA SECURE ERASE"
Well unfortunatley no logs entry say kind of password used to do it.17/06/18 16:23 M51Se udisksd Commencing ATA enhanced secure erase of /dev/sdb (your hdd model ID). This operation is expected to take at least 96 minutes to complete
Looking logfile is useless? Not really, so when you know the "udisksd" make this job, you can search under source code of udisksd any hardcoded PASSWORD entry! LOL.
Another folks write about this password is hardcoded into udisksd as "xxxx", , I see this when deep digging on google for a solution. But if you get source code of udisksd and search "user password" into its "udiskslinuxdriveata.c" code, then you can see "xxxx". Nice shot!
Now finally if you get stuck on hdd locking by gnome-disks tool because of somethings get bad and udisksd daemon cannot "auto remove" password set on hdd for ATA SECURE ERASE subroutine, you can simply do this hdparm command :
Code: Select all
sudo hdparm --security-disable xxxx /dev/sd? when "sd?" is Your drive to unlock
Well, hope this is useful for some other folks need to get out of this specific trouble, for me is markable SOLVED!