AutoMounting windows partions in read-only mode

Hi, i'm running mandrake 9. 2, and i need to know how to automount any windows partition in read-only mode, When i install Mandrake 9. 2 automount all ntfs partition in read-only mode, now FAT and FAT32 are not automount in read-only mode, but you can choose to mount them during the installation with read-only, but ...

Everything Linux 1798 This topic was started by ,


data/avatar/default/avatar18.webp

3 Posts
Location -
Joined 2004-01-30
Hi, i'm running mandrake 9.2, and i need to know how to automount any windows partition in read-only mode,
When i install Mandrake 9.2 automount all ntfs partition in read-only mode, now FAT and FAT32 are not automount in read-only mode, but you can choose to mount them during the installation with read-only, but i'm wonder if i can change some settings so everytime i plug a new hard drive with FAT or FAT32 is automatically mount in read only mode, like caldera 3.1.1 (openLinux) always automount all windows file systems in read-only mode is possible to so or what distro is better for this.
 
Thank you for any help
 
;(

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar37.webp

213 Posts
Location -
Joined 2004-01-02
Well, you'd probably need to change the data for that partition in either fstab or mtab, maybe both. The line on each partition will say rw for read/write. It would need to be changed to ro for read only.
 
Here is the fstab man page online: http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?fstab+4
 
One part of page 2:
 

Quote:The mnt_opts field contains a list of comma-separated option words. Some mnt_opts are valid for all filesystem types, while others apply to a
specific type only.
 
Options valid on all filesystems (the default is rw) are:
 
rw Read/write.
 
ro Read-only.
 
noauto Ignore this entry during a mount -a command, to allow the
definition of fstab entries for commonly-used filesystems that
should not be automatically mounted.
 
grpid Causes a file created within the filesystem to have the group
ID of its parent directory, not the creating process's group
ID.
 
nosuid Setuid execution not allowed for non-superusers. This option
has no effect for the superuser.
 
nodev Access to character and block special files is disallowed.
 
I hope it helps. 8)
 
(Just to satisfy my curiosity, why do you want your Windows partitions in read-only?)

data/avatar/default/avatar18.webp

3 Posts
Location -
Joined 2004-01-30
OP
Thanks Maillion, thank you for your reply i'll try this (mtab) and i will let you know
 
thanks a lot