[Solved] How to mount a NTFS partition if it not "clean"

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
audiolover
Posts: 76
Joined: 2013-12-22 15:50
Been thanked: 1 time

[Solved] How to mount a NTFS partition if it not "clean"

#1 Post by audiolover »

My nvme storage, formatted NTFS, is sometimes not mounted because it is "not clean". A restart solves the problem so it does not happen all the time.

Can I force it to be mounted, even if it is not clean?
Maybe by adding something in fstab where it is mounted?
Last edited by audiolover on 2024-07-24 03:41, edited 2 times in total.

User avatar
sunrat
Site admin
Site admin
Posts: 7454
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 135 times
Been thanked: 665 times

Re: Mount if not "clean"

#2 Post by sunrat »

Is it happening after booting Windows? Maybe you need to disable Windows Fast Startup.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

audiolover
Posts: 76
Joined: 2013-12-22 15:50
Been thanked: 1 time

Re: Mount if not "clean"

#3 Post by audiolover »

I run Debian, not Windows. It is NTFS because it is a shared drive.
It happens at the beginning of the boot sequence, my PC boots from a different drive and then tries to mount the nvme storage drive.
That is when the "not clean" message appears.

User avatar
pbear
Posts: 526
Joined: 2023-08-27 15:05
Location: San Francisco
Has thanked: 2 times
Been thanked: 84 times

Re: Mount if not "clean"

#4 Post by pbear »

audiolover wrote: 2024-07-14 23:16 It is NTFS because it is a shared drive.
Shared with what or whom? An NTFS partition shared with Windows will be placed in a semi-hibernation state at shutdown if Fast Startup is enabled, hence sunrat's question. FWIW, I'm inclined to think that's not the problem here, as no number of reboots in Linux will clear that condition (although the hiberfile can be removed manually in terminal). Rather, I think you have a file system problem. The best solution would be to run chkdsk, a Windows repair utility. If you don't have Windows on this machine, a Hiren's Boot CD can run the check. Alternatively, but not nearly as good. Linux has an ntfsfix command which can repair some issues (see man page for details).

As for the question asked, I'm not aware of an option to mount an unclean NTFS file system. A read-only mount might work, but I've no way to test.

Aki
Global Moderator
Global Moderator
Posts: 4178
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 123 times
Been thanked: 561 times

Re: Mount if not "clean"

#5 Post by Aki »

Hello @audiolover,

Please change the subject of the first post to more accurately reflect its content, in the interest of other users; i.e. :
How to mount a NTFS partition if it not "clean"
Thanks.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

audiolover
Posts: 76
Joined: 2013-12-22 15:50
Been thanked: 1 time

Re: How to mount a NTFS partition if it not "clean"

#6 Post by audiolover »

. "A read-only mount might work, but I've no way to test"

That would be good, it is a music database and editing is not done from within Debian

audiolover
Posts: 76
Joined: 2013-12-22 15:50
Been thanked: 1 time

Re: How to mount a NTFS partition if it not "clean"

#7 Post by audiolover »

We are now testing if this works: wake up Debian from hibernation. Maybe the NTFS drive will mount correctly.

cfb
Posts: 58
Joined: 2017-01-08 16:39
Been thanked: 5 times

Re: How to mount a NTFS partition if it not "clean"

#8 Post by cfb »

I think you misunderstood what "pbear" wrote. It has nothing to do with Debian Linux.
The problem is "Fast Startup" in Windows. When this feature is enabled, Windows does not really shut down but more or less simply hibernate, thus still having its NTFS partitions mounted. This might lead to Linux being unable to mount.
Just search for "Windows Fast Startup" and you will see how to disable it.

audiolover
Posts: 76
Joined: 2013-12-22 15:50
Been thanked: 1 time

Re: How to mount a NTFS partition if it not "clean"

#9 Post by audiolover »

Fast startup in Bios is disabled

audiolover
Posts: 76
Joined: 2013-12-22 15:50
Been thanked: 1 time

Re: How to mount a NTFS partition if it not "clean"

#10 Post by audiolover »

And the problem is that Debian is not mounting the NTFS partition, I am not on Windows with this PC.
The Windows pc has nothing to do with this issue.

audiolover
Posts: 76
Joined: 2013-12-22 15:50
Been thanked: 1 time

Re: How to mount a NTFS partition if it not "clean"

#11 Post by audiolover »

The problem already existed even before I connected to the partition from my Windows PC so the "fast startup" feature iin Windows was not the problem

User avatar
RedGreen925
Posts: 157
Joined: 2024-05-16 02:56
Has thanked: 1 time
Been thanked: 29 times

Re: How to mount a NTFS partition if it not "clean"

#12 Post by RedGreen925 »

audiolover wrote: 2024-07-18 09:20 The problem already existed even before I connected to the partition from my Windows PC so the "fast startup" feature iin Windows was not the problem
So from the very start of formatting the drive on Linux with THE most problematic file system for compatibility you have had problems? With it somehow never being connected to windows system before this, with the problem still present. But yet you persisted with using a file system you cannot mount on the drive instead of using something like fat or exfat if needing larger that 2TB file support which usually never has a problem. And can be shared just as easily between the systems then there is the absolutely zero effort made to even mount the damn thing in Windows and do a file system check to remove the unclean status so it will have some hope in hell to work.

CwF
Global Moderator
Global Moderator
Posts: 3201
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 66 times
Been thanked: 280 times

Re: How to mount a NTFS partition if it not "clean"

#13 Post by CwF »

If you ever get the partition 'clean', then step through the process manually to verify/vindicate Debian's handling of NTFS.

Boot clean with the drive NOT in fstab.
As a normal user verify the drive is present in /dev/disk/by-this-way-and-that/* <-- this is your 'what'
Mount manually.
I would mount the drive with systemd-mount without any declarations, or via the DE's method.

Code: Select all

systemd-mount what where
Test access.
Umount, reboot, repeat, confirm.

I use qcow2's formatted NTFS and pass them to windows as usb. I mount them as required in Debian vms via usb, sata, virtio scsi, whatever. Never had a NTFS problem caused/fixed by Debian. I would always 'fix' the drive in Windows and unmount it manually before shutting down.
Mottainai

audiolover
Posts: 76
Joined: 2013-12-22 15:50
Been thanked: 1 time

Re: SOLVED..How to mount a NTFS partition if it not "clean"

#14 Post by audiolover »

Somehow a bios update solved the problem.
No idea what setting/update caused the issue

Aki
Global Moderator
Global Moderator
Posts: 4178
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 123 times
Been thanked: 561 times

Re: SOLVED..How to mount a NTFS partition if it not "clean"

#15 Post by Aki »

audiolover wrote: 2024-07-24 03:43 Somehow a bios update solved the problem.
No idea what setting/update caused the issue
This is a very unusual finding.

note: I replaced the [Solved] tag in the first post.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply