Skip to main content
Topic: file copy from USB disk interrupts abruptly or makes system freeze (Read 452 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

file copy from USB disk interrupts abruptly or makes system freeze

Hello. When I copy files from an USB disk to it starts to do then randomly stops, with time remaining that keeps growing, I can manage to cancel but then sometimes the system completely locks up (but can happen while copying too) in a way that I cannot do anything else than reset the PC, no mouse movements or reactions to keyboard.

Doesn't happen when copying using another distro. It happens if I use artix live without my additions too. Tried pcmanfm-qt copy, cp command and the freefilesync application, no difference.

Artix version is lxqt s6 20230814 x64. All disk tried has ntfs file system. I don't know which log to share in this case, freefilesync one says nothing. Could be my system too old and not well supported? Characteristics are: asus m2v motherboard, amd athlon 64 x2 5600+ 2.9 GHz, 4 GB RAM. How can I troubleshoot?

edit: dmesg after the copy freeze occurs:

Code: [Select]
[ 1605.025572] psi: inconsistent task state! task=9263:Fm::JobThread cpu=1 psi_flags=14 clear=a set=0
[ 1640.150813] general protection fault, probably for non-canonical address 0xff8bb877ca52c8de: 0000 [#1] PREEMPT SMP NOPTI
[ 1640.150827] CPU: 1 PID: 9263 Comm: Fm::JobThread Tainted: P           OE      6.8.2-artix1-1 #1 c0e75936d2f7ed30eb7ff447a1ef18fcb8f90e2d
[ 1640.150833] Hardware name: System manufacturer M2V                /M2V, BIOS 2101    02/21/2008
[ 1640.150835] RIP: 0010:do_mpage_readpage+0x4ec/0x5f0
[ 1640.150844] Code: 89 df e8 c7 7c 15 00 49 c7 07 00 00 00 00 e9 d8 fb ff ff 48 89 ee 89 d8 e9 39 fd ff ff 4c 8b 74 24 48 49 8b 46 18 49 8b 4e 28 <48> 8b 00 48 85 c9 74 3a 48 89 c8 31 d2 eb 10 48 8b 40 08 83 c2 01
[ 1640.150847] RSP: 0018:ffffac2a41ae3a68 EFLAGS: 00010202
[ 1640.150851] RAX: ff8bb877ca52c8de RBX: 0000000000000000 RCX: 0000000000000000
[ 1640.150854] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffffd414c1982bc0
[ 1640.150856] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000001000
[ 1640.150858] R10: ffff8bb8660afa68 R11: 0000000000000001 R12: ffffac2a41ae3b10
[ 1640.150860] R13: 0000000000000000 R14: ffffd414c1982bbf R15: ffffac2a41ae3af0
[ 1640.150863] FS:  000079498d6006c0(0000) GS:ffff8bb92bd00000(0000) knlGS:0000000000000000
[ 1640.150865] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1640.150868] CR2: 00007d44ee650010 CR3: 0000000101652000 CR4: 00000000000006f0
[ 1640.150870] Call Trace:
[ 1640.150874]  <TASK>
[ 1640.150878]  ? die_addr+0x36/0x90
[ 1640.150884]  ? exc_general_protection+0x1dd/0x450
[ 1640.150890]  ? asm_exc_general_protection+0x26/0x30
[ 1640.150895]  ? do_mpage_readpage+0x4ec/0x5f0
[ 1640.150899]  ? do_mpage_readpage+0x27a/0x5f0
[ 1640.150903]  mpage_readahead+0x9e/0x120
[ 1640.150908]  ? __pfx_end_buffer_read_sync+0x10/0x10
[ 1640.150914]  ? __pfx_ntfs_get_block+0x10/0x10 [ntfs3 e4b3f005c64a5d6ee62bfcf67faebb65f54d4d2e]
[ 1640.150938]  read_pages+0x85/0x250
[ 1640.150943]  page_cache_ra_unbounded+0x12e/0x180
[ 1640.150947]  filemap_get_pages+0x10f/0x600
[ 1640.150953]  ? terminate_walk+0x61/0x100
[ 1640.150957]  filemap_read+0xe5/0x350
[ 1640.150963]  vfs_read+0x24f/0x380
[ 1640.150968]  ksys_read+0x6f/0xf0
[ 1640.150972]  do_syscall_64+0x89/0x170
[ 1640.150976]  ? do_syscall_64+0x96/0x170
[ 1640.150979]  ? do_syscall_64+0x96/0x170
[ 1640.150982]  entry_SYSCALL_64_after_hwframe+0x6e/0x76
[ 1640.150985] RIP: 0033:0x79499fd196bc
[ 1640.151013] Code: ec 28 48 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 d9 c0 f8 ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 48 89 44 24 08 e8 2f c1 f8 ff 48
[ 1640.151016] RSP: 002b:000079498d5f9fe0 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
[ 1640.151019] RAX: ffffffffffffffda RBX: 000079494c01ace0 RCX: 000079499fd196bc
[ 1640.151021] RDX: 0000000000004000 RSI: 000079498d5fa020 RDI: 0000000000000028
[ 1640.151023] RBP: 000079494c011380 R08: 0000000000000000 R09: 0000000000000007
[ 1640.151025] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000028
[ 1640.151027] R13: 000079494c051700 R14: 0000000000004000 R15: 000079498d5fa020
[ 1640.151031]  </TASK>
[ 1640.151032] Modules linked in: ntfs3 fuse ccm crypto_user qrtr amdgpu amdxcp drm_exec gpu_sched drm_buddy zl10353 cx88_dvb cx88_vp3054_i2c videobuf2_dvb rc_total_media_in_hand_02 dvb_core ir_kbd_i2c ath9k_htc videobuf2_vmalloc xc2028 ath9k_common cx8800 ath9k_hw amd64_edac tuner videobuf2_dma_sg cx8802 radeon snd_hda_codec_hdmi videobuf2_memops snd_ens1371 cx88_alsa snd_hda_intel ath videobuf2_v4l2 snd_intel_dspcfg kvm_amd snd_ac97_codec cx88xx mousedev tveeprom ccp drm_suballoc_helper snd_intel_sdw_acpi gameport mac80211 videodev snd_hda_codec kvm drm_ttm_helper snd_rawmidi ppdev ttm videobuf2_common mc irqbypass snd_hda_core drm_display_helper libarc4 i2c_algo_bit k8temp snd_hwdep snd_seq_device cfg80211 cec ac97_bus snd_pcm pcspkr video psmouse wmi snd_timer i2c_viapro snd soundcore asus_atk0110 atl1 parport_pc mii parport mac_hid bnep bluetooth ecdh_generic rfkill ext4 crc32c_generic crc16 mbcache jbd2 uas usb_storage serio_raw sr_mod atkbd libps2 cdrom vivaldi_fmap ata_generic hid_generic i8042 pata_acpi usbhid
[ 1640.151114]  pata_via floppy serio sata_via
[ 1640.151120] Unloaded tainted modules: nvidia(POE):1
[ 1640.151126] ---[ end trace 0000000000000000 ]---
[ 1640.151129] RIP: 0010:do_mpage_readpage+0x4ec/0x5f0
[ 1640.151133] Code: 89 df e8 c7 7c 15 00 49 c7 07 00 00 00 00 e9 d8 fb ff ff 48 89 ee 89 d8 e9 39 fd ff ff 4c 8b 74 24 48 49 8b 46 18 49 8b 4e 28 <48> 8b 00 48 85 c9 74 3a 48 89 c8 31 d2 eb 10 48 8b 40 08 83 c2 01
[ 1640.151136] RSP: 0018:ffffac2a41ae3a68 EFLAGS: 00010202
[ 1640.151138] RAX: ff8bb877ca52c8de RBX: 0000000000000000 RCX: 0000000000000000
[ 1640.151140] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffffd414c1982bc0
[ 1640.151143] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000001000
[ 1640.151145] R10: ffff8bb8660afa68 R11: 0000000000000001 R12: ffffac2a41ae3b10
[ 1640.151147] R13: 0000000000000000 R14: ffffd414c1982bbf R15: ffffac2a41ae3af0
[ 1640.151149] FS:  000079498d6006c0(0000) GS:ffff8bb92bd00000(0000) knlGS:0000000000000000
[ 1640.151151] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1640.151154] CR2: 00007d44ee650010 CR3: 0000000101652000 CR4: 00000000000006f0
[ 1640.151162] ------------[ cut here ]------------
[ 1640.151164] WARNING: CPU: 1 PID: 9263 at kernel/exit.c:820 do_exit+0x8ff/0xb60
[ 1640.151169] Modules linked in: ntfs3 fuse ccm crypto_user qrtr amdgpu amdxcp drm_exec gpu_sched drm_buddy zl10353 cx88_dvb cx88_vp3054_i2c videobuf2_dvb rc_total_media_in_hand_02 dvb_core ir_kbd_i2c ath9k_htc videobuf2_vmalloc xc2028 ath9k_common cx8800 ath9k_hw amd64_edac tuner videobuf2_dma_sg cx8802 radeon snd_hda_codec_hdmi videobuf2_memops snd_ens1371 cx88_alsa snd_hda_intel ath videobuf2_v4l2 snd_intel_dspcfg kvm_amd snd_ac97_codec cx88xx mousedev tveeprom ccp drm_suballoc_helper snd_intel_sdw_acpi gameport mac80211 videodev snd_hda_codec kvm drm_ttm_helper snd_rawmidi ppdev ttm videobuf2_common mc irqbypass snd_hda_core drm_display_helper libarc4 i2c_algo_bit k8temp snd_hwdep snd_seq_device cfg80211 cec ac97_bus snd_pcm pcspkr video psmouse wmi snd_timer i2c_viapro snd soundcore asus_atk0110 atl1 parport_pc mii parport mac_hid bnep bluetooth ecdh_generic rfkill ext4 crc32c_generic crc16 mbcache jbd2 uas usb_storage serio_raw sr_mod atkbd libps2 cdrom vivaldi_fmap ata_generic hid_generic i8042 pata_acpi usbhid
[ 1640.151231]  pata_via floppy serio sata_via
[ 1640.151235] Unloaded tainted modules: nvidia(POE):1
[ 1640.151239] CPU: 1 PID: 9263 Comm: Fm::JobThread Tainted: P      D    OE      6.8.2-artix1-1 #1 c0e75936d2f7ed30eb7ff447a1ef18fcb8f90e2d
[ 1640.151242] Hardware name: System manufacturer M2V                /M2V, BIOS 2101    02/21/2008
[ 1640.151244] RIP: 0010:do_exit+0x8ff/0xb60
[ 1640.151247] Code: e9 1f f8 ff ff 48 8b bb 08 06 00 00 31 f6 e8 f8 e0 ff ff e9 a7 fd ff ff 4c 89 e6 bf 05 06 00 00 e8 26 26 01 00 e9 49 f8 ff ff <0f> 0b e9 78 f7 ff ff 0f 0b e9 35 f7 ff ff 48 89 df e8 ab a4 12 00
[ 1640.151250] RSP: 0018:ffffac2a41ae3ed8 EFLAGS: 00010286
[ 1640.151253] RAX: 0000000000000000 RBX: ffff8bb85d7f1040 RCX: 0000000000000000
[ 1640.151255] RDX: 0000000000000001 RSI: 0000000000002710 RDI: ffff8bb90283ca40
[ 1640.151257] RBP: ffff8bb9042b1f80 R08: 0000000000000000 R09: ffffac2a41ae3728
[ 1640.151259] R10: ffffac2a41ae3720 R11: 0000000000000003 R12: 000000000000000b
[ 1640.151261] R13: ffff8bb90283ca40 R14: 0000000000000000 R15: 0000000000000000
[ 1640.151263] FS:  000079498d6006c0(0000) GS:ffff8bb92bd00000(0000) knlGS:0000000000000000
[ 1640.151265] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1640.151268] CR2: 00007d44ee650010 CR3: 0000000101652000 CR4: 00000000000006f0
[ 1640.151270] Call Trace:
[ 1640.151272]  <TASK>
[ 1640.151273]  ? do_exit+0x8ff/0xb60
[ 1640.151276]  ? __warn+0x81/0x130
[ 1640.151280]  ? do_exit+0x8ff/0xb60
[ 1640.151283]  ? report_bug+0x171/0x1a0
[ 1640.151288]  ? handle_bug+0x3c/0x80
[ 1640.151292]  ? exc_invalid_op+0x17/0x70
[ 1640.151295]  ? asm_exc_invalid_op+0x1a/0x20
[ 1640.151299]  ? do_exit+0x8ff/0xb60
[ 1640.151302]  ? do_exit+0x70/0xb60
[ 1640.151305]  make_task_dead+0x83/0x170
[ 1640.151308]  rewind_stack_and_make_dead+0x17/0x20
[ 1640.151312] RIP: 0033:0x79499fd196bc
[ 1640.151317] Code: ec 28 48 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 d9 c0 f8 ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 48 89 44 24 08 e8 2f c1 f8 ff 48
[ 1640.151320] RSP: 002b:000079498d5f9fe0 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
[ 1640.151323] RAX: ffffffffffffffda RBX: 000079494c01ace0 RCX: 000079499fd196bc
[ 1640.151325] RDX: 0000000000004000 RSI: 000079498d5fa020 RDI: 0000000000000028
[ 1640.151327] RBP: 000079494c011380 R08: 0000000000000000 R09: 0000000000000007
[ 1640.151329] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000028
[ 1640.151331] R13: 000079494c051700 R14: 0000000000004000 R15: 000079498d5fa020
[ 1640.151334]  </TASK>
[ 1640.151336] ---[ end trace 0000000000000000 ]---

Re: file copy from USB disk interrupts abruptly or makes system freeze

Reply #1
I don't know if it's related but I noticed recently, just in the last few days, on my Dell Latitude E7470 that when I have an external SATA spinning disk HDD in an Icy Box USB3.0 enclosure plugged in and mounted my onboard wifi from my Intel 8260 starts running extremely slowly, I can barely use the internet at all - unmounting and unplugging it restores normal speeds.  I can't remember it doing that in the past but I don't often do that combination of things either.

Re: file copy from USB disk interrupts abruptly or makes system freeze

Reply #2
I don't know if it's related but I noticed recently, just in the last few days, on my Dell Latitude E7470 that when I have an external SATA spinning disk HDD in an Icy Box USB3.0 enclosure plugged in and mounted my onboard wifi from my Intel 8260 starts running extremely slowly, I can barely use the internet at all - unmounting and unplugging it restores normal speeds.  I can't remember it doing that in the past but I don't often do that combination of things either.
For me its worse because after a simple file comparison with freefilesync, without copy anything, I exit from the program but after that cannot unmount the external drive because target is busy.

Re: file copy from USB disk interrupts abruptly or makes system freeze

Reply #3
I'd try weekly ISOs first of all. Check dmesg for HW related stuff. It also could be GFVS/KIO related bullshit. It could also be really not-so-good-but-usable-only-for-getting-rid-of-ntfs linux ntfs driver (ntfs3 or ntfs-3g, doesn't matter, both are crap and both will corrupt your data at some point). It could also be crappy mobo chipset of that era. That freefilesync program might have problems with permissions on ntfs partitions from linux side of things too. You have to check those logs, I know ntfs3 driver would spew some bullshit into dmesg, so try there first.

Re: file copy from USB disk interrupts abruptly or makes system freeze

Reply #4
Exploring my issue, so far I booted into an Arch partition that hadn't been updated for ages on the same machine and I could use the external drive and internet with no problems, that was running a 6.4.6-arch1-1 kernel while in Artix I'm using the latest Zen one. Perhaps alternative kernels like LTS could be worth trying?

Re: file copy from USB disk interrupts abruptly or makes system freeze

Reply #5
I'd try weekly ISOs first of all. Check dmesg for HW related stuff. It also could be GFVS/KIO related bullshit. It could also be really not-so-good-but-usable-only-for-getting-rid-of-ntfs linux ntfs driver (ntfs3 or ntfs-3g, doesn't matter, both are crap and both will corrupt your data at some point). It could also be crappy mobo chipset of that era. That freefilesync program might have problems with permissions on ntfs partitions from linux side of things too. You have to check those logs, I know ntfs3 driver would spew some bullshit into dmesg, so try there first.

no difference with a weekly iso, all is fine using another os, but looks like to be fine with ext4 filesystem too and i found that when the copy stops an error appears in dmesg (i added the log in the first post)

Re: file copy from USB disk interrupts abruptly or makes system freeze

Reply #6
That dmesg error points to CPU having some stuff enabled in bios, like powersaving feature or suspend to ram, that'd explain it working on another system that has that stuff working properly. Tho afaik, there are a lot of problems with 6.8.2, try downgrading to LTS for example too.

Re: file copy from USB disk interrupts abruptly or makes system freeze

Reply #7
Actually having had time to do some more thorough testing with an upload and download online speedtest website with some other kernels and distros, and various hard drives and enclosures even a mains powered one, the slow wifi connection seems to occur on this machine in all of them regardless, including Devuan Beowulf with a 4.19 kernel, although it can vary randomly how much of a slow down there is, sometimes it just makes things slower but still leaves a usable speed, but there is always quite a big difference. So it might not be a software issue, and if it is it's been around a long while. The only exception was an old 2.5" SATA/PATA metal cased USB 2.0 (and switchable ESATA) enclosure which doesn't seem to cause the slow down - so it might be something USB3.0 related. A USB 3.0 usb stick made no difference when plugged in though. The mains powered enclosure also affected the track point operation when plugged in, making it jerky and freeze sometimes, I had seen it do that on my Dell M4500 before. Taking the drive from the 2.0 enclosure and putting it in a 3.0 enclosure also caused a wifi slow down. Download speeds became slower than upload speeds, which were less affected. I doubt it's the same issue as yours, sorry my addition here was not of more help to you but at least you seem to be finding the cause of your troubles!  :D

 

Re: file copy from USB disk interrupts abruptly or makes system freeze

Reply #8
That dmesg error points to CPU having some stuff enabled in bios, like powersaving feature or suspend to ram, that'd explain it working on another system that has that stuff working properly. Tho afaik, there are a lot of problems with 6.8.2, try downgrading to LTS for example too.

I installed the lts kernel and after 2 hours of copying no more freezes occurred. The zen kernel doesn't work too instead. Thanks for the help.