LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2008, 09:36 AM   #1
knightfox
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Rep: Reputation: 0
Unhappy Can we write files to ntfs partitions from linux???


Hello guys,
I am using Opensuse 11 linux.I have also winxp as another OS.I have 4 ntfs partitons,1 vfat partition,and 1 ext3 with linux installed.But i am not able to write to NTFS partitions.Why is it so? Cant i write files to NTFS partitions?IS there ne way to do it??Please do reply....
Thanks in advance.......
 
Old 07-18-2008, 10:03 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,926

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by knightfox View Post
Hello guys,
I am using Opensuse 11 linux.I have also winxp as another OS.I have 4 ntfs partitons,1 vfat partition,and 1 ext3 with linux installed.But i am not able to write to NTFS partitions.Why is it so? Cant i write files to NTFS partitions?IS there ne way to do it??Please do reply....
Thanks in advance.......
Yes, we can. A quick Google search turns up:

http://bisqwit.iki.fi/story/howto/ntfs/
http://ubuntuforums.org/showthread.php?t=217009

Essentially, if you've got NTFS support in your system (haven't tried on OS11, no windows stuff to try it on), you should be able to specify the filesystem type as ntfs (check the first link).
 
Old 07-18-2008, 12:43 PM   #3
leamassiot
Member
 
Registered: Dec 2005
Location: France
Distribution: Debian
Posts: 123

Rep: Reputation: 17
Hi,

I'll tell you what I did to do so.

- I created a directory. For example:
Code:
$ mkdir /root/ntfs_mount_point
- Then, I executed the following command:
Code:
$ mount -t ntfs /dev/sda1 /root/ntfs_mount_point
The only tricky point for me is to find the proper partition to mount (here: /dev/sda1).

- After doing that, I was able to edit and update files from the ntfs partition.
 
Old 07-18-2008, 01:19 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Any modern Linux distro will support NTFS read and write.

I prefer to keep all data on shared ext3 partitions. On the (very rare) occassions that I use Windows, I use the ext2fsd driver (installed in Windows) to access the ext3 partitions.
 
Old 07-20-2008, 12:08 PM   #5
leamassiot
Member
 
Registered: Dec 2005
Location: France
Distribution: Debian
Posts: 123

Rep: Reputation: 17
To choose the partition to mount, one should have a look at the /proc/partitions file.

For example:

Code:
$ vim /proc/partitions

major minor  #blocks  name

   8     0   58605120 sda
   8     1   37094053 sda1
   8     2   20571232 sda2
   8     3          1 sda3
   8     5     939771 sda5
 
Old 07-22-2008, 11:50 AM   #6
leamassiot
Member
 
Registered: Dec 2005
Location: France
Distribution: Debian
Posts: 123

Rep: Reputation: 17
My contribution was not so accurate because I can't create directories nor copy files to the Windows partition. It is like a readonly partition...
Strange because, I am logged as root and, if I do a little "ls -al", the owner of the directory in which I want to write is "root" and he can read, write and execute... Why can't I write to the Windows partition?
 
Old 07-22-2008, 11:56 AM   #7
leamassiot
Member
 
Registered: Dec 2005
Location: France
Distribution: Debian
Posts: 123

Rep: Reputation: 17
And "fdisk -l" is better to select the Windows partition.
 
Old 07-30-2008, 10:41 AM   #8
knightfox
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Original Poster
Rep: Reputation: 0
guys..but as root am able to write files to ntfs partitions,y is it so???
 
Old 07-30-2008, 10:42 AM   #9
knightfox
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Original Poster
Rep: Reputation: 0
wen i tried ur method, it was saying the partitions are already mounted
 
Old 07-30-2008, 11:15 AM   #10
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
You need to install fuse and ntfs-3g.
 
Old 07-30-2008, 11:52 AM   #11
Suicidal9090
LQ Newbie
 
Registered: Apr 2007
Location: Hamilton, Ontario
Distribution: BSD 7.0 / BT 3.0
Posts: 28

Rep: Reputation: 15
Quote:
Originally Posted by knightfox View Post
Hello guys,
I am using Opensuse 11 linux.I have also winxp as another OS.I have 4 ntfs partitons,1 vfat partition,and 1 ext3 with linux installed.But i am not able to write to NTFS partitions.Why is it so? Cant i write files to NTFS partitions?IS there ne way to do it??Please do reply....
Thanks in advance.......
have you tried installing samba? I dont know if its available for your OS but i assume theres a way... I can copy files from a normal NTFS partition right to my ext3 partition. works fine - never had a problem

you could always try to make the file on your ext3 partition, then just copy it over with samba.

hope this helped!

Last edited by Suicidal9090; 07-30-2008 at 11:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any Linux LIVE CD/DVD that permits Read/Write on NTFS partitions? Pls Help! prashb Linux - Newbie 11 07-20-2008 05:14 AM
how i can write on NTFS partitions gomaa86 Linux - Software 2 01-26-2008 09:01 AM
read/write ntfs partitions!!!! mlu Linux - Software 2 01-20-2005 02:42 PM
Can Linux write to NTFS windows partitions? Stevetgn Linux - General 12 02-04-2004 06:00 AM
what's the reason why Linux can't write on NTFS partitions? DaDdY SnEb Linux - General 10 09-06-2002 01:21 PM


All times are GMT -5. The time now is 06:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration