On Thu, 26 Aug 2021 19:34:55 +0200
Roberto Ragusa <mail(a)robertoragusa.it> 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.
Good thought, but no. It's a laptop, and nothing else is happening.