Here is the log file from what I did in Parted Magic plus some additional comments from me. I was actually trying to run hdparm secure erase on an SSD, it wasn’t accepting the hdparm commands at all so i tested the commands on my WD Drive in the same SATA bay. Unfortunately the WD drive was loaded with the same drive path as the SSD I had just removed i.e. /dev/sde … This illustrates the danger of using a keyboard where the up arrow is just below the return key and you are working at 4:00 a.m. in the morning. Hope you all have a good laugh.
Parted Magic Log.
=============
root@partedmagic:~# echo I now insert my WD 1TB Backup Drive and check what the hdparm commands do with it
I now insert my WD 1TB Backup Drive and check what the hdparm commands do with it
root@partedmagic:~# echo I see the WD Drive in the Device-Storage-System Information Window
I see the WD Drive in the Device-Storage-System Information Window
root@partedmagic:~# lshw -class disk
*-cdrom
description: DVD-RAM writer
product: BD-RW BDR-208M
vendor: PIONEER
physical id: 0.0.0
bus info: scsi@5:0.0.0
logical name: /dev/cdrom
logical name: /dev/dvd
logical name: /dev/sr0
version: 1.10
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=nodisc
*-disk:0
description: SCSI Disk
physical id: 0.0.0
bus info: scsi@10:0.0.0
logical name: /dev/sda
configuration: sectorsize=512
*-disk:1
description: SCSI Disk
physical id: 0.0.1
bus info: scsi@10:0.0.1
logical name: /dev/sdb
configuration: sectorsize=512
*-disk:2
description: SCSI Disk
physical id: 0.0.2
bus info: scsi@10:0.0.2
logical name: /dev/sdc
configuration: sectorsize=512
*-disk:3
description: SCSI Disk
product: MS/MS-Pro
vendor: Generic-
physical id: 0.0.3
bus info: scsi@10:0.0.3
logical name: /dev/sdd
version: 1.03
serial: 3
capabilities: removable
configuration: sectorsize=512
*-medium
physical id: 0
logical name: /dev/sdd
*-disk
description: ATA Disk
product: WDC WD10JPVT-22A
vendor: Western Digital
physical id: 0.0.0
bus info: scsi@7:0.0.0
logical name: /dev/sde
version: 1A01
serial: [Deleted.].
size: 931GiB (1TB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 sectorsize=4096 signature=efcfb187
root@partedmagic:~# echo this time all of the disk information is seen and the disk is mounted properly
this time all of the disk information is seen and the disk is mounted properly
root@partedmagic:~# echo it is mounted on /dev/sde
it is mounted on /dev/sde
Comment - I meant to do this - set a security erase password and see what was returned.
=================================================================
root@partedmagic:~# hdparm --user-master u --security-set-pass PASSWORD /dev/sde
security_password=“PASSWORD”
/dev/sde:
Issuing SECURITY_SET_PASS command, password=“PASSWORD”, user=user, mode=high
Comment - I did not mean to do this … Instead of hitting up arrow once more my finger hit the return key.
===========================================================================
root@partedmagic:~# hdparm --user-master u --security-erase PASSWORD /dev/sde
security_password=“PASSWORD”
/dev/sde:
Issuing SECURITY_ERASE command, password=“PASSWORD”, user=user
Then, I had a power cut!
==================
On rebooting the PC into Parted Magic and trying to issue a secure erase command again I see this:
========================================================================
root@partedmagic:~# hdparm --user-master u --security-set-pass PASSWORD /dev/sde --verbose
security_password=“PASSWORD”
/dev/sde:
Issuing SECURITY_SET_PASS command, password=“PASSWORD”, user=user, mode=high
SECURITY_SET_PASS: Input/output error