Before we run this
mkfs command to create a filesystem on a device, for example
how to know if some data already exist on this device?:
mkfs.ext4 -j -m 0 /dev/sde -F
I performed the
/dev/sde, but did not get any warning about data that exist(-ed) on this drive, therefore all data got lost.
How to avoid this in the future?
# mkfs.ext4 -j -m 0 /dev/sde -F mke2fs 1.42.9 (28-Dec-2013) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 1310720 inodes, 5242880 blocks 0 blocks (0.00%) reserved for the super user First data block=0 Maximum filesystem blocks=2153775104 160 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000 Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done