Skip to content

Instantly share code, notes, and snippets.

View blackrose514's full-sized avatar
🌙

B/rose blackrose514

🌙
View GitHub Profile
@blackrose514
blackrose514 / linux-usb-file-copy-fix.md
Last active January 26, 2022 13:32 — forked from 2E0PGS/linux-usb-file-copy-fix.md
Fix Ubuntu and other Linux slow/hanging file copying via USB.

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

To make this change persistant across reboots in Arch linux, create a file at /etc/sysctl.d/99-sysctl.conf and add these 2 lines:

vm.dirty_bytes=50331648