On Thu, 26 Aug 2021 10:56:47 -0700
Samuel Sieb <samuel(a)sieb.net> wrote:
On 2021-08-26 10:34 a.m., Roberto Ragusa wrote:
> On 8/26/21 2:57 PM, Geoffrey Leach wrote:
>> On Thu, 26 Aug 2021 09:11:34 +0200
>> Roberto Ragusa <mail(a)robertoragusa.it> wrote:
>>
>>> On 8/26/21 7:01 AM, Geoffrey Leach wrote:
>>>> On Wed, 25 Aug 2021 21:26:19 -0700
>>>
>>>>> You could add a "sync" after the copy and before the
"umount".
>>>>
>>>> Just what I needed. Thanks.
>>>
>>> Absolutely not.
>>> If umount is failing to do a complete flushing by itself it is a
>>> serious (press-release level) bug and must be investigated.
>>>
>>> Which filesystem are you using?
>>
>> ext4 -> vfat
>
> The destination is the importat part: vfat.
> Are you sure the umount is successful?
> Maybe umount fails immediately because of something else locking
> the disk (e.g. a cd into the mounted path is enough to make umount
> fail), the script finishes and you remove the disk assuming it has
> been unmounted but it has not been.
Are there any messages from the umount command? If you run "mount",
is the drive still mounted?
No messages, but findmnt confirms that the device is still mounted,
whereupon umount finished clean.