[Solved] How to mount a NTFS partition if it not "clean"
-
- Posts: 76
- Joined: 2013-12-22 15:50
- Been thanked: 1 time
[Solved] How to mount a NTFS partition if it not "clean"
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?
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.
- sunrat
- 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"
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!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
-
- Posts: 76
- Joined: 2013-12-22 15:50
- Been thanked: 1 time
Re: Mount if not "clean"
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.
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.
- 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"
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.
-
- 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"
Hello @audiolover,
Please change the subject of the first post to more accurately reflect its content, in the interest of other users; i.e. :
Please change the subject of the first post to more accurately reflect its content, in the interest of other users; i.e. :
Thanks.How to mount a NTFS partition if it not "clean"
-
- Posts: 76
- Joined: 2013-12-22 15:50
- Been thanked: 1 time
Re: How to mount a NTFS partition if it not "clean"
. "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
That would be good, it is a music database and editing is not done from within Debian
-
- Posts: 76
- Joined: 2013-12-22 15:50
- Been thanked: 1 time
Re: How to mount a NTFS partition if it not "clean"
We are now testing if this works: wake up Debian from hibernation. Maybe the NTFS drive will mount correctly.
Re: How to mount a NTFS partition if it not "clean"
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.
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.
-
- Posts: 76
- Joined: 2013-12-22 15:50
- Been thanked: 1 time
-
- Posts: 76
- Joined: 2013-12-22 15:50
- Been thanked: 1 time
Re: How to mount a NTFS partition if it not "clean"
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.
The Windows pc has nothing to do with this issue.
-
- Posts: 76
- Joined: 2013-12-22 15:50
- Been thanked: 1 time
Re: How to mount a NTFS partition if it not "clean"
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
- 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"
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.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
-
- 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"
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.
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.
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
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
-
- Posts: 76
- Joined: 2013-12-22 15:50
- Been thanked: 1 time
Re: SOLVED..How to mount a NTFS partition if it not "clean"
Somehow a bios update solved the problem.
No idea what setting/update caused the issue
No idea what setting/update caused the issue
-
- 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"
This is a very unusual finding.audiolover wrote: 2024-07-24 03:43 Somehow a bios update solved the problem.
No idea what setting/update caused the issue
note: I replaced the [Solved] tag in the first post.