
In order to preserve our main filesystem from any possible damage after running this experiment, we're going to create a small filesystem inside a normal file for test purposes.Ĭreate a zero-filled file called test with a size of 10 megabytes: dd if=/dev/zero of=~/test bs=10M count=1Ĭreate an Ext4 filesystem inside the file, as if it were a partition: mkfs.ext4 ~/test Achieving the conversion Creating a test filesystem
