* NTFS forced dirty mount in read/write mode?
[not found] <78b577ee05041912127e8d0199@mail.gmail.com>
@ 2005-04-21 14:55 ` Digital Parasite
2005-04-21 15:27 ` Anton Altaparmakov
2005-04-22 12:37 ` Yura Pakhuchiy
0 siblings, 2 replies; 3+ messages in thread
From: Digital Parasite @ 2005-04-21 14:55 UTC (permalink / raw)
To: linux-fsdevel
Hello,
I am using a Linux 2.6.11 based system and love the ability for the
new NTFS driver to mount the file-system as read/write.
The problem that I am having is if I mount an NTFS partition, then the
machine loses power or the machine is rebooted without explicitly
unmounting the partition, I can then only mount it as read-only and
get the message:
"NTFS-fs error (device hda1): load_system_files(): Volume is dirty..."
That is even if all I do is mount the filesystem but do not perform
any reads/writes, and the system gets rebooted.
Is there any way to force Linux to mount the partition read/write even
though it is dirty? I am not be able to boot into Windows to run
chkdsk from there to correct the problem so what are my options?
Since there is no way to add or remove files on an NTFS filesystem
with the curren driver, only update the contents of existing files, is
it even a problem for the volume to be dirty? Nothing in the volume
bitmap would be changing right?
If it was possible to force a read/write mount when the volume is
dirty, when you then unmounted the system, would it bring the log
files back into sync so it would no longer be dirty? By dirty, I'm
guessing there is some discrepency between the primary and backup NTFS
bitmap/log files right?
Thanks in advance,
DP
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: NTFS forced dirty mount in read/write mode?
2005-04-21 14:55 ` NTFS forced dirty mount in read/write mode? Digital Parasite
@ 2005-04-21 15:27 ` Anton Altaparmakov
2005-04-22 12:37 ` Yura Pakhuchiy
1 sibling, 0 replies; 3+ messages in thread
From: Anton Altaparmakov @ 2005-04-21 15:27 UTC (permalink / raw)
To: Digital Parasite; +Cc: linux-fsdevel
On Thu, 2005-04-21 at 10:55 -0400, Digital Parasite wrote:
> Hello,
>
> I am using a Linux 2.6.11 based system and love the ability for the
> new NTFS driver to mount the file-system as read/write.
>
> The problem that I am having is if I mount an NTFS partition, then the
> machine loses power or the machine is rebooted without explicitly
> unmounting the partition, I can then only mount it as read-only and
> get the message:
>
> "NTFS-fs error (device hda1): load_system_files(): Volume is dirty..."
>
> That is even if all I do is mount the filesystem but do not perform
> any reads/writes, and the system gets rebooted.
>
> Is there any way to force Linux to mount the partition read/write even
> though it is dirty? I am not be able to boot into Windows to run
> chkdsk from there to correct the problem so what are my options?
>
> Since there is no way to add or remove files on an NTFS filesystem
> with the curren driver, only update the contents of existing files, is
> it even a problem for the volume to be dirty? Nothing in the volume
> bitmap would be changing right?
>
> If it was possible to force a read/write mount when the volume is
> dirty, when you then unmounted the system, would it bring the log
> files back into sync so it would no longer be dirty? By dirty, I'm
> guessing there is some discrepency between the primary and backup NTFS
> bitmap/log files right?
No, it is not possible to do that. Sorry.
You can edit the source to disable the dirty check and then it will work
but I would not recommend this. The ntfs driver depends on chkdsk to
fix problems when the volume is dirty before it mounts read-write.
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: NTFS forced dirty mount in read/write mode?
2005-04-21 14:55 ` NTFS forced dirty mount in read/write mode? Digital Parasite
2005-04-21 15:27 ` Anton Altaparmakov
@ 2005-04-22 12:37 ` Yura Pakhuchiy
1 sibling, 0 replies; 3+ messages in thread
From: Yura Pakhuchiy @ 2005-04-22 12:37 UTC (permalink / raw)
To: Digital Parasite; +Cc: linux-fsdevel
[-- Attachment #1: Type: text/plain, Size: 537 bytes --]
On Thu, 2005-04-21 at 10:55 -0400, Digital Parasite wrote:
> Is there any way to force Linux to mount the partition read/write even
> though it is dirty? I am not be able to boot into Windows to run
> chkdsk from there to correct the problem so what are my options?
I tried to submit such patch half of year ago. But Anton declined it, so
I use it locally. My patch in attachment, feel free to use if you need.
But as Anton already said it's not safe to force read-write mount, so
beware of data loss.
--
Best regards,
Yura
[-- Attachment #2: force_rw.patch.bz2 --]
[-- Type: application/octet-stream, Size: 1787 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-04-22 12:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <78b577ee05041912127e8d0199@mail.gmail.com>
2005-04-21 14:55 ` NTFS forced dirty mount in read/write mode? Digital Parasite
2005-04-21 15:27 ` Anton Altaparmakov
2005-04-22 12:37 ` Yura Pakhuchiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).