Issuing SECURITY_SET_PASS command, password="Pass", user=user, mode=high sudo hdparm -user-master u -security-set-pass Pass /dev/sdd Now we proceed to set a security password so that we can perform the secure erase. This drive is frozen and need to be unfrozen in order to continue After trying everything from putting the drive to sleep via Disks unplugging and replugging the data cable I ws finally successful in getting the drive into a not frozen state by unplugging the power to it, waiting for it to spin down and plugging the power back into the drive resulting in : Security: Logical Unit WWN Device Identifier: 50024e92033cfe47 If I haven't managed to convince you to use the easier solution above continue from here.ġst insure the drive isn't frozen and secure erase is supported:Įxample from a Samsung HD103SJ I found on my shelf: $ sudo hdparm -I /dev/sdd | grep -A9 Security:ġ50min for SECURITY ERASE UNIT. Be aware that depending on circumstances (buggy kernel, firmware, or BIOS or using a USB interface) it appears that it's possible to brick the device at least temporarily by locking your self out of it. This will erase all data on the selected device. Sources: Experience and ( article).Īnother method of wiping a whole drive consists of using the ATA Secure Erase feature implemented on many newer drives. Sudo dc3dd wipe=/dev/sdX tpat=iloveubuntu which will overwrite the drive using the text string iloveubuntu. You can also use a text pattern to overwrite such as Sudo dc3dd wipe=/dev/sdX which will overwrite the entire drive with zeros.Ī more secure approach might be to overwrite using a pattern such as sudo dc3dd wipe=/dev/sdX pat=FFEEDD which will overwrite the drive using a hexadecimal pattern (in this case FFEEDD) You can find the correct drive using the output of sudo fdisk -l.Īfter determining that the drive is /dev/sdX or whatever you can issue the command You'll want to determine exactly what drive you are trying to wipe (this is especially important in a multi-drive system). If you don't have it you can install it from the universe repository on a terminal with sudo apt-get install dc3dd. If you're on a single drive system attempting to wipe the root drive you should boot from a live media as mentioned by preferred method for wiping a drive uses dc3dd. Proper Method for UEFI devices if you have private dataĪs says, download DBAN (Darik's Boot And Nuke), burn the ISO to a disc / USB and tell it to erase the diskĪfter performing this, all data is irreversibly gone! Please note that after this, most of your data can still be recovered easily using professional tools. Then delete all the partitions and click apply. I am typing this from a UEFI laptop which can also be bricked by the command.īoot an Ubuntu Live USB / CD and open GParted. So don't try what the other answers talking about rm -rf / say since it only works on legacy BIOS machines. Here is what happened to one Linux user : An Ubuntu command bricked my system? When running the command on a UEFI computer (2012 or newer) you are deleting all the UEFI firmware variables which can cause your PC to be bricked and cannot be repaired without a motherboard replacement on some devices. Update-alternatives: using /usr/bin/gnome-terminal.DO NOT RUN sudo rm -rf / -no-preserve-root on systems with systemd Press to keep the current choice, or type selection number: 1 In my case, I want to use the GNOME terminal instead of the one from Regolith desktop. Press to keep the current choice, or type selection number:Īll you have to do is to enter the selection number. There are 2 choices for the alternative x-terminal-emulator (providing /usr/bin/x-terminal-emulator).Ġ /usr/bin/gnome-terminal.wrapper 40 auto modeġ /usr/bin/gnome-terminal.wrapper 40 manual mode sudo update-alternatives -config x-terminal-emulator The current default terminal is marked with the asterisk. It will show all the terminal emulators present on your system that can be used as default. To do that, run the following command: sudo update-alternatives -config x-terminal-emulator You can use it to change the default command line text editor, terminal and more. On Debian-based distributions, there is a handy command line utility called update-alternatives that allows you to handle the default applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |