- Create attach point: Can't find a writable directory to create an attach point

I’m not sure what my next move should be to resolve this issue. I have the following errors in my system around the root partition on a NVME drive:

History:

  • Create attach point: Can’t find a writable directory to create an attach point

Configuration file “/root/.config/kioslave5rc” not writable.
Please contact your system administrator.

37.485447] critical medium error, dev nvme0n1, sector 1687104 op 0x0:(READ) flags 0x1000 phys_seg 3 prio class 0
37.502800] nvme0n1: I/O Cmd(0x2) @ LBA 3784256, 32 blocks, I/O Error (sct 0x2 / sc 0x81)
37.502812] critical medium error, dev nvme0n1, sector 3784256 op 0x0:(READ) flags 0x1000 phys_seg 3 prio class 0
37.502846] BTRFS error (device nvme0n1p2): Error -5 accounting shared subtree. Quota is out of sync, rescan required.
37.592419] nvme0n1: I/O Cmd(0x2) @ LBA 1690112, 32 blocks, I/O Error (sct 0x2 / sc 0x81)
37.592436] critical medium error, dev nvme0n1, sector 1690112 op 0x0:(READ) flags 0x1000 phys_seg 4 prio class 0
37.609160] nvme0n1: I/O Cmd(0x2) @ LBA 3787264, 32 blocks, I/O Error (sct 0x2 / sc 0x81)
37.609172] critical medium error, dev nvme0n1, sector 3787264 op 0x0:(READ) flags 0x1000 phys_seg 4 prio class 0
37.609205] BTRFS error (device nvme0n1p2): Error -5 accounting shared subtree. Quota is out of sync, rescan required.
38.716540] ------------ cut here ]------------
38.716545] WARNING: CPU: 20 PID: 819 at fs/btrfs/qgroup.c:2708 btrfs_qgroup_account_extents+0x20f/0x240 [btrfs]
38.716600] Modules linked in: af_packet bridge stp llc qrtr bnep dmi_sysfs xfs nls_iso8859_1 nls_cp437 vfat fat snd_usb_audio snd_usbmidi_lib snd_rawmidi btusb snd_seq_device btrtl btbcm uvcvideo btintel gspca_vc032x btmtk bluetooth pktcdvd gspca_main joydev videobuf2_vmalloc ecdh_generic videobuf2_memops rfkill videobuf2_v4l2 videobuf2_common videodev wacom mc snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec edac_mce_amd snd_hda_core snd_hwdep kvm_amd snd_pcm gpio_amdpt tiny_power_button snd_timer kvm igb snd mxm_wmi gigabyte_wmi i2c_piix4 wmi_bmof efi_pstore k10temp soundcore pcspkr dca acpi_cpufreq gpio_generic button irqbypass fuse configfs ip_tables x_tables hid_logitech_hidpp hid_logitech_dj hid_generic uas usbhid usb_storage amdgpu crct10dif_pclmul crc32_pclmul drm_ttm_helper ttm xhci_pci xhci_pci_renesas iommu_v2 ghash_clmulni_intel gpu_sched aesni_intel xhci_hcd drm_display_helper nvme
38.716640] crypto_simd cryptd cec usbcore nvme_core rc_core ccp sr_mod sp5100_tco cdrom wmi btrfs blake2b_generic libcrc32c crc32c_intel xor raid6_pq sg dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua msr efivarfs
38.716651] Unloaded tainted modules: amd64_edac():1 amd64_edac():1 amd64_edac():1 amd64_edac():1 amd64_edac():1 amd64_edac():1 amd64_edac():1 amd64_edac():1 pcc_cpufreq():1 amd64_edac():1 amd64_edac():1 pcc_cpufreq():1 amd64_edac():1 pcc_cpufreq():1 pcc_cpufreq():1 amd64_edac():1 pcc_cpufreq():1 amd64_edac():1 amd64_edac():1 pcc_cpufreq():1 amd64_edac():1 pcc_cpufreq():1 amd64_edac():1 pcc_cpufreq():1 fjes():1 amd64_edac():1 pcc_cpufreq():1 amd64_edac():1 pcc_cpufreq():1 fjes():1 pcc_cpufreq():1 amd64_edac():1 fjes():1 fjes():1 pcc_cpufreq():1 amd64_edac():1 fjes():1 amd64_edac():1 pcc_cpufreq():1 amd64_edac():1 fjes():1 pcc_cpufreq():1 fjes():1 amd64_edac():1 pcc_cpufreq():1 pcc_cpufreq():1 amd64_edac():1 fjes():1 amd64_edac():1 pcc_cpufreq():1 fjes():1 amd64_edac():1 pcc_cpufreq():1 amd64_edac():1 fjes():1 pcc_cpufreq():1 fjes():1 amd64_edac():1 pcc_cpufreq():1 fjes():1 amd64_edac():1 pcc_cpufreq():1 fjes():1 pcc_cpufreq():1 amd64_edac():1 fjes():1 pcc_cpufreq():1
38.716691] amd64_edac():1 fjes():1 amd64_edac():1 pcc_cpufreq():1 fjes():1 pcc_cpufreq():1 fjes():1 pcc_cpufreq():1 pcc_cpufreq():1 fjes():1 pcc_cpufreq():1 pcc_cpufreq():1 fjes():1 fjes():1 pcc_cpufreq():1 pcc_cpufreq():1 fjes():1 pcc_cpufreq():1 fjes():1 fjes():1
38.716703] CPU: 20 PID: 819 Comm: btrfs-transacti Not tainted 5.19.8-1-default #1 openSUSE Tumbleweed cfee37eadc5a540a2720ec5a9e55d8deb9565ab8
38.716706] Hardware name: Gigabyte Technology Co., Ltd. X399 AORUS PRO/X399 AORUS PRO-CF, BIOS F1 10/01/2018
38.716707] RIP: 0010:btrfs_qgroup_account_extents+0x20f/0x240 [btrfs]
38.716752] Code: 85 c0 74 0f 48 8b 78 08 4c 89 e1 4c 89 f6 e8 88 12 f5 ff 65 ff 0d 61 cd cb 3f 0f 85 6b ff ff ff 0f 1f 44 00 00 e9 61 ff ff ff <0f> 0b 49 8b 57 18 45 31 c9 4d 8d 47 38 31 c9 4c 89 f6 e8 ca 6f ff
38.716754] RSP: 0018:ffffa9b581267e10 EFLAGS: 00010246
38.716756] RAX: ffff8c6789f8a840 RBX: 0000000000000000 RCX: 000000000040002d
38.716757] RDX: ffff8c6789f8a840 RSI: fffff7e9c6d01900 RDI: 0000000000000000
38.716758] RBP: ffff8c66c10fb770 R08: 0000000000000000 R09: 000000000040002d
38.716759] R10: 0000000000000000 R11: ffff8c6688d5b000 R12: 0000000000002369
38.716760] R13: ffff8c668fb12c30 R14: ffff8c781b1cc000 R15: ffff8c6789f8a840
38.716761] FS: 0000000000000000(0000) GS:ffff8c7d9d700000(0000) knlGS:0000000000000000
38.716762] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
38.716763] CR2: 00007f0e6a254eae CR3: 0000000133556000 CR4: 00000000003506e0
38.716764] Call Trace:
38.716766] <TASK>
38.716770] btrfs_commit_transaction+0x4d7/0xb60 [btrfs ae6d45dee7bda97a5e449ca2d26f53785b6f3b6e]
38.716809] ? destroy_sched_domains_rcu+0x30/0x30
38.716814] transaction_kthread+0x13d/0x1b0 [btrfs ae6d45dee7bda97a5e449ca2d26f53785b6f3b6e]
38.716852] ? btrfs_cleanup_transaction.isra.0+0x540/0x540 [btrfs ae6d45dee7bda97a5e449ca2d26f53785b6f3b6e]
38.716888] kthread+0xda/0x100
38.716891] ? kthread_complete_and_exit+0x20/0x20
38.716892] ret_from_fork+0x22/0x30
38.716896] </TASK>
38.716897] — end trace 0000000000000000 ]—
38.732543] nvme0n1: I/O Cmd(0x2) @ LBA 1687104, 32 blocks, I/O Error (sct 0x2 / sc 0x81)
38.732567] critical medium error, dev nvme0n1, sector 1687104 op 0x0:(READ) flags 0x1000 phys_seg 3 prio class 0
38.749374] nvme0n1: I/O Cmd(0x2) @ LBA 3784256, 32 blocks, I/O Error (sct 0x2 / sc 0x81)
38.749398] critical medium error, dev nvme0n1, sector 3784256 op 0x0:(READ) flags 0x1000 phys_seg 3 prio class 0
39.559880] BTRFS warning (device nvme0n1p2): Skipping commit of aborted transaction.


I ran this command to get the health of my NVME: smartctl --all -H /dev/nvme0n1p2

smartctl 7.3 2022-02-28 r5338 [x86_64-linux-5.19.8-1-default] (SUSE RPM)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number: CT1000P1SSD8
Serial Number: 2008E28E3009
Firmware Version: P3CR013
PCI Vendor/Subsystem ID: 0xc0a9
IEEE OUI Identifier: 0x00a075
Controller ID: 1
NVMe Version: 1.3
Number of Namespaces: 1
Namespace 1 Size/Capacity: 1,000,204,886,016 [1.00 TB]
Namespace 1 Formatted LBA Size: 512
Namespace 1 IEEE EUI-64: 00a075 20e28e3009
Local Time is: Sun Nov 27 19:48:28 2022 EST
Firmware Updates (0x14): 2 Slots, no Reset required
Optional Admin Commands (0x0016): Format Frmw_DL Self_Test
Optional NVM Commands (0x005e): Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Timestmp
Log Page Attributes (0x0f): S/H_per_NS Cmd_Eff_Lg Ext_Get_Lg Telmtry_Lg
Maximum Data Transfer Size: 32 Pages
Warning Comp. Temp. Threshold: 70 Celsius
Critical Comp. Temp. Threshold: 80 Celsius

Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 9.00W - - 0 0 0 0 5 5
1 + 4.60W - - 1 1 1 1 30 30
2 + 3.80W - - 2 2 2 2 30 30
3 - 0.0500W - - 3 3 3 3 1000 1000
4 - 0.0040W - - 4 4 4 4 6000 8000

Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 + 512 0 0

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 35 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 0%
Data Units Read: 352,377,185 [180 TB]
Data Units Written: 3,147,202 [1.61 TB]
Host Read Commands: 2,915,995,053
Host Write Commands: 64,563,371
Controller Busy Time: 5,256
Power Cycles: 18
Power On Hours: 6,600
Unsafe Shutdowns: 2
Media and Data Integrity Errors: 5,124
Error Information Log Entries: 0
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 0
Temperature Sensor 1: 35 Celsius
Temperature Sensor 2: 35 Celsius
Temperature Sensor 5: 45 Celsius
Thermal Temp. 1 Transition Count: 185
Thermal Temp. 1 Total Time: 221394

Error Information (NVMe Log 0x01, 16 of 256 entries)
No Errors Logged


So the NVME appears to be good. I’m thinking I need to run BTRFS check on root partition. Any other ideas?

[FONT=arial]

[/FONT]

Backup what you can and replace your disk.

37.485447] critical medium error, dev nvme0n1, sector 1687104 op 0x0:(READ) flags 0x1000 phys_seg 3 prio class 0
37.502800] nvme0n1: I/O Cmd(0x2) @ LBA 3784256, 32 blocks, I/O Error (sct 0x2 / sc 0x81)