Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-10-16 01:08:43

darsk
Member
Registered: 2023-10-16
Posts: 2

Thunar/System freezes when copying files,folders from External 2Tb HDD

hi,

I have installed the latest Xubuntu 23.10 on my computer.

I have been trying to copy backed up game folders, music and documents from an external WD Elements 2 Tb hdd back onto my system.
My system freezes though when copying files/folders either straight away or a after a little time when using Thunar.

[In Thunar I have tried changing - transfer files in parallel to 'always'.]

As my system keeps freezing when trying to copy files, I am having to hard reboot.

Ive not experienced this issue when copying files from internal ntfs drives, or eternal ssds formatted as ext4.

Any ideas how id go about fixing this issue? (ive checked external hdd file system and its fine)

many thanks, darsk

[edit]
Even when I'm copying files with Thunar from internal hard drives, I may not be getting system freezing.

There are crash reports in my Journalctl at the time such as this;

------------[ cut here ]------------
: memcpy: detected field-spanning write (size 8) of single field "le->name" at fs/ntfs3/attrlist.c:326 (size 6)
: WARNING: CPU: 17 PID: 35232 at fs/ntfs3/attrlist.c:326 al_add_le+0x477/0x4b0 [ntfs3]
: Modules linked in: bpfilter ip6table_filter ip6_tables iptable_filter wireguard curve25519_x86_64 libchacha20poly1305 chacha_x86_64 poly1305_x86_64 libcurve25519_generic libchacha ip6_udp_tunnel udp_tunnel mptcp_diag xsk_diag tcp_diag udp_diag raw_diag inet_diag unix_diag af_packet_diag netlink_diag ntfs3 rfcomm snd_seq_dummy snd_hrtimer cmac algif_hash algif_skcipher af_alg bnep binfmt_misc ip6t_REJECT nf_reject_ipv6 xt_hl ip6t_rt ipt_REJECT nf_reject_ipv4 xt_LOG nf_log_syslog nft_limit xt_limit xt_addrtype xt_tcpudp xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c nfnetlink intel_rapl_msr intel_rapl_common intel_uncore_frequency intel_uncore_frequency_common nls_iso8859_1 snd_sof_pci_intel_tgl snd_sof_intel_hda_common soundwire_intel snd_sof_intel_hda_mlink soundwire_cadence snd_sof_intel_hda snd_sof_pci amdgpu snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi soundwire_generic_allocation
Oct 16 03:50:40 darsk-System kernel:  x86_pkg_temp_thermal intel_powerclamp soundwire_bus snd_hda_codec_realtek snd_hda_codec_generic snd_soc_core ledtrig_audio snd_compress snd_hda_codec_hdmi ac97_bus iwlmvm snd_pcm_dmaengine snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi coretemp snd_usb_audio snd_hda_codec mac80211 kvm_intel snd_usbmidi_lib snd_hda_core amdxcp snd_ump iommu_v2 snd_hwdep drm_buddy wl(POE) libarc4 snd_pcm gpu_sched kvm drm_suballoc_helper drm_ttm_helper snd_seq_midi snd_seq_midi_event ttm uvcvideo iwlwifi irqbypass snd_rawmidi btusb crct10dif_pclmul videobuf2_vmalloc drm_display_helper cmdlinepart polyval_clmulni btrtl snd_seq uvc polyval_generic videobuf2_memops ghash_clmulni_intel spi_nor aesni_intel btbcm videobuf2_v4l2 cec btintel crypto_simd snd_seq_device videodev mtd snd_timer rc_core btmtk cryptd mei_me videobuf2_common rapl bluetooth snd drm_kms_helper spi_intel_pci cfg80211 razermouse(OE) mc i2c_algo_bit input_leds mei joydev soundcore spi_intel intel_cstate i2c_i801 ecdh_generic ecc i2c_smbus intel_lpss_pci
:  intel_lpss idma64 gigabyte_wmi intel_hid mxm_wmi wmi_bmof sparse_keymap acpi_tad acpi_pad mac_hid msr parport_pc ppdev lp parport drm efi_pstore dmi_sysfs ip_tables x_tables autofs4 hid_generic usbhid hid uas usb_storage crc32_pclmul atlantic ahci macsec xhci_pci libahci xhci_pci_renesas video wmi pinctrl_alderlake
: CPU: 17 PID: 35232 Comm: pool-Thunar Tainted: P        W  OE      6.5.0-9-generic #9-Ubuntu
: Hardware name: Gigabyte Technology Co., Ltd. Z690 AORUS MASTER/Z690 AORUS MASTER, BIOS F23 03/09/2023
: RIP: 0010:al_add_le+0x477/0x4b0 [ntfs3]
: Code: a8 01 0f 85 35 fe ff ff b9 06 00 00 00 48 c7 c2 98 d8 d2 c1 4c 89 e6 48 c7 c7 c8 d8 d2 c1 c6 05 71 53 07 ff 01 e8 e9 0f 87 db <0f> 0b e9 0c fe ff ff 48 8b 45 b8 42 0f b7 44 20 fe 66 43 89 44 25
: RSP: 0018:ffffb6fd86d632f8 EFLAGS: 00010246
: RAX: 0000000000000000 RBX: ffff927df0a48fc0 RCX: 0000000000000000
: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
: RBP: ffffb6fd86d63398 R08: 0000000000000000 R09: 0000000000000000
: R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000008
: R13: ffff9280e83e78aa R14: ffff9280e83e78d0 R15: ffff9280e83e7890
: FS:  00007f7650bff6c0(0000) GS:ffff92851fc40000(0000) knlGS:0000000000000000
: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
: CR2: 00007ff68d7d4000 CR3: 000000011ceac000 CR4: 0000000000750ee0
: PKRU: 55555554
: Call Trace:
:  <TASK>
:  ? show_regs+0x6d/0x80
:  ? __warn+0x89/0x160
:  ? al_add_le+0x477/0x4b0 [ntfs3]
:  ? report_bug+0x17e/0x1b0
:  ? handle_bug+0x51/0xa0
:  ? exc_invalid_op+0x18/0x80
:  ? asm_exc_invalid_op+0x1b/0x20
:  ? al_add_le+0x477/0x4b0 [ntfs3]
:  ? al_add_le+0x477/0x4b0 [ntfs3]
:  ni_ins_new_attr+0x116/0x190 [ntfs3]
:  ni_ins_attr_ext+0x2c0/0x470 [ntfs3]
:  ni_insert_attr+0x1c0/0x2a0 [ntfs3]
:  ni_insert_nonresident+0x111/0x220 [ntfs3]
:  attr_make_nonresident+0x19f/0x570 [ntfs3]
:  attr_set_size_res+0x173/0x180 [ntfs3]
:  attr_set_size+0x177/0xf20 [ntfs3]
:  ? attr_set_size_res+0x125/0x180 [ntfs3]
:  ? hdr_find_e.isra.0+0x187/0x2d0 [ntfs3]
:  ? __pfx_mi_find_attr+0x10/0x10 [ntfs3]
:  indx_add_allocate+0x26d/0x380 [ntfs3]
:  indx_insert_into_buffer.isra.0+0x250/0x670 [ntfs3]
:  indx_insert_entry+0xa6/0x210 [ntfs3]
:  ntfs_create_inode+0x5e4/0xf30 [ntfs3]
:  ntfs_atomic_open+0x20a/0x290 [ntfs3]
:  lookup_open.isra.0+0x386/0x5b0
:  open_last_lookups+0x14d/0x400
:  path_openat+0x99/0x2d0
:  do_filp_open+0xaf/0x170
:  do_sys_openat2+0xb3/0xe0
:  __x64_sys_openat+0x55/0xa0
:  do_syscall_64+0x59/0x90
:  ? putname+0x5d/0x80
:  ? exit_to_user_mode_prepare+0x30/0xb0
:  ? syscall_exit_to_user_mode+0x37/0x60
:  ? do_syscall_64+0x68/0x90
:  ? do_syscall_64+0x68/0x90
:  ? do_syscall_64+0x68/0x90
:  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
: RIP: 0033:0x7f7666719e90
: Code: 48 89 44 24 20 75 94 44 89 54 24 0c e8 f9 99 f7 ff 44 8b 54 24 0c 89 da 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 38 44 89 c7 89 44 24 0c e8 4c 9a f7 ff 8b 44
: RSP: 002b:00007f7650bfe0c0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
: RAX: ffffffffffffffda RBX: 00000000000800c1 RCX: 00007f7666719e90
: RDX: 00000000000800c1 RSI: 00007f763ea163c0 RDI: 00000000ffffff9c
: RBP: 00007f763ea163c0 R08: 0000000000000000 R09: 0000000000000005
: R10: 00000000000001ed R11: 0000000000000293 R12: 00007f7650bfe330
: 00007f7650bfe330 R14: 0000556fb44a7a00 R15: 0000000000000000
:  </TASK>
: ---[ end trace 0000000000000000 ]---

Last edited by darsk (2023-10-17 13:01:59)

Offline

#2 2023-10-17 00:57:55

mint4all
Member
From: off the map
Registered: 2018-08-21
Posts: 266

Re: Thunar/System freezes when copying files,folders from External 2Tb HDD

Greetings!

Fwif, here's a clue to your problem...

:  indx_insert_entry+0xa6/0x210 [ntfs3]
:  ntfs_create_inode+0x5e4/0xf30 [ntfs3]
:  ntfs_atomic_open+0x20a/0x290 [ntfs3]

Ime, NTFS implementation under linux has -- at best -- been so-so. The foregoing trace message would indicate that the ntfs-driver is updating the volume with ntfs' "last accessed" meta data, and gets overloaded. Often, file-i/o errors cause the kernel to freeze. Perhaps you can try to mount your external ntfs-formatted drive as `read-only`? That prevents the ntfs-driver from updating the file's inode (aka resource-fork). Here's a good write-up @ https://www.addictivetips.com/ubuntu-li … -on-linux/

Cheers, m4a

Last edited by mint4all (2023-10-17 15:23:15)


Linux Mint 21.2 -- xfce 4.18 ... Apple iMAC -- Dell & HP Desktops and Laptops -- Family & Community Support

Offline

#3 2023-10-17 03:19:32

darsk
Member
Registered: 2023-10-16
Posts: 2

Re: Thunar/System freezes when copying files,folders from External 2Tb HDD

mint4all wrote:

Greetings!

Fwif, here's a clue to your problem...

:  indx_insert_entry+0xa6/0x210 [ntfs3]
:  ntfs_create_inode+0x5e4/0xf30 [ntfs3]
:  ntfs_atomic_open+0x20a/0x290 [ntfs3]

Ime, NTFS implementation under linux has -- at best -- been so-so. The foregoing trace message would indicate that the ntfs-driver is updating the volume with ntfs' "last accessed" meta data, and gets overloaded. Often, file-i/o errors cause the kernel to freeze. Perhaps you can try to mount your external ntfs-formatted drive as `reqad-only`? That prevents the ntfs-driver from updating the file's inode (aka resource-fork) from trying to update. Here's a good write-up @ https://www.addictivetips.com/ubuntu-li … -on-linux/

Cheers, m4a

I appreciate the reply mint4all

That log was for one of my internal drives, the kernel wasn't happy!

Thunar will just hang my system if I try to copy any data from an external drive.

Makes sense what you wrote, will definitely try this on my external drive.
Thank you for the link you kindly added

thanks, darsk

Last edited by darsk (2023-10-17 03:40:35)

Offline

#4 2023-10-17 16:22:09

CwF
Member
Registered: 2018-01-28
Posts: 290

Re: Thunar/System freezes when copying files,folders from External 2Tb HDD

darsk wrote:

Thunar will just hang my system if I try to copy any data from an external drive.

This is likely a hardware/usb issue. USB transfers also have much more overhead than other protocols.

Offline

Board footer

Powered by FluxBB