Ubuntu Debian Samsung SSD secure erase with Linux

If you use a Samsung (possible others brands same howto) SSD and you want to secure erase the SSD for reuse or resale (better destroy it!!!) do:

  • Insert your Debian/Ubuntu Setup CD/Stick
  • Boot into Live/Setup Mode
  • open Gnome Terminal or Console and enter $sudo su – #to be root
  • then enter..

$ apt-get update && apt-get install hdparm # get the tool
$ sudo fdisk -l # show drives
$ sudo hdparm -I /dev/sda #show drive Infos and lock for "frozen" state!!! shoud be not frozen/locked
$ sudo hdparm --security-set-pass NULL /dev/sdb # set the "NULL" password to UNLOCK the Controller
$ sudo hdparm --security-erase NULL /dev/sda # run secure erase!

FreeBSD: Clicking noise Harddrive SATA WDC WD5000LPVX SATA 3 Drive on FreeBSD 9.1

FreeBSD: Clicking noise WDC WD5000LPVX SATA 3 Drive on FreeBSD 9.1

same like in Linux:
APM Funktion starts/stops the heads and make click sounds, not needed on a Server. To disable like in Linux with hdparm on FreeBSD do:

If you want to disable APM (Advanced Power Management) on your hard drive to reduce heads movements and increase your hard drive life you can do that very easy by using ataidle app from FreeBSD’s Ports:

cd /usr/ports/sysutils/ataidle
make install clean; rehash

Then to disable APM on your hard drive run:
ataidle -P 0 /dev/ad0

We can start ataidle app at FreeBSD boot time by adding the following lines in /etc/rc.conf (the second line correspond to our previous command that we want to run at boot time):
ataidle_enable="YES"
ataidle_devices="ada0"
ataidle_ada0="-P 0"

Remark: most Server SATA Controllers change HDD Names like from ad6 to ada0, read last lines of „dmesg“ and see, „Drive ada0: Previously was known as ad6“ Message!!!

USB external Harddisk hangs PC (1TB Western Digital Drive WDBAAU0010HBK )

Environment:
Western Digital WDBAAU0010HBK at Linux-PC, if the User use a Linux PC the external
Drive is spin / powered down after some time, cause the Case of WDBAAU0010HBK is made to
save energy.

Bugfix: Send the drive back to reseller! an order Fujitsu Storagebird 1TB

– good big Pluggers (USB A+B , no bad Micro-USB-Pluggers)
– silent
– fast
– cool
– no energy saving mode