Monday, July 28, 2014

How to un freeze drive in Linux?

I run



sudo hdparm -I /dev/sda



results:



Security:


Master password revision code = [redacted just in case it's sensitive data]


supported


not enabled


not locked


frozen


not expired: security count


supported: enhanced erase



My objective is to perform an enhanced secure erase (how? I'll find that out after I know how to unfreeze my drive) and also to detect and remove a Device Configuration Overlay. Relevant thread: Error when running 'hdparm --dco-identify' in Linux


I am trying to figure out why --dco-identify is failing and I suspect it may be as a result of the drive being "frozen". I recall this being a problem a year back when I was trying to securely erase an SSD. I gave up but suspected that connecting it via USB or hotswapping it might fix it.


Why? Refer to:
https://ubuntuforums.org/showthread.php?t=1982585


So in the context of this post, I am trying to unfreeze my drive. How can I do this while it's connected via SATA?




Update:
I tried this with an external HDD and ran



sudo hdparm -I /dev/sda



The drive is not frozen. Fascinating.


I ran:



sudo hdparm --dco-identify /dev/sdc



The command executed successfully!!


So that's confirmed but still does not answer my question about whether this can be achieved with an internal drive

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...