LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-21-2005, 03:16 PM   #1
boxxa
LQ Newbie
 
Registered: Aug 2005
Posts: 17

Rep: Reputation: 0
NTFS Read Only?


I am using Suse 9.3 pro and it detected my 2 other hard drives running NTFS partitions but they are only read only.

How can I make them R/W by users?
 
Old 10-21-2005, 03:32 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
the NTFS driver that is included in the official linux kernel doesn't have very reliable write support, so by writing to an NTFS partition using linux you are taking a huge risk...

having said that, the first thing you wanna do is make sure your kernel was compiled with NTFS RW support (grep your config file for "NTFS")... if it wasn't, then you'll need to recompile your kernel... if it was, then it's just a matter of editing your /etc/fstab AFAIK...

BTW, there's a project somewhere which lets you use the OFFICIAL NTFS Windows driver from within Linux in order to get reliable NTFS-write support, but i can't rememeber what the project is called...

just my $0.02 cents...
 
Old 10-21-2005, 04:13 PM   #3
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Quote:
Originally posted by win32sux
BTW, there's a project somewhere which lets you use the OFFICIAL NTFS Windows driver from within Linux in order to get reliable NTFS-write support, but i can't rememeber what the project is called...
It's called Captive, but development stopped a few years ago, it uses the obsolete LUFS instead of FUSE, and may have security problems. Use at your own risk.

P.S. Also, it says that "ntfsmount" now has what is basically write support; I don't really know what that means though.
 
Old 10-21-2005, 06:47 PM   #4
boxxa
LQ Newbie
 
Registered: Aug 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by win32sux
the NTFS driver that is included in the official linux kernel doesn't have very reliable write support, so by writing to an NTFS partition using linux you are taking a huge risk...

having said that, the first thing you wanna do is make sure your kernel was compiled with NTFS RW support (grep your config file for "NTFS")... if it wasn't, then you'll need to recompile your kernel... if it was, then it's just a matter of editing your /etc/fstab AFAIK...

BTW, there's a project somewhere which lets you use the OFFICIAL NTFS Windows driver from within Linux in order to get reliable NTFS-write support, but i can't rememeber what the project is called...

just my $0.02 cents...

Can you explain the steps to check if its enabled in the kernel and if so what i need to add to the FStab?

I could have sworn it was enabled in the default build of SuSE so I think its just a matter of enabling it in the fstab which I dont knwo the correct entry.
 
Old 10-21-2005, 06:53 PM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
just grep the config file which was used to build your kernel... for example, mine looks like:
Code:
cat /boot/config | grep NTFS
CONFIG_NTFS_FS=m
# CONFIG_NTFS_RW is not set
which means i have ntfs support compiled as a module and i don't have write support...

as for the fstab, i think you just append the "rw" option to the fourth column in your ntfs partition's row...


Last edited by win32sux; 10-21-2005 at 06:55 PM.
 
Old 10-21-2005, 07:09 PM   #6
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
I don't think there is NTFS write support at all except for some very dangerous code in some ancient driver included in kernel 2.4 (see here). Practically, use Captive, or write to a FAT partition, or access your Linux partition from Windows with a selection of free programs and drivers.
 
Old 10-23-2005, 02:15 PM   #7
boxxa
LQ Newbie
 
Registered: Aug 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Code:
linux:/home/bryan # cat /boot/config-2.6.11.4-21.9-default | grep NTFS
CONFIG_NTFS_FS=m
# CONFIG_NTFS_DEBUG is not set
CONFIG_NTFS_RW=y
I thought it came compiled in the SuSE Pro kernel.

Thanks for the help guys.
 
Old 10-23-2005, 02:31 PM   #8
boxxa
LQ Newbie
 
Registered: Aug 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Ok. I am trying to modify the fstab file to enable writitng to the disk. here is what i have for the 2 NTFS hard drives. Can someone see why I still get permission denied?

Code:
/dev/hdb1            /windows/C           ntfs       rw,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdc1            /windows/D           ntfs       rw,users,gid=users,umask=0002,nls=utf8 0 0

Thanks
 
Old 10-23-2005, 04:46 PM   #9
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
hmmm, isn't the umask supposed to be set to something like 0222??

like: http://www.ubuntuguide.org/#windows

i'm not sure if that's the problem, though - i have no ntfs partition to test with...

PS: rememeber to re-mount or re-boot after editing your fstab...
 
Old 10-23-2005, 05:05 PM   #10
solveit
Member
 
Registered: Jan 2005
Posts: 83

Rep: Reputation: 15
I am using NTFS write according to this thread (post by "solveit" ) :

http://www.linuxquestions.org/questi...hreadid=362166

You should add a line like this to /etc/fstab :

/dev/sda2 /mnt/windows ntfs rw,defaults,umask=0222 0 0
 
Old 10-24-2005, 02:21 AM   #11
boxxa
LQ Newbie
 
Registered: Aug 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by solveit
I am using NTFS write according to this thread (post by "solveit" ) :

http://www.linuxquestions.org/questi...hreadid=362166

You should add a line like this to /etc/fstab :

/dev/sda2 /mnt/windows ntfs rw,defaults,umask=0222 0 0

Changed the fstab to thta line and still only read only mounts.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
No way to read NTFS in Fedora? Beckerjr Fedora 4 04-06-2005 03:35 PM
read/write ntfs partitions!!!! mlu Linux - Software 2 01-20-2005 01:42 PM
Read NTFS from RED HAT 9.0 VincentB Linux - Newbie 2 06-25-2003 12:45 PM
why does my ntfs partition only read-only? kublador Linux - General 4 04-10-2003 12:50 PM
NTFS Read Write Snabber Linux - Newbie 1 12-23-2002 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 11:54 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