Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-06-2005, 03:54 PM   #1
Registered: Oct 2003
Posts: 156

Rep: Reputation: 15
/etc/fstab NTFS filesystem

Debian Woody OS.

Have some general questions about fstab file.
Here is mine as follows

# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda1 / ext2 errors=remount-ro 0 1
/dev/hda2 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0
/dev/hdc1 /mnt/data1 ntfs ro,umask=0277,uid=mario,gid=mario 0 0
/dev/hdc5 /mnt/data2 ntfs ro,umask=0277,uid=mario,gid=mario 0 0
/dev/hdc6 /mnt/data3 ntfs ro,umask=0277,uid=mario,gid=mario 0 0

I added the last three lines to auto mount my NTFS partions , per the following FAQ (

My question is why (or do I need to) use the read only option when I am specifying umask. My objective is only to have the user mario and root be able to access this file system. mario is part of the group mario. Is my syntax correct?

I have also read in the debian man pages for mount, that the uid, and gid have no use. But following that above tutorial, it seems necessary to mount my NTFS partion so only mario has access. I am correct?

Thx in advance,

Old 02-06-2005, 07:10 PM   #2
Registered: Feb 2005
Distribution: Fedora Core 3 (2.6.10_1.741)
Posts: 72

Rep: Reputation: 15
Re: /etc/fstab NTFS filesystem

uid= USER ID

This should be an integer hopefully. This option (or the 'users' option) needs to be specificed if you want to be able to access it from your regular old user account. Why you ask?

Well when you mount something, you need to use root, so it automatically assigns the ownership to the user mounting it. You don't need the group ID unless you have more than one user accessing the drives.

(uid=mario shouldn't work, it requires an actual user number)

# id -u mario

To find the actual ID of the user mario.

Last edited by Ace07; 02-06-2005 at 07:13 PM.
Old 02-06-2005, 07:21 PM   #3
Registered: Oct 2003
Posts: 156

Original Poster
Rep: Reputation: 15
Thx for the feedback.

My biggest question is how should the syntax look, to reach my objective of mounting the ntfs partition and only allowing root or user mario access.

The mount command actually works with the uid=mario, i have since changed it to the uid=#, to clean it up.

After investigating further it seems as if, all I need to have for my options are,

mount /dev/hdc1 /mnt/data1 -t ntfs -o umask=377,uid=<#>

this will allow user only read access. Does that seem correct to you? Or should I include some other parameters?

My second question is, I want to have this drive (NTFS) in my linux box so it can act as a file server. I will want to add more data to these partitions. Am I SOL, because I have recently read that linux does not have NTFS write support (you can write, but its not safe?). Is this correct?
Old 02-06-2005, 08:25 PM   #4
Registered: May 2003
Location: Sydney, Australia
Distribution: Debian
Posts: 67

Rep: Reputation: 15
Before u can write to a NTFS file system u need ur kernel to support that. In the kernel under file systems there is an option where u can enable NTFS write support. It says it is not safe to write to a ntfs file system and i haven't tried to confirm how it works. But u will need to enable NTFS write support if u are do go anywhere with writing to ur mounted ntfs drives.

Good luck
Old 02-07-2005, 12:48 AM   #5
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,329

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
AFAIK, NTFS write is still "EXPERMENTAL", so make sure you have backups ....


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
write permissions in /etc/fstab for vfat filesystem btb Linux - Newbie 5 10-24-2005 02:37 PM
'specify the filesystem type' shouldn't appear if set to 'auto' in fstab. ExCIA Linux - Newbie 4 05-22-2005 10:58 AM
How to add remote filesystem to fstab donbellioni Linux - Networking 3 08-16-2004 05:19 PM
Using fstab to mount a filesystem in multiple places cav Linux - General 3 02-09-2004 03:42 PM
Mounting NFS filesystem fstab vs autofs rrich100 Linux - Networking 0 11-13-2003 02:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:25 AM.

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