Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #236219 > unrolled thread
| Started by | Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> |
|---|---|
| First post | 2021-06-20 11:10 +0200 |
| Last post | 2021-06-20 12:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.user
How can I force "fsck -y" of a removable usb drive before mounting it? Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> - 2021-06-20 11:10 +0200
Re: How can I force "fsck -y" of a removable usb drive before mounting it? Anders Andersson <pipatron@gmail.com> - 2021-06-20 12:40 +0200
| From | Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> |
|---|---|
| Date | 2021-06-20 11:10 +0200 |
| Subject | How can I force "fsck -y" of a removable usb drive before mounting it? |
| Message-ID | <Cs1CN-6bK-1@gated-at.bofh.it> |
Hi, $ uname -a Linux e130 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux $ cat /etc/debian_version 10.2 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? Thanks -- Ottavio Caruso
[toc] | [next] | [standalone]
| From | Anders Andersson <pipatron@gmail.com> |
|---|---|
| Date | 2021-06-20 12:40 +0200 |
| Subject | Re: How can I force "fsck -y" of a removable usb drive before mounting it? |
| Message-ID | <Cs31T-6Tb-5@gated-at.bofh.it> |
| In reply to | #236219 |
On Sun, Jun 20, 2021 at 11:09 AM Ottavio Caruso <ottavio2006-usenet2012@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...
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web