Hi,
Sorry about delay in replying.
I am CC:-ing ntfs-user as other people may run into this problem and
would want to have the answer in the archives. Hope you don't mind.
On Thu, 2005-06-23 at 10:21 -0700, farmer dude wrote:
[snip]
> I'm using the 2.4.30 kernel from kernel.org and I look
> to apply the last 2.4 NTFS driver patch from
> sourceforge. When I use 'patch -p1 < XXX' it works,
> with a few prompts about recursion (indicating bits of
> the patch have already worked themselves into the code
> I think).
>
> My question is when I go to mount the file system
> using;
> mount -t ntfs -o rw /dev/XXX /mnt/point
>
> It always mounts as R/O Module, so I can't overwrite
> an existing file (trying to wipe pagefile.sys with
> 'dd' and same number of bytes, as I've learned you can
> write to same size file).
>
> What has gone wrong in trying to mount ntfs fs as r/w?
Are you sure the driver is compiled with r/w support?
Type: "dmesg | grep NTFS" and it will tell you if the driver is compiled
r/o or r/w.
Assuming it is r/w then the mount should succeed. Again after mounting
run: "dmesg | tail" and you will see any error messages it output if it
failed to mount r/w.
Assuming that worked, you cannot use dd just like that on a file as it
tries to truncate the file to 0 size first and then extend it again.
You need to use the notrunc conv option to dd, instead of "dd in=blah
of=pagefile.sys ..." use "dd conv=notrunc if=blah of=pagefile.sys ..."
and it should now definitely work.
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/
|