- Posted In
- Red Hat Enterprise Linux
We need to have the mkfs command to be more interactive upon execution. As of today, If a user specifies the device name incorrectly, mkfs would not validates the input given and executes successfully without asking for any prompt to the user.
Our harddisk device name is /dev/sda and assume that we have partitions numbered from 1 to 5.
If we create a new partition named "/dev/sda6" and run "mkfs.ext3 /dev/sda" by mistake, the system would not ask any confirmation from the user and as a result of this my entire system would be compromised.
Therefore, we would like to have the "mkfs" command to asks for a confirmation prompt like "Do you really want to continue? (yes/no)" to the user in order to avoid any human error.
Please let me know the feedback and kindly ignore if we have this option already in our current versions of RHEL.
Thanks and Regards,