You are not logged in.
I have problem where my drive seemingly randomly unmounts when certain tasks are executed. Example of this might be launching a game through steam. Games launched through lutris work just fine, and all other tasks i have tested so far work without problem. I use this drive while dualbooting arch and windows. The drive works fine with windows, but not in Linux.
Output i get from running cs2 through steam:
$ journalctl --follow --no-tail
jun 06 14:06:00 lunix plasmashell[2352]: /bin/sh\0-c\0/home/du/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=730 -- /home/du/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/mnt/stordisk/SteamLibrary/steamapps/common/SteamLinuxRuntime_sniper'/_v2-entry-point --verb=waitforexitandrun -- '/mnt/stordisk/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh' -steam -vulkan\0
jun 06 14:06:00 lunix plasmashell[6097]: ERROR: ld.so: object '/home/du/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
jun 06 14:06:00 lunix plasmashell[6097]: ERROR: ld.so: object '/home/du/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
jun 06 14:06:00 lunix plasmashell[6098]: ERROR: ld.so: object '/home/du/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
jun 06 14:06:00 lunix plasmashell[6098]: ERROR: ld.so: object '/home/du/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
jun 06 14:06:00 lunix plasmashell[6099]: ERROR: ld.so: object '/home/du/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
jun 06 14:06:00 lunix ntfs-3g[630]: ntfs_attr_pread_i: Failed to find VCN #1: Input/output error
jun 06 14:06:00 lunix kernel: mount.ntfs-3g[630]: segfault at 10 ip 00007a90eaa54251 sp 00007ffe5f9c9490 error 4 in libntfs-3g.so.89.0.0[7a90eaa36000+39000] likely on CPU 7 (core 3, socket 0)
jun 06 14:06:00 lunix kernel: Code: c3 fe ff ff ff 15 8f d5 02 00 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 49 89 f0 ba 01 00 00 00 53 48 89 fb 48 83 ec 08 <48> 8b 6e 10 0f b6 8f f0 01 00 00 48 8b 7f 58 48 89 ee 48 d3 e6 8b
jun 06 14:06:00 lunix ntfs-3g[630]: Failed to read index block: Input/output error
jun 06 14:06:00 lunix systemd[1]: Created slice Slice /system/drkonqi-coredump-processor.
jun 06 14:06:00 lunix systemd[1]: Created slice Slice /system/systemd-coredump.
jun 06 14:06:00 lunix systemd[1]: Started Process Core Dump (PID 6116/UID 0).
jun 06 14:06:00 lunix systemd[1]: Started Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
jun 06 14:06:00 lunix systemd-coredump[6117]: [?] Process 630 (mount.ntfs-3g) of user 0 dumped core.
Stack trace of thread 630:
#0 0x00007a90eaa54251 n/a (libntfs-3g.so.89 + 0x27251)
#1 0x00007a90eaa54324 n/a (libntfs-3g.so.89 + 0x27324)
#2 0x00007a90eaa5433d ntfs_index_ctx_put (libntfs-3g.so.89 + 0x2733d)
#3 0x00007a90eaa61bc2 ntfs_delete_reparse_index (libntfs-3g.so.89 + 0x34bc2)
#4 0x00007a90eaa50e52 ntfs_delete (libntfs-3g.so.89 + 0x23e52)
#5 0x00005d4407d1c2cb n/a (ntfs-3g + 0xb2cb)
#6 0x00005d4407d1c3c9 n/a (ntfs-3g + 0xb3c9)
#7 0x00007a90eaa8f280 n/a (libfuse.so.2 + 0xc280)
#8 0x00007a90eaa9a7c4 n/a (libfuse.so.2 + 0x177c4)
#9 0x00007a90eaa96fd5 fuse_session_loop (libfuse.so.2 + 0x13fd5)
#10 0x00005d4407d15e25 n/a (ntfs-3g + 0x4e25)
#11 0x00007a90ea866c88 n/a (libc.so.6 + 0x25c88)
#12 0x00007a90ea866d4c __libc_start_main (libc.so.6 + 0x25d4c)
#13 0x00005d4407d16e85 n/a (ntfs-3g + 0x5e85)
ELF object binary architecture: AMD x86-64
jun 06 14:06:00 lunix systemd[1]: systemd-coredump@0-6116-0.service: Deactivated successfully.
jun 06 14:06:00 lunix pressure-vessel-wrap[6098]: E: readdir: Transport endpoint is not connected
jun 06 14:06:01 lunix plasmashell[2352]: Uploaded AppInterfaceStats to Steam
jun 06 14:06:01 lunix drkonqi-coredump-processor[6118]: "/usr/bin/ntfs-3g" 630 "/var/lib/systemd/coredump/core.mount\\x2entfs-3g.0.8497b86deb734e048b5138ea1bb52a33.630.1717675560000000.zst"
jun 06 14:06:01 lunix drkonqi-coredump-processor[6118]: The socket path doesn't exist @ "/run/user/0/drkonqi-coredump-launcher"
jun 06 14:06:01 lunix systemd[1]: drkonqi-coredump-processor@0-6116-0.service: Deactivated successfully.Using Dolphin to try and access the drive displays this string of text
Could not enter folder /mnt/stordisk. $ smartctl /dev/sda2 -a -v 1,raw48:54 -v 7,raw48:54
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.9.2-arch1-1] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate FireCuda 3.5
Device Model: ST2000DX002-2DV164
Serial Number: X
LU WWN Device Id: X
Firmware Version: CC41
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: In smartctl database 7.3/5528
ATA Version is: ACS-2, ACS-3 T13/2161-D revision 3b
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Thu Jun 6 14:57:40 2024 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 0) seconds.
Offline data collection
capabilities: (0x73) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 220) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x1081) SCT Status supported.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 112 099 006 Pre-fail Always - 0
3 Spin_Up_Time 0x0003 096 095 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 097 097 020 Old_age Always - 3205
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 084 060 030 Pre-fail Always - 0
9 Power_On_Hours 0x0032 083 083 000 Old_age Always - 15287
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 098 098 020 Old_age Always - 2318
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 099 000 Old_age Always - 4295032841
189 High_Fly_Writes 0x003a 089 089 000 Old_age Always - 11
190 Airflow_Temperature_Cel 0x0022 067 057 045 Old_age Always - 33 (Min/Max 33/36)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 33
193 Load_Cycle_Count 0x0032 059 059 000 Old_age Always - 83473
194 Temperature_Celsius 0x0022 033 043 000 Old_age Always - 33 (0 19 0 0 0)
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 11208h+43m+37.196s
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 115056648356
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 862875707993
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed without error 00% 15287 -
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
The above only provides legacy SMART information - try 'smartctl -x' for more$ cd /mnt/stordisk
bash: cd: /mnt/stordisk: Transport endpoint is not connected$ sudo mount -t ntfs3 /dev/sda2 /mnt/stordisk
mount: /mnt/stordisk: fsconfig system call failed: /dev/sda2: Can't open blockdev.
dmesg(1) may have more information after failed mount system call.most recent dmesg entries close to unmount:
$ dmesg
[ 2272.531737] ntfs3: Max link count 4000
[ 2272.531742] ntfs3: Enabled Linux POSIX ACLs support
[ 2272.531743] ntfs3: Read-only LZX/Xpress compression includedntfsfix doesn't really do alot either:
[du@lunix ~]$ sudo ntfsfix --clear-dirty /dev/sda2
[sudo] password for du:
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sda2 was processed successfully.
[du@lunix ~]$ sudo mount -t ntfs3 /dev/sda2 /mnt/stordisk
mount: /mnt/stordisk: fsconfig system call failed: /dev/sda2: Can't open blockdev.
dmesg(1) may have more information after failed mount system call.My fstab configuration:
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p5
UUID=becb755b-9b2b-4941-9cab-5c8a885264df / ext4 rw,relatime 0 1
# /dev/nvme0n1p1
UUID=5D4F-291C /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
UUID=E0CAC2BBCAC28D6A /mnt/stordisk ntfs-3g uid=1000,gid=1000,rw,user,exec,umask=000,nofail,nocase,prealloc 0 0
UUID=1E664A92664A6B1B /mnt/litendisk ntfs-3g uid=1000,gid=1000,rw,user,exec,umask=000,nofail,nocase,prealloc 0 0Remounting with ntfs-3g works and makes the drive work like before.
But the drive still unmounts when trying to launch anything through steam, therefore I tried mounting with ntfs3 to see if it would change anything, just to notice that it couldn't even mount.
The problem i am trying to solve is the drive "breaking" when starting steam games, and I am very lost as i have not found anything when trying to search the web.
Offline
Don't use NTFS under Linux.
If you want to exchange data with Windows or Mac use exFAT.
Offline
I don't know if exfat is a very good solution. From what I have read it is better to use NTFS while dualbooting as it is less vulnerable to corruption and such. Therefore i don't use exfat.
Offline
It'S the exact opposite: although both ntfs and exfat are developed by microsoft - exfat was made public in 2019 and hence proper drivers exist according to its specs. NTFS is still a reverse-engineered mess with even most recent 6.9/6.10 kernel driver still only supporting up to ntfs v3.x. NTFS is not meant to be written to on linux - as its security architecture is way different - posix and windows don't mix very well.
exFAT on the other hand is widely adopted by the industry since it's made open back in 2019 and therefore is the optimal modern FS for inter-OS exchange - aside from oldschool FAT32 and its limits like 4gb file size or 2tb partition size.
To put it this way: There's no official ntfs driver from microsoft for linux for the current ntfs version - if you dual-boot with win10 or win11 and formated the partition using windows it likely uses features not yet implemented even in the most recent linux driver. In fact the new 6.9 ntfs driver is based on yet another proprietary one from a company named paragon.
Offline
Im sorry for my confusion, exfat seems to be the more supported and better format. Right now the issues lies with reformating the disk. I have alot of data on it that I can't move anywhere else as I have no other big drives to keep the files temporarily as i reformat the drive. If there isn't a way to reformat without deleting all the content, then reformating is currently not an option in my case. I thank you for the information you have given me on the support of exfat respectively ntfs on linux.
Offline
Failed to find VCN #1: Input/output error
Since the drive looks ok, see 3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.
This condition isn't limited to NTFS and will fuck up exfat *at least* as much as well as random other HW, notably radio (wifi/bt) is a common victim.
Offline
After disabling hibernation and fast startup in windows using
$ powercfg /H offI rebooted windows twice and afterwards linux twice, the same problem persists.
$ journalctl --follow --no-tail
jun 06 18:27:33 lunix plasmashell[1465]: /bin/sh\0-c\0/home/du/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=730 -- /home/du/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/mnt/stordisk/SteamLibrary/steamapps/common/SteamLinuxRuntime_sniper'/_v2-entry-point --verb=waitforexitandrun -- '/mnt/stordisk/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh' -steam -vulkan\0
jun 06 18:27:33 lunix plasmashell[1914]: ERROR: ld.so: object '/home/du/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
jun 06 18:27:33 lunix plasmashell[1914]: ERROR: ld.so: object '/home/du/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
jun 06 18:27:33 lunix plasmashell[1915]: ERROR: ld.so: object '/home/du/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
jun 06 18:27:33 lunix plasmashell[1915]: ERROR: ld.so: object '/home/du/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
jun 06 18:27:33 lunix plasmashell[1916]: ERROR: ld.so: object '/home/du/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
jun 06 18:27:33 lunix ntfs-3g[631]: ntfs_attr_pread_i: Failed to find VCN #1: Input/output error
jun 06 18:27:33 lunix ntfs-3g[631]: Failed to read index block: Input/output error
jun 06 18:27:33 lunix kernel: mount.ntfs-3g[631]: segfault at 10 ip 00007317dd05f251 sp 00007ffff031dc90 error 4 in libntfs-3g.so.89.0.0[7317dd041000+39000] likely on CPU 8 (core 4, socket 0)
jun 06 18:27:33 lunix kernel: Code: c3 fe ff ff ff 15 8f d5 02 00 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 49 89 f0 ba 01 00 00 00 53 48 89 fb 48 83 ec 08 <48> 8b 6e 10 0f b6 8f f0 01 00 00 48 8b 7f 58 48 89 ee 48 d3 e6 8b
jun 06 18:27:33 lunix systemd[1]: Created slice Slice /system/drkonqi-coredump-processor.
jun 06 18:27:33 lunix systemd[1]: Created slice Slice /system/systemd-coredump.
jun 06 18:27:34 lunix systemd[1]: Started Process Core Dump (PID 1931/UID 0).
jun 06 18:27:34 lunix systemd[1]: Started Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
jun 06 18:27:34 lunix systemd-coredump[1932]: [?] Process 631 (mount.ntfs-3g) of user 0 dumped core.
Stack trace of thread 631:
#0 0x00007317dd05f251 n/a (libntfs-3g.so.89 + 0x27251)
#1 0x00007317dd05f324 n/a (libntfs-3g.so.89 + 0x27324)
#2 0x00007317dd05f33d ntfs_index_ctx_put (libntfs-3g.so.89 + 0x2733d)
#3 0x00007317dd06cbc2 ntfs_delete_reparse_index (libntfs-3g.so.89 + 0x34bc2)
#4 0x00007317dd05be52 ntfs_delete (libntfs-3g.so.89 + 0x23e52)
#5 0x0000574402a5b2cb n/a (ntfs-3g + 0xb2cb)
#6 0x0000574402a5b3c9 n/a (ntfs-3g + 0xb3c9)
#7 0x00007317dd09a280 n/a (libfuse.so.2 + 0xc280)
#8 0x00007317dd0a57c4 n/a (libfuse.so.2 + 0x177c4)
#9 0x00007317dd0a1fd5 fuse_session_loop (libfuse.so.2 + 0x13fd5)
#10 0x0000574402a54e25 n/a (ntfs-3g + 0x4e25)
#11 0x00007317dce71c88 n/a (libc.so.6 + 0x25c88)
#12 0x00007317dce71d4c __libc_start_main (libc.so.6 + 0x25d4c)
#13 0x0000574402a55e85 n/a (ntfs-3g + 0x5e85)
ELF object binary architecture: AMD x86-64
jun 06 18:27:34 lunix pressure-vessel-wrap[1915]: E: readdir: Transport endpoint is not connected
jun 06 18:27:34 lunix systemd[1]: systemd-coredump@0-1931-0.service: Deactivated successfully.
jun 06 18:27:34 lunix plasmashell[1465]: Uploaded AppInterfaceStats to Steam
jun 06 18:27:34 lunix drkonqi-coredump-processor[1933]: "/usr/bin/ntfs-3g" 631 "/var/lib/systemd/coredump/core.mount\\x2entfs-3g.0.c5286a80095149f987aafb1ca9a7635a.631.1717691253000000.zst"
jun 06 18:27:34 lunix drkonqi-coredump-processor[1933]: The socket path doesn't exist @ "/run/user/0/drkonqi-coredump-launcher"
jun 06 18:27:34 lunix systemd[1]: drkonqi-coredump-processor@0-1931-0.service: Deactivated successfully.
jun 06 18:27:45 lunix qdbus[1200]: Cannot find 'org.kde.KSplash.setStage' in object /KSplash at org.kde.KSplash
jun 06 18:27:45 lunix systemd[735]: Finished KSplash "ready" Stage.
jun 06 18:27:52 lunix plasma_waitforname[808]: org.kde.knotifications: WaitForName: Service was not registered within timeout
jun 06 18:27:52 lunix systemd[735]: dbus-:1.4-org.kde.KSplash@0.service: Main process exited, code=exited, status=1/FAILURE
jun 06 18:27:52 lunix systemd[735]: dbus-:1.4-org.kde.KSplash@0.service: Failed with result 'exit-code'.Offline
Also ntfsfix doesn't really fix anything, clearing the dirty bit is just clearing the dirty bit. While in Windows to verify fast boot is disabled, run a chkdsk on the drive.
FWIW I've had games that are common to both win and linux for years now on an NTFS drive, running them with both ntfs-3g and ntfs3. Works fine generally, but especially ntfs3 used to have the habit of corrupting things, make sure you're always in a situation where you can run chkdsk. Also generally speaking it'd be a good idea to symlink the C:\Program\ Files\ \(x86\)/Steam/steamapps/compatdata path to your ${HOME}/.steam/root/steamapps/compatdata/ which ideally resides on a linux native FS. That way proton prefixes can be created with generally correct permissions, while the actual game data stays on the NTFS drive.
Offline