LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-18-2008, 03:31 PM   #1
knightfox
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Rep: Reputation: 0
Mounting NTFS partitions


Hi guys,
I am using Opensuse 11 and this is my fstab file.How should i modify it to have read/write permissions for the ntfs partitions.Also it ll be of great help if anyone can point me the use of umask,fmask and dmask...Thanks in advance..


/dev/disk/by-id/scsi-SATA_SAMSUNG_SP4002H0524J1FTB12125-part9 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_SAMSUNG_SP4002H0524J1FTB12125-part10 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_SAMSUNG_SP4002H0524J1FTB12125-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_SAMSUNG_SP4002H0524J1FTB12125-part5 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_SAMSUNG_SP4002H0524J1FTB12125-part6 /windows/E vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/disk/by-id/scsi-SATA_SAMSUNG_SP4002H0524J1FTB12125-part7 /windows/F ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_SAMSUNG_SP4002H0524J1FTB12125-part8 /windows/G ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
 
Old 11-19-2008, 05:58 AM   #2
amphibioustoaster
LQ Newbie
 
Registered: Dec 2006
Location: Somwhere
Distribution: Ubuntu Linux 8.10 Intrepid Ibex
Posts: 15

Rep: Reputation: 0
Edit: I'm thinking from when, back in the day, ntfs-3g was read only by default (or something). The guy below me is probably right.
My fstab has the following at the top:
Code:
ab@awesomebook:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
etc...
I believe, to enable read-write, you simply add rw to the end of the <options> bit. So, for example:
Code:
/dev/disk/by-id/scsi-SATA_SAMSUNG_SP4002H0524J1FTB12125-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8,rw 0 0
I'm not 100% sure about this though, and i don't have any NTFS partitions (I'm on a Mac, with ext3, ext2 and hfsplus) to test it. Give it a try, though.

It's probably important to note that if read/write isn't enabled by default, there's probably a reason, however I've never had trouble in my limited experience with NTFS.

As for the *mask things, I'm not sure, but they look like 3-digit octal numbers, which makes me think of Unix permissions.

Last edited by amphibioustoaster; 11-19-2008 at 07:05 AM.
 
Old 11-19-2008, 06:53 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Do you want read/write permission for yourself or anyone?

Since you are a member of the group "users", and you used that for the "gid=" option, use "fmask=117,dmask=007" to allow read/write access for the "users" group.

The first thing I did in SuSE however was to add a group of the same name as my username and made that my default group.

The way I would give myself write access is:
Code:
/dev/disk/by-id/scsi-SATA_SAMSUNG_SP4002H0524J1FTB12125-part1 /windows/C ntfs-3g user,uid=knightfox,fmask=117,dmask=007,locale=en_US.UTF-8 0 0
The uid option make the user "knightfox" the owner. The fmask allows read/write access to files. The dmask needs to allow the "x" bit on directories to allow you to enter directories.
 
  


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
NTFS partitions mounting problem Prasanna Rajaram Fedora 9 02-12-2008 09:55 PM
Trouble mounting 2 NTFS partitions balls Linux - Desktop 4 08-15-2007 10:46 PM
mounting NTFS partitions on Ubuntu JulienPDX Ubuntu 13 09-07-2006 12:29 AM
Mounting NTFS-partitions Zmyrgel Linux - Newbie 4 01-27-2006 06:06 PM
Mounting NTFS Partitions TheMad Slackware 8 01-21-2003 06:16 PM


All times are GMT -5. The time now is 12:56 AM.

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