Answer the question
In order to leave comments, you need to log in
Low-level disk formatting in Linux?
Hello everybody! For low-level formatting, there is a program on WIndows HDD Lewel Format Tool.
I read online that on Linux you can use the command dd if=/dev/zero of=/dev/sdX for low-level formatting .
There is also a command dd if=/dev/null of=/dev/sdX .
The fact is that I want to prepare the disc for sale + there are software bad blocks on it.
Using low-level formatting, you can erase all data and even fix some bad blocks.
I didn't understand what's the difference between zero and null?
Answer the question
In order to leave comments, you need to log in
Low-level formatting - this requires utilities from the manufacturer, each has its own.
An ssd drive can be 'formatted' by running the trim command on the whole drive (blkdiscard utility)
The second command is wrong, /dev/zero returns infinite zeros, and /dev/null cannot be read, only write anything to it endlessly
To prepare the drive for sale, dd if=/dev/zero of=/dev/sdX. more than enough.
You can’t do anything with bads, they will be visible in smart reports (and even before they appear), such a disk is only for a landfill / spare parts for repairmen (sell on Avito, they can buy as a donor by attaching a SMART screen).
I didn't understand what's the difference between zero and null?
Low-level disk formatting in Linux?It is made exclusively at the factory; it is impossible to make it at home without buying specialized equipment.
I read on the internet that on Linux you can use the dd if=/dev/zero of=/dev/sdX command for low-level formatting.And I read a three-letter word on the fence.
The fact is that I want to prepare the disc for sale + there are software bad blocks on it.Software bad blocks are blocks marked by the operating system.
I didn't understand what's the difference between zero and null?Zero is zero, null is nothing.
Bad blocks can't be fixed like this! You can fix it with the disk manufacturer's utilities, but it's better not to do it at all.
You need to write down zero - these are zeros, and null - emptiness, will not write anything.
it's not low-level formatting, it's filling the disk with zeros.
there is no difference between /dev/null and /dev/zero.
both streams when reading give an unlimited stream of zeros.
Yes, and when recording, they behave identically - everything recorded is deleted.
Both have nothing to do with low-level formatting
. Troubles cannot be fixed; the disk itself must be relocated to spare places
. And it’s enough to do a full long format in Windows (uncheck the quick one) and that’s enough before selling
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question