drives that fail to mount on boot

Paul Howarth paul at city-fan.org
Tue Aug 1 07:26:05 UTC 2006


On Mon, 2006-07-31 at 17:27 -0700, charles f. zeitler wrote:
> i have a couple of drives
> that dont mount on boot,
> but do mount with mount -a.
> 
> in fstab:
> 
> /dev/hdb1               /home/fedora/music      ext3  
>  defaults        1 2
> /dev/hdd1               /home/fedora/torrents_isos  
> ext3  defaults     1 2
> 
> and in 'messages':
> 
> Jul 31 18:16:22 localhost kernel:
> audit(1154387748.987:339): avc:  denied  { mounton }
> for  pid=1213 comm="mount" name="music" dev=hda11
> ino=15958135 scontext=system_u:system_r:mount_t:s0
> tcontext=user_u:object_r:user_home_t:s0 tclass=dir
> Jul 31 18:16:22 localhost kernel:
> audit(1154387748.987:340): avc:  denied  { mounton }
> for  pid=1213 comm="mount" name="music" dev=hda11
> ino=15958135 scontext=system_u:system_r:mount_t:s0
> tcontext=user_u:object_r:user_home_t:s0 tclass=dir
> Jul 31 18:16:22 localhost kernel:
> audit(1154387748.987:341): avc:  denied  { mounton }
> for  pid=1213 comm="mount" name="torrents_isos"
> dev=hda11 ino=15958071
> scontext=system_u:system_r:mount_t:s0
> tcontext=user_u:object_r:user_home_t:s0 tclass=dir
> Jul 31 18:16:22 localhost kernel:
> audit(1154387748.987:342): avc:  denied  { mounton }
> for  pid=1213 comm="mount" name="torrents_isos"
> dev=hda11 ino=15958071
> scontext=system_u:system_r:mount_t:s0
> tcontext=user_u:object_r:user_home_t:s0 tclass=dir
> 
> 
> any help appreciated

Unmount the filesystems, then:

# chcon -t mnt_t /home/fedora/{music,torrents_isos}

Then try:

# service netfs start

This will attempt to mount the filesystems in the same way as at boot
time (you might want to try this before doing the "chcon" to verify this
for yourself).

Paul.





More information about the selinux mailing list