LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Gparted format vs mkfs.XX (https://www.linuxquestions.org/questions/linux-software-2/gparted-format-vs-mkfs-xx-4175564145/)

hack3rcon 01-17-2016 12:34 AM

Gparted format vs mkfs.XX
 
Hello.
Why "Gparted" can formatting a HDD very fast but "mkfs.XXX" command can't? For example, I have an External 1TB HDD and "Gparted" format it less than 5 seconds but "mkfs.ntfs" format it about 2 hours or more.

Tnx.

berndbausch 01-17-2016 12:57 AM

Quote:

Originally Posted by hack3rcon (Post 5479529)
"mkfs.ntfs" format it about 2 hours or more.

mkfs.ntfs has a --fast option. Without it, the disk is zeroed first, which takes ages. I just tried it on a 1TB volume - roughly 5 secs.

hack3rcon 01-17-2016 01:27 PM

Quote:

Originally Posted by berndbausch (Post 5479536)
mkfs.ntfs has a --fast option. Without it, the disk is zeroed first, which takes ages. I just tried it on a 1TB volume - roughly 5 secs.

Thus, It wipe Disk?

berndbausch 01-17-2016 09:32 PM

Quote:

Originally Posted by hack3rcon (Post 5479827)
Thus, It wipe Disk?

It would seem so. Here is what happens on my system:
Code:

$ sudo lvcreate -n test -L 1T vgmain
  Logical volume "test" created.
$ sudo mkfs.ntfs -v /dev/vgmain/test
Cluster size has been automatically set to 4096 bytes.
Initializing device with zeroes:  0%

.... and it stays on 0% for a looooong time. Until I lose patience and kill it.

hack3rcon 01-18-2016 02:57 AM

Quote:

Originally Posted by berndbausch (Post 5480047)
It would seem so. Here is what happens on my system:
Code:

$ sudo lvcreate -n test -L 1T vgmain
  Logical volume "test" created.
$ sudo mkfs.ntfs -v /dev/vgmain/test
Cluster size has been automatically set to 4096 bytes.
Initializing device with zeroes:  0%

.... and it stays on 0% for a looooong time. Until I lose patience and kill it.

Thank you. Thus it is kind of Wipe :)


All times are GMT -5. The time now is 06:08 PM.