From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anton Altaparmakov Subject: Re: NTFS forced dirty mount in read/write mode? Date: Thu, 21 Apr 2005 16:27:40 +0100 Message-ID: <1114097260.12751.36.camel@imp.csi.cam.ac.uk> References: <78b577ee05041912127e8d0199@mail.gmail.com> <78b577ee05042107552f5a9603@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from ppsw-2.csi.cam.ac.uk ([131.111.8.132]:3712 "EHLO ppsw-2.csi.cam.ac.uk") by vger.kernel.org with ESMTP id S261434AbVDUP1q (ORCPT ); Thu, 21 Apr 2005 11:27:46 -0400 To: Digital Parasite In-Reply-To: <78b577ee05042107552f5a9603@mail.gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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 (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/