I would like to know if there is any command in Linux (Ubuntu, Linux Mint, etc) that is equivalent to the Windows full format option.
I would like to know if there is any command in Linux (Ubuntu, Linux Mint, etc) that is equivalent to the Windows full format option.
Linux has various terminal tools such as fdisk, parted. GParted is a graphical interface for parted.
Type fdisk /dev/sdx (replacing x with your drive letter) Type d to proceed to delete a partition. Type 1 to select the 1st partition and press enter.
By "fully format" a partition, are you trying to write over the data? Eg a 'secure erase?' Gparted and other formatting utilities wont overwrite the data. They just define the filesystem. The bit representation of the data is still retained until its needed and then overwritten by the OS/filesystem. I'm guessing you want to write zero's across the entire disk, and then create the filesystem?
To overwrite a drive or partition:
Replace
/dev/sda
with the drive you want to wipe.sda
is generally the first drive on the system. A USB or other external device will start fromsdb
onward. Thelet count
command is taking the size of the disk and dividing it by the physical sectors and creating a variable namedcount
. The count and block variables are then used to start from point zero and write 0's until the end of the disk.dd
reads 0's from/dev/zero
and outputs them to/dev/sda
.