LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2023, 04:43 AM   #1
progCan
LQ Newbie
 
Registered: Nov 2023
Location: the chair in front of my computer, i live there.
Distribution: Debian 12 With KDE Plasma 5.27.5 (raspberry pi os with KDE Plasma on my raspberry pi 5)
Posts: 7

Rep: Reputation: 0
Angry Trying to mount a hard drive on debian 12 kde plasma 5.27.5 gives error "Filesystem type ntfs3,ntfs not configured in kernel."


Hello, i am dual booting windows 10 and debian 12 kde plasma 5.27.5, but when i try to mount a hard drive that windows uses (its not where windows is installed but i used the drive with windows) it gives an error:
"An error occurred while accessing '[disk name]', the system responded: The requested operation has failed: Error mounting /dev/sda2 at /media/progcan/[disk name]: Filesystem type ntfs3,ntfs not configured in kernel"
i have ntfs-3g, libfsntfs-utils, and libfsntfs1 packages installed and it still gives this error. It used to be able to easily mount the hard drive but recently idk what happened but it started giving that error. Any help would be appreciated!
 
Old 11-17-2023, 05:15 AM   #2
progCan
LQ Newbie
 
Registered: Nov 2023
Location: the chair in front of my computer, i live there.
Distribution: Debian 12 With KDE Plasma 5.27.5 (raspberry pi os with KDE Plasma on my raspberry pi 5)
Posts: 7

Original Poster
Rep: Reputation: 0
UPDATE: OH GOD NO. I remembered that i used kde partition manager to shrink the drive a bit. NOW IT SAYS THE DRIVE IS RAW, EVEN IN WINDOWS. I have stuff i cant lose there, HOW CAN I FIX IT PLEASE? btw windows 10 asks me to format it (what is wrong with you windows lol) at least it isnt the drive i have windows installed on. but its the drive i have linux on. what am i gonna doooo?? PLEASE HELP ME
also i shrinked a partition but it still had like 50 gb left to it, so i am sure i didnt somehow overshrink it.
EDIT: linux works well tough, i think the problem is eiher with windows or the partition it uses (which i have important stuff on)

Last edited by progCan; 11-17-2023 at 05:33 AM. Reason: linux works well??
 
Old 11-17-2023, 05:46 AM   #3
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
The Usual Tool...

If necessary you can use TestDisk to find and restore your partition table. TestDisk is on many help compilations you may download.

Best practice is to make a clone copy of the problem hdd and work with the copy

In passing, is this an occasion to emphasize the usefulness of backup?
 
Old 11-17-2023, 06:32 AM   #4
progCan
LQ Newbie
 
Registered: Nov 2023
Location: the chair in front of my computer, i live there.
Distribution: Debian 12 With KDE Plasma 5.27.5 (raspberry pi os with KDE Plasma on my raspberry pi 5)
Posts: 7

Original Poster
Rep: Reputation: 0
hello everyone, i researched my problem a bit and some people say i should do a disk check. is it safe on a drive that windows 10 recognizes RAW, and will it format the drive with or without asking to check it?
 
Old 11-17-2023, 07:48 AM   #5
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by progCan View Post
hello everyone, i researched my problem a bit and some people say i should do a disk check. is it safe on a drive that windows 10 recognizes RAW, and will it format the drive with or without asking to check it?
NO NO NO

Make an image copy of the disk, perform the actions suggested above on that copy.

Anything that writes to the disk may cause further problems and without a copy you would then be totally lost.
 
Old 11-17-2023, 09:31 AM   #6
progCan
LQ Newbie
 
Registered: Nov 2023
Location: the chair in front of my computer, i live there.
Distribution: Debian 12 With KDE Plasma 5.27.5 (raspberry pi os with KDE Plasma on my raspberry pi 5)
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
NO NO NO

Make an image copy of the disk, perform the actions suggested above on that copy.

Anything that writes to the disk may cause further problems and without a copy you would then be totally lost.
oh ok, good thing i didnt chkdsk already. i'll update when i do what i can
 
Old 11-17-2023, 10:04 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
As far as I know ntfs3 is not enabled in the debian 12 kernel by default. I have not paid much attention if it is enabled in testing or unstable. What kernel are you running?

https://bugs.debian.org/cgi-bin/bugr...cgi?bug=998627

I believe all the tools still use ntfs-3g so KDE's partition manager should be able to resize NTFS successfully. I don't use KDE. Technically it is a two stage process, the first is to shrink the filesystem and then shrink the partition. There is also the possibility that you resized the partition while the filesystem was hibernated and not fully shutdown. I don't know if that could corrupt the filesystem but it isn't a good idea. Is the drive internal or external?

I agree with creating an image of the filesystem and then see what happens if you try mounting using ntfs-3g i.e.
mount -t ntfs-3g /dev/sdxy
 
Old 11-17-2023, 10:07 AM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,691
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
"External or Foreign" filesystem support is usually provided by a loadable kernel module – which is part of an optional "package" that you can install for your distro. When this is done, Linux will know how to recognize the filesystem and automagically load the necessary module.
 
Old 11-17-2023, 10:26 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
As of kernel 5.15 there is a real kernel NTFS module. Can you claim that NTFS is still a foreign filesystem?

I don't know why the system would be trying to use ntfs3 versus ntfs-3g.
 
Old 11-25-2023, 02:28 AM   #10
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
Quote:
Originally Posted by progCan View Post
...idk what happened but it started giving that error
So shrinking the drive a bit using kde partition manager caused it?
 
Old 11-25-2023, 04:38 AM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,573

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
Quote:
So shrinking the drive a bit using kde partition manager caused it?
That's speculative but first 'a bit' would need to be defined and more details about what exactly was done. What the OP reports from windows asking him to format is usually seen when a non-windows filesystem is detected. The OP might have inadvertently formatted it or as suggested above, left it in a hibernated state while modifying the partition. Other possibilities come to mind and this is one reason why when using a windows fs, you should modify it from windows and it is generally suggested running chkdsk immediately on reboot when making changes to partitions. Of course, one would have a backup of important data before doing any of this.
 
2 members found this post helpful.
  


Reply

Tags
corrupted, debian 12, kde plasma 5, ntfs, ntfs3g



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
Kernel 5.15 : ntfs3 vs ntfs-3g burdi01 Slackware 33 08-16-2022 11:27 AM
Using the new kernel 5.15 ntfs3 driver? Daedra Slackware 1 11-04-2021 02:56 PM
LXer: Paragon’s NTFS3 Driver is About to Become A Part of the Linux Kernel LXer Syndicated Linux News 0 08-06-2021 09:33 PM
mount partition type 'fd' fails with " unknown filesystem type 'linux_raid_member'" Michael AM Linux - Software 15 06-19-2013 03:51 PM
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:46 PM.

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