On 3/3/2024 8:38 AM, Joerg Walther wrote:
When copying larger files to any USB drive on a Thinkpad T480 with
Ubuntu 22.04 it quite often happens that the OS completely freezes and
the PC has to be restarted by switching it off and on again.
This seems to be an old problem, I found this bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1208993?comments=all which starts with 13.04, but the last comments are about 22.04. Are
there any ideas how I can fix this? Has this been fixed in 23.10 or will
it be fixed in 24.04?
Thanks for any input on this.
-jw-
There are potentially lots of levels of write caching to disable.
Will require more research.
The hdparm thing, might only be useful for some benchmarking activity,
rather than general disk usage.
https://stackoverflow.com/questions/20215516/disabling-disk-cache-in-linux
Maybe something like down the end of this thread.
https://unix.stackexchange.com/questions/637598/how-to-truly-disable-the-write-cache-functionin-dmesg-in-ubuntu-for-an-externa
"edit your /etc/fstab ... mount option sync"
Normally, a memory based cache for write, does not occupy so much space,
that it causes swapping to disk. That would be bad. As if we're forced
to write synchronously to flush the write cache, and at the same time
we need to swap for some reason... will that even work ?
Paul
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)