On Sun, 10 Mar 2019, Reco wrote:
Hi. On Sun, Mar 10, 2019 at 05:01:34PM +0100, Pierre Frenkiel wrote:hi, I'm trying to format a new USB flash drive and I get this: ==> mount | grep sdh ==> mkfs.vfat /dev/sdh1 mkfs.fat 4.1 (2017-01-24) mkfs.vfat: /dev/sdh1 contains a mounted filesystem. ==> mkfs /dev/sdh1 works any explanation?/sbin/mkfs calls a different binary, /sbin/mkfs.ext2. Different utility does different checks.
of course, but how do you explain that one of them think that it is mounted? As /dev/sdh1 was in /etc/mtab, it seems that mkfs.vfat uses mtab, and not mkfs.ext2! rather strange,isn't it?