Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th February 2008, 06:35 PM
jap1960 Offline
Registered User
 
Join Date: Feb 2008
Posts: 2
Windows XP drive mounts as RW only.

I am erunning Dual boot with a Windows XP drive /dev/sda1 and a Linux drive /dev/sdb1. How can I set up the Windows drive as read only by default?

[root@localhost /]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sdb1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sda1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)


[root@localhost /]# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
ext3 35645048 5830624 27974504 18% /
/dev/sdb1 ext3 194442 18869 165534 11% /boot
tmpfs tmpfs 517476 24 517452 1% /dev/shm
/dev/sda1 fuseblk 117218240 91245900 25972340 78% /media/disk
[
I did not find any information in the fstab file.
Reply With Quote
  #2  
Old 10th February 2008, 03:35 AM
LordMorgul's Avatar
LordMorgul Offline
Registered User
 
Join Date: Mar 2004
Location: Sourthern California, USA
Posts: 503
In /etc/fstab you want to add an option ro to the line corresponding with your xp drive partition. Then you'll have something that looks like:
Code:
/dev/sda1    /media/disk    ntfs-3g   defaults,ro,nosuid,nodev,noexec 0 0
You may have other things on that line, it looks like allow_other,blksize=4096 are manually specified there (but probably do not need to be there). Changing rw to ro is the key you're looking for.
__________________
- Andrew <lordmorgul@gmail.com>

No one now has, and no one will ever again get, the big picture. - Daniel Geer
Reply With Quote
  #3  
Old 10th February 2008, 03:39 AM
LordMorgul's Avatar
LordMorgul Offline
Registered User
 
Join Date: Mar 2004
Location: Sourthern California, USA
Posts: 503
You can also install ntfs-config and then have a UI to configure your ntfs-3g type mounted partitions. This allows you to set it as readonly with the control panel found in the system menu.
__________________
- Andrew <lordmorgul@gmail.com>

No one now has, and no one will ever again get, the big picture. - Daniel Geer
Reply With Quote
Reply

Tags
drive, mounts, windows

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
reformat flash drive mounts as tempfs miles Using Fedora 1 15th October 2009 07:59 PM
mounts all windows drive in /media angathan Hardware & Laptops 3 27th May 2009 09:37 AM
FC6: USB drive mounts noexec dmsmith555 EOL (End Of Life) Versions 0 27th November 2006 10:56 PM
External drive mounts twice? Creedog Hardware & Laptops 0 27th September 2006 11:21 PM
usb drive no longer mounts under kernel 2157 mwette Installation and Live Media 0 25th July 2006 02:44 PM


Current GMT-time: 02:32 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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