LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-20-2024, 08:59 PM   #1
Tsuga
Member
 
Registered: Jul 2020
Distribution: Slackware64 15.0
Posts: 63

Rep: Reputation: Disabled
NTFS drive mount problem and KDE log out hangs


Logged out of one of the users on my system to log in to a different user. When I log out of the first user, KDE hangs, same as what happened here.

I have an additional problem now too. When I get logged in again, as either user, I cannot open an NTFS drive that is on a separate partition on the same hard drive. Here is fstab:

Code:
UUID=08daf54d-7258-4d04-9717-41351df31d89        /                ext4        defaults         1   1
UUID=5619-07C1                                   /boot/efi        vfat        defaults         1   0
UUID=AA3820C238208EFf                            /ntfsc           ntfs3       fmask=133,dmask=022 1   0
UUID=82CC1BFECC1BEAE5                            /ntfsd           ntfs3       fmask=111,dmask=000 1   0
"ntfsd" is the drive I'm concerned with. It's /dev/sda6 on the computer.

If I use Dolphin (my default) for moving through the directory there is this error message:
Quote:
An error occurred while accessing 'D:', the system responded: The requested operation has failed: Error mounting system-managed device /dev/sda6: wrong fs type, bad option, bad superblock on /dev/sda6, missing codepage or helper program, or other error
If I just
Code:
ls /ntfsd
there is no result.

Something I found said to
unmount the drive (umount said it wasn't mounted)
&
use fsck on the drive (there is no fsck.ntfs on my Slackware. I read fsck has to match the filesystem type.)

So I couldn't use that solution.

I tried rebooting Slackware. That doesn't fix the problem with the NTFS drive. It still can't be reached.

I found something that said to log into Windows partition and use chkdsk. That seemed to work. But as soon as I logged out of the user to log in again, on the next login, the NTFS problem was back.

I'm not 100% sure these are related, but these problems both started happening at the same time and the NTFS problem comes up after logging out and back in.
 
Old 01-20-2024, 11:01 PM   #2
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,802

Rep: Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439
Unless you have some special use case or perhaps a really old kernel, AFAIK "ntfs3" is deprecated and "ntfs" should be the entry in fstab. I could be mistaken as I have vewry few ntfs file systems anymore but FWIW I don't specify any of them anymore in fstab, they automount and they show up as "ntfs" for partition file system type. It's been that way for nearly 2 years and no issues.
 
1 members found this post helpful.
Old 01-20-2024, 11:07 PM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,859
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
I don't see any ntfs3 as a mount type in https://man7.org/linux/man-pages/man...systems.5.html. Have you tried omitting the 3?
 
Old 01-20-2024, 11:32 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,768

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
As far as I know ntfs refers to the fuse filesystem ntfs-3g and ntfs3 is the new kernel driver. Make sure that you fully shutdown Windows or the filesystems will be left in an unclean state. I don't mess with ntfs very often in linux so I have not really played with ntfs-3g versus ntfs3.

ntfsfix is the very limited chkdsk utility.
 
Old 01-21-2024, 05:39 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,378

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
There was a thread in this forum started a few years back when the ntfs3 driver first entered into the kernel that recorded user experiences.

I got bitten by a problem back then, and reverted to the fuse filesystem ntfs-3g. My needs are modest so the performance hit is of no great concern.

PS - NTFS is a Microsoft proprietary file system. The specifications have never been publicly released. The only official tool for checking and repairing the file system is the Windows 'chkdsk' program.

Last edited by allend; 01-21-2024 at 05:46 AM.
 
Old 01-21-2024, 01:16 PM   #6
Tsuga
Member
 
Registered: Jul 2020
Distribution: Slackware64 15.0
Posts: 63

Original Poster
Rep: Reputation: Disabled
Thanks for the responses. I thought about @enorbet's comment. I don't usually mess with the kernel. The kernel I was on was 5.15.19. I don't know how old that is exactly because I don't keep track of them. Since I haven't tried updating a kernel before (I've just had them commented out on the blacklist), I tentatively attempted an update. I'm on 5.15.145 now. I still have the KDE hang when I log off a user on the Slackware partition, but I can connect with the NTFS partition after logging out and logging back in.

To reply to some of the other comments, it seemed at the time I set up Slackware (around 2018), I needed to use NTFS-3g. I am running 15.0 (installed as soon as stable was out), but I kept using NTFS-3g because I thought that was still necessary. I hadn't touched the fstab since.

If I run into the problem again, I'll change the fstab to just "ntfs".

Thanks again, everyone!
 
  


Reply

Tags
kde, ntfs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to log internal-sftp chroot jailed users access log to /var/log/sftp.log file LittleMaster Linux - Server 0 09-04-2018 03:45 PM
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM
got my ntfs sata drive to mount but cat get to auto mount Jack Daniels Linux - Hardware 3 04-15-2007 10:42 AM
Cant log out of window manager and log back into kde randrake Linux - General 4 08-11-2005 11:01 AM
NTFS (winxp) drive is accessible only by root, why NTFS (winxp) drive not accessible Samppa72 Linux - Software 1 07-26-2004 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration