On Sun, Jun 20, 2021 at 11:09 AM Ottavio Caruso <ottavio2006-usenet2...@yahoo.com> wrote: > > I have a removable mp3 player that gets auto-magically mounted as: > > $ mount |grep sdb > /dev/sdb1 on /media/oc/PHILIPS type vfat > (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 > > > Every time I plug it in, I get this message in dmesg: > > > [47212.945001] FAT-fs (sdb1): Volume was not properly unmounted. Some > data may be corrupt. Please run fsck. > > Whatever way I umount this drive (either manually via terminal or > right-clicking the icon on the desktop), I get the above message when I > re-mount it. > > Is there a way to tell Debian to perform a "fsck -y" > on the drive before mounting it? For example, an entry in /etc/fstab or > some trickery somewhere in systemd?
This should be a one-time thing, so if you unmount it from the terminal and run fsck, it should work next time. I don't think running fsck automatically is a good idea when you don't have a way to check the output...