On Sun, 10 Mar 2019, Pascal Hambourg wrote:
Le 10/03/2019 à 17:01, Pierre Frenkiel a écrit :
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
You should not format (and more generally write directly to) a block device
which contains a mounted filesystem.
not only should not, but you can't ...
as I said previously, the flash drive was not actually mounted
(mtab not updated)