Fedora Linux Support Community & Resources Center
Old 8th January 2012, 08:50 PM
bg3075 Offline
Registered User
Join Date: Apr 2009
Posts: 121
Edit fstab mount NTFS read-only

How does one edit /etc/fstab so that an NTFS drive will mount as Read-Only (my fstab below)? I would like to mount "UUID=01CCBCAD2A2F2A80 /media/WINXP_MCE2005" entry as Read-Only.
# /etc/fstab: static file system information.
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

tmpfs	/dev/shm	tmpfs	defaults	0	0
devpts	/dev/pts	devpts	gid=5,mode=620	0	0
sysfs	/sys	sysfs	defaults	0	0
proc	/proc	proc	defaults	0	0
#Entry for /dev/mapper/vg_fedora-lv_root :
UUID=c835be76-bf93-4186-8615-ecd7079d1814	/	ext4	defaults	1	1
#Entry for /dev/sdc1 :
UUID=8e8cd188-eb5e-4edb-ae57-04e9f4b6fb06	/boot	ext4	defaults	1	2
#Entry for /dev/sdb5 :
UUID=56640ACAA567D722	/media/WINXP_DATA	ntfs-3g	defaults,locale=en_US.utf8	0	0
#Entry for /dev/sdb1 :
UUID=01CCBCAD2A2F2A80	/media/WINXP_MCE2005	ntfs-3g	defaults,ro,locale=en_US.utf8	0	0
#Entry for /dev/mapper/vg_fedora-lv_swap :
UUID=c1049126-a6b0-423a-89e1-d3d593b2ea25	swap	swap	defaults	0	0

/dev/vg_fedora/lv_home		/home		ext4	defaults	1 2
/dev/vg_fedora/lv_root		/		ext4	defaults	1 2

---------- Post added at 01:50 PM ---------- Previous post was at 01:33 PM ----------

Got it... added "umask=0000" to options for that line.
Fedora 20 64-bit
CPU AMD|PH II X2 545 3.0G AM3
nVidia GeForce GT220 video card
4GB DDR2 Memory
Reply With Quote
Old 8th January 2012, 08:55 PM
Dutchy Offline
Registered User
Join Date: Aug 2011
Location: ~
Posts: 1,891
Re: Edit fstab mount NTFS read-only

Simply adding "ro" (read only) should do that, or else try "umask=0222".

-edit: Just saw you already did that and that you got it working.
You probably want to test it a bit more because a umask of 0000 shouldn't be read only.

Last edited by Dutchy; 8th January 2012 at 08:59 PM.
Reply With Quote

edit, fstab, mount, ntfs, readonly

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't edit fstab as it's a read only file worldttle Using Fedora 25 12th June 2014 09:43 AM
how to edit /etc/fstab, it is read-only walterstern Using Fedora 7 6th April 2007 01:38 PM
Crash when I edit fstab to mount vfat drives Hurlant Using Fedora 4 28th June 2005 07:46 AM

Current GMT-time: 23:39 (Saturday, 23-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat