Web lists-archives.com

Re: mkfs problem (half resolved)




On Sun, 10 Mar 2019, 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

I said half-resolved, as I found a line with /dev/sdh1 in /etc/mtab.
Removing it solved the problem, but remains the question:
  why /etc/mtab was not updated?

best regards,
--
Pierre Frenkiel