View Single Post
Old 06-03-2020, 03:20 PM   #7
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Quote:
Originally Posted by NiLuJe View Post
I'm still not quite sure what's triggering the issue in the first place (but I figure Nickel is sometimes a bit hasty with how it unmounts the partition)
well it still uses the umount -l (lazy umount) in the /etc/local/Kobo/udev scripts. lazy umount only makes the filesystem invisible. it does not umount anything at all, as long as the filesystem is still in use. thus you export mounted filesystems and the result is corruption.

and the kobo device never reports any error so no one knows that there is a problem or what triggers it or how to fix it

remove the -l option and the script would run into "filesystem is busy" errors instead. e.g. it used to happen when connecting to usb from inside the kepub reader or at least that was the case years ago when I wrote UsbDebug to try and track down the culprits (outdated by now)

remove the -l and add a few loops of retry umount and it'll still work as long as the filesystem would unbusy itself eventually

but if something blocks the filesystem permanent, with this fix you'd lose usb connectivity altogether, and end up locked out if you don't have another channel like telnet/ftp to access the device

maybe if it fails to umount five times, it should umount -l then display a warning message on the screen just to notify that there was a problem ...
frostschutz is offline   Reply With Quote