Jump to Navigation

288 - How to break a file system

When you are testing on the recovery and so on, sometimes you may want to break a file system on purpose.

dd if=/dev/zero of=/dev/your_partition bs=512 count=512

Before the above command, make sure whether you can or not.

/dev/zero is an endless source of zeros. It's there to provide a simple raw, data stream of unvarying content.
/dev/null is a black hole. Anything sent into it just disappears. It's the programmers trash can.

So /dev/zero is meant as a source of (empty) data, and /dev/null is meant as a destination for (unwanted) data.

 

 

Linux:


Main menu 2

Story | by Dr. Radut