F13: Unable to mount ntfs-3g, option: 'context=' no longer supported?

Daniel B. Thurman dant at cdkkt.com
Thu Sep 23 16:26:25 UTC 2010


 On 09/23/2010 07:53 AM, Daniel B. Thurman wrote:
> Some weeks ago, I have installed F13 on a system
> and for some time, I have successfully mounted all
> of my partitions as defined in my fstab file.
>
> But today, I have rebooted this F13 system and for some
> reason, it was unable to mount any of my ntfs filesystems
> with an error message: "ntfs-3g-mount: Invalid argument",
> for each ntfs partition defined in the /etc/fstab.
>
> I can manually mount a ntfs-3g partition to /mnt,
> I can see the contents and context and every thing
> seems fine for this ntfs partition.
>
> I did:
>
> # mount /dev/sdaX /mnt  (it works)
> # mount  -t ntfs-3g /dev/sdaX /mnt (it works)
> # mount  -t ntfs-3g -o context="system_u:object_r:samba_share_t:s0"
> /dev/sdaX /mnt (breaks!)
>
> The problem is that the context=XXX option is no longer recognized, or
> so it seems.
>
> The fstab entry breaks as well for ntfs:
>
> LABEL=Ap1WD1 /md/Ap1WD1 ntfs-3g
> context="system_u:object_r:samba_share_t:s0"     0 0
>
>
> So what is the problem?
>
> --
> selinux mailing list
> selinux at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/selinux
I think I figured it out...

For /etc/fstab, the original line was:

LABEL=Ap1WD1 /md/Ap1WD1 ntfs-3g context="system_u:object_r:samba_share_t:s0" 0 0

And now should be:

LABEL=Ap1WD1 /md/Ap1WD1 ntfs-3g context=system_u:object_r:samba_share_t:s0,defaults 0 0


The difference is, adding ',defaults' to the end of the context option
is now required. Notice that quotes are not necessary, it makes no
difference, AFAIK

I am able to get the ntfs filesystems mounted and the selinux
context is correctly applied to the ntfs mounted filesystems.



More information about the users mailing list