You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
651 B
Markdown
26 lines
651 B
Markdown
#
|
|
|
|
# Find drives
|
|
|
|
lsblk
|
|
|
|
The above command can be used to see all drives and partions, as well as where they're mounted.
|
|
|
|
# Nuke
|
|
|
|
To remove all data from a drive and replace it with nothing do
|
|
|
|
dd if=/dev/zero of=/dev/<drive> bs=1M
|
|
|
|
You can append `status=progress` to the end to see how far it's going.
|
|
|
|
This also words on partitions, you just need to make sure it's selected.
|
|
|
|
dd if=/dev/urandom
|
|
|
|
Above is an alternative to replace the data blocks with random data. This is better for when giving the device to another person, but will take longer.
|
|
|
|
# Parition
|
|
|
|
This can be done with a number of utilities, such as `parted` and `fdisk`
|