Unix Technical Forum

Writing to a Windows partition

This is a discussion on Writing to a Windows partition within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi Is it possible to write to the windoes partition from Linux (Mandrake 9.2). The wimdows partition is WinXP ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 06:43 PM
Robert Cook
 
Posts: n/a
Default Writing to a Windows partition

Hi
Is it possible to write to the windoes partition from Linux (Mandrake 9.2).
The wimdows partition is WinXP NTFS.
Thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 06:43 PM
Dirk
 
Posts: n/a
Default Re: Writing to a Windows partition


"Robert Cook" <rc42@kent.ac.uk> wrote in message
news:bv2tm2$eel$2@athena.ukc.ac.uk...
> Hi
> Is it possible to write to the windoes partition from Linux (Mandrake

9.2).
> The wimdows partition is WinXP NTFS.
> Thanks


Yes. NTFS support is fixed and suitable support is in mandrake 9.2



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 06:45 PM
Mike H
 
Posts: n/a
Default Re: Writing to a Windows partition

Is NTFS support no longer regarded as "experimental"? From what I
understood in the fdisk man page recently, it supports ntfs v.4 (Win NT 4)
but not v.5 (W2K)

Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 06:46 PM
Sz. Csetey
 
Posts: n/a
Default Re: Writing to a Windows partition

Mike H <hanmjau@yahoo.com.au> wrote in message
> Is NTFS support no longer regarded as "experimental"?


It depends which NTFS driver you use. http://linux-ntfs.sourceforge.net/status.html

The rewritten NTFS driver is stable but its write features are quite restricted.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 06:46 PM
Richard Steven Hack
 
Posts: n/a
Default Re: Writing to a Windows partition

On Mon, 26 Jan 2004 22:47:09 +1100, "Dirk" <Dirk@DirkDiggler.Net>
wrote:

>"Robert Cook" <rc42@kent.ac.uk> wrote in message
>news:bv2tm2$eel$2@athena.ukc.ac.uk...
>> Hi
>> Is it possible to write to the windoes partition from Linux (Mandrake

>9.2).
>> The wimdows partition is WinXP NTFS.

>
>Yes. NTFS support is fixed and suitable support is in mandrake 9.2


No, it is not. NTFS Tools does not support writing to NTFS except in
"file overwrite", i.e., writing the same size file back in place.

To get write support, one needs the Captive utility which supposedly
wraps the Windows NTFS driver a la WINE (but doesn't do anything else
the NTFS Tools do, i.e., create and resize partitions). AFAIK,
Mandrake does not have this utility installed by default (or even on
the CDs AFAIK).

Red Hat 8.0-9.0 and Mandrake 9.1 binaries are here:
http://www.jankratochvil.net/project/captive/


--
Richard Steven Hack
"Whatever does not kill me makes me stronger" -
and YOU have not killed me!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 06:46 PM
Richard Steven Hack
 
Posts: n/a
Default Re: Writing to a Windows partition

On Tue, 27 Jan 2004 23:59:29 GMT, Mike H <hanmjau@yahoo.com.au> wrote:

>Is NTFS support no longer regarded as "experimental"?


Write support is not there except in "file overwrite", i.e. rewriting
the same size file in place. OP needs the Captive utility here
http://www.jankratochvil.net/project/captive/
for full read/write support, supposedly.


--
Richard Steven Hack
"Whatever does not kill me makes me stronger" -
and YOU have not killed me!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 06:47 PM
Douglas Mayne
 
Posts: n/a
Default Re: Writing to a Windows partition

On Wed, 28 Jan 2004 12:06:04 +0000, Richard Steven Hack wrote:

> On Mon, 26 Jan 2004 22:47:09 +1100, "Dirk" <Dirk@DirkDiggler.Net>
> wrote:
>
>>"Robert Cook" <rc42@kent.ac.uk> wrote in message
>>news:bv2tm2$eel$2@athena.ukc.ac.uk...
>>> Hi
>>> Is it possible to write to the windoes partition from Linux (Mandrake

>>9.2).
>>> The wimdows partition is WinXP NTFS.

>>
>>Yes. NTFS support is fixed and suitable support is in mandrake 9.2

>
> No, it is not. NTFS Tools does not support writing to NTFS except in
> "file overwrite", i.e., writing the same size file back in place.
>
> To get write support, one needs the Captive utility which supposedly
> wraps the Windows NTFS driver a la WINE (but doesn't do anything else
> the NTFS Tools do, i.e., create and resize partitions). AFAIK,
> Mandrake does not have this utility installed by default (or even on
> the CDs AFAIK).
>
> Red Hat 8.0-9.0 and Mandrake 9.1 binaries are here:
> http://www.jankratochvil.net/project/captive/
>

I have a related question.

Okay, assume somefile.txt resides on an NTFS partition. I have applied
the write patch here:
http://prdownloads.sourceforge.net/l...s-2.1.6a.patch

Some things work, but I can't get file-level overwrite to work. For
example, this snippet fails:

losetup /dev/loop2 somefile.txt
dd if=/dev/zero of=/dev/loop2


This does work, though:

losetup /dev/loop3 pagefile.sys
mkswap /dev/loop3
swapon /dev/loop3

Is the captive package required for file overwrite to work?

--
Perform sex? Uh, uh, I don't think I'm up to a performance,
but I'll rehearse with you, if you like.
http://www.imdb.com/title/tt0070707/quotes

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-17-2008, 06:51 PM
Richard Steven Hack
 
Posts: n/a
Default Re: Writing to a Windows partition

On Thu, 29 Jan 2004 10:38:53 -0700, Douglas Mayne
<doug@SLACKWARE-3.localnet> wrote:

>Okay, assume somefile.txt resides on an NTFS partition. I have applied
>the write patch here:
>http://prdownloads.sourceforge.net/l...s-2.1.6a.patch
>
>Some things work, but I can't get file-level overwrite to work. For
>example, this snippet fails:
>
> losetup /dev/loop2 somefile.txt
> dd if=/dev/zero of=/dev/loop2
>
>This does work, though:
>
> losetup /dev/loop3 pagefile.sys
> mkswap /dev/loop3
> swapon /dev/loop3
>
>Is the captive package required for file overwrite to work?


I couldn't say since I'm not using it, but my understanding is that
the Captive package is strictly for standard read/write to a file
support using the Windows NTFS driver. The file-level overwrite is in
the NTFS Project driver. And they don't involve the Captive utility
in their work AFAIK, so they can't depend on it.

I would imagine the second activity works because by doing a mkswap
you are changing that file into a Linux swap file and it is no longer
an NTFS file. I'm not familiar with the Linux loopback system to be
sure how that affects that.

Are you sure your permissions (Linux, not NTFS permissions) are set
correctly in the /etc/fstab for the NTFS partition?


--
Richard Steven Hack
"Whatever does not kill me makes me stronger" -
and YOU have not killed me!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com