this post was submitted on 28 Jun 2023
12 points (87.5% liked)

Linux

48152 readers
838 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I am zeroing out some old drive - some may not have secure erase. If I issue the command:

hpparm --security-erase-enhanced

Against a drive that does not have this feature, will it error? Man does not tell me.

top 4 comments
sorted by: hot top controversial new old
[–] Fryboyter@discuss.tchncs.de 5 points 1 year ago* (last edited 1 year ago) (1 children)

With the command hdparm -I /dev/sdX you can check if ATA Secure Erase is supported by the respective hard disk. If the output shows among others things supported: enhanced erase this is the case. Instead of sdX you must of course specify the respective hard disk.

Edit: You should run this command anyway to make sure that the hard disk in question is not frozen (https://archive.kernel.org/oldwiki/ata.wiki.kernel.org/index.php/ATA_Secure_Erase.html#Step_1a_-_Ensure_the_drive_is_not_frozen:).

[–] waspentalive@lemmy.one 2 points 1 year ago

Ok My drive does not have the feature - and took the hdparm --security-erase-enhanced without any error. I guess I will use dd then.

[–] dlarge6510@lemm.ee 3 points 1 year ago (1 children)
[–] waspentalive@lemmy.one 1 points 1 year ago* (last edited 1 year ago)

Not in my case.

After I posted :
I ran hdparm --security... and did not get an error.

Then I ran hpparm -I and found that the drive did not have the secure erase feature.

So I did not get the error on a drive that should have errored. I am guessing the Security Erase command just spews the appropriate command at the drive and nothing Is reported back.

load more comments
view more: next ›