LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-27-2005, 01:39 AM   #1
raynet
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Rep: Reputation: 15
NTFS write?


Hello,
I know it is OK to read NTFS partition on linux.
How about write?
Is it safe to make write operation of NTFS on linux now?

Also, I would like to know how to mount NTFS partition?(I don't know the file system type in mount option).

If it is not safe to write, how to mount the NTFS partition to read only?(in case some programs want to write things, the system will aborted it)

thx
 
Old 01-27-2005, 01:49 AM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Writing to NTFS is still experimental. Don't do it if there's anything you can't afford to lose.

To mount an ntfs partition as read only:
Code:
mount -t ntfs -o ro /dev/hda1 /mnt/ntfs_partition
You'll need to change what's in red to match your specific device, and where you want to mount the drive at.

NOTE: You will need NTFS filesystem support in your kernel (either built-in or as a module) to mount an NTFS partition. Otherwise, you will receive an error message "filesystem NTFS is not supported". You'll have to recompile your kernel to add it in if you don't have it. There is plenty of documentation available about recompiling a kernel if you don't have it, and your situation requires access to that data.

Last edited by Dark_Helmet; 01-27-2005 at 01:52 AM.
 
Old 01-27-2005, 01:50 AM   #3
jrtayloriv
Member
 
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 366
Blog Entries: 1

Rep: Reputation: 44
captive-ntfs

captive ntfs might be what you need.

get it at http://www.jankratochvil.net/project/captive/

hope this helps,
jrtayloriv
 
Old 01-27-2005, 10:11 AM   #4
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
Good link
 
Old 01-27-2005, 11:18 AM   #5
raynet
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Original Poster
Rep: Reputation: 15
Re: captive-ntfs

Quote:
Originally posted by jrtayloriv
captive ntfs might be what you need.

get it at http://www.jankratochvil.net/project/captive/

hope this helps,
jrtayloriv
thx
But is it safe to write?
 
Old 01-27-2005, 02:01 PM   #6
EOHooligan
Member
 
Registered: Jan 2005
Location: California
Distribution: Slackware 10
Posts: 70

Rep: Reputation: 15
Re: Re: captive-ntfs

Quote:
Originally posted by raynet
thx
But is it safe to write?
It's best to avoid it if at all possible. If you're just transferring data from Linux to Windows, the best thing to do is to create a FAT32 partition that both windows and Linux can read/write to
 
Old 01-27-2005, 02:30 PM   #7
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
^^ Agreed

Fat32 might be the way to go.
 
Old 01-27-2005, 08:19 PM   #8
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
As others have mentioned, writing under NTFS is strictly experimental: Use at your own risk. Sharing a common FAT32 partition is a simple and proven approach to allow you to transfer a given file between systems.

Regardless, keep in mind that while OS-neutral file types will be usable under both systems (eg, .html files, .txt files, .jpg, etc), OS-specific file types won't be usable under the "other" OS (eg, an .exe file won't run under Linux, and a .tgz or .rpm file won't be recognized by Windows). Additionally, Windows has no concept of *Nix file permissions, which may or may not be a factor. -- J.W.
 
Old 01-27-2005, 08:46 PM   #9
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
I personally haven't run into any permission errors I have downloaded exe in linux and then run them in windows. I made mp3 in both windows and linux and no problems there. But also I don't have anything I need to lock down or worry about.
 
Old 01-27-2005, 09:39 PM   #10
spaaarky21
Member
 
Registered: Jun 2004
Location: Omaha, NE
Distribution: Ubuntu 7, Fedora Core 4
Posts: 192

Rep: Reputation: 30
Re: Re: captive-ntfs

Quote:
Originally posted by raynet
thx
But is it safe to write?
Captive is safe for NTFS writing because it uses the NTFS files from Windows itself (sort of a WINE-style emulation type of thing.) Read the Captive FAQ.
 
Old 01-28-2005, 07:41 AM   #11
jrtayloriv
Member
 
Registered: Jun 2004
Location: Inland NW, US
Distribution: Ubuntu
Posts: 366
Blog Entries: 1

Rep: Reputation: 44
Yes spaaarky is correct, captive is safe. The only unsafe/experimental write support is the ntfs write support built into the kernel.

good luck,
jrtayloriv
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write on NTFS ? TigerLinux Linux - Newbie 9 12-07-2005 06:14 PM
HELP: NTFS write! kevingpo Linux - Newbie 10 12-11-2004 08:43 AM
write to ntfs paulmedic555 Linux - Newbie 10 11-22-2004 10:04 AM
how do i write to NTFS zaicheke Slackware 7 07-25-2004 07:28 PM
Why can't we write to NTFS? rmdl Linux - Newbie 3 03-11-2004 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration