FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Join Date
    Dec 2004
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to disable automount feature in Fedora 12?

    Hello,

    Any idea how to disable automount feature in Fedora 12?

    in Fedora 11 I could easily do that through System > Administration > Authorisations but in Fedora 12 Authorisations were removed...

    any ideas?

    many thanks for help,
    Marek
    megaloman.org

  2. #2
    kyryder Guest
    Hello,
    If you want to disable the automount just:

    Code:
    su -
    chkconfig autofs off

  3. #3
    Join Date
    Dec 2004
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by kyryder
    Hello,
    If you want to disable the automount just:

    Code:
    su -
    chkconfig autofs off
    thanks, but it does not work for me:

    Code:
    [root@m4300 ~]# chkconfig autofs off
    error reading information on service autofs: No such file or directory
    megaloman.org

  4. #4
    kyryder Guest
    Sorry about that, that is a command I have used in Red Hat and thought it would work in Fedora. I took a look in /etc/security/console.perms.d where the system definitions used to be and it is a empty folder in f12. I bet you have to make a new file to do this.Thought I might figure it out from within /etc/security/console.perms but no, so I am not sure how to disable auto mount in f12 but will continue to look for the answer. I am sure you can still disable all usb's at the kernel line in /boot/grub/grub.conf by just add nousb to the kernel line so it looks something like
    Code:
    kernel /vmlinuz-version blah=blah blah blah blah  rhgb quiet nousb
    but of course don't do this if you use a usb mouse or keyboard. I have to go now but, I will see what I can find and post back tomorrow, god willing.

  5. #5
    Join Date
    Dec 2004
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by kyryder
    Sorry about that, that is a command I have used in Red Hat and thought it would work in Fedora. I took a look in /etc/security/console.perms.d where the system definitions used to be and it is a empty folder in f12. I bet you have to make a new file to do this.Thought I might figure it out from within /etc/security/console.perms but no, so I am not sure how to disable auto mount in f12 but will continue to look for the answer. I am sure you can still disable all usb's at the kernel line in /boot/grub/grub.conf by just add nousb to the kernel line so it looks something like
    Code:
    kernel /vmlinuz-version blah=blah blah blah blah  rhgb quiet nousb
    but of course don't do this if you use a usb mouse or keyboard. I have to go now but, I will see what I can find and post back tomorrow, god willing.
    Thanks for the response. The reason I want to disable automount is K3B is unable to verify burnt cds / dvds with automount feature enabled. In Fedora 11 I could simply disable automounting through “Authorisation”, unfortunately this useful program has been removed from Fedora 12. Obviously I don't want to disable usb devices - I use usb mouse and usb printer ;-) and you're right, in previous versions of Fedora, there was a service called autofs - I can't see it any more.

    Many thanks!
    megaloman.org

  6. #6
    Join Date
    Jul 2009
    Posts
    1,234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Comment out the lines in /etc/fstab for the partitions you do not want to automount. AFAIK, this should work.
    Fedora 19 Gnome on a ThinkPad X220, i5-2540M CPU, Intel HD Graphics 3000, Intel N 6205 wireless, and Sierra Wireless 754S Mobile Hotspot (AT&T)

  7. #7
    Join Date
    Dec 2004
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by David Batson
    Comment out the lines in /etc/fstab for the partitions you do not want to automount. AFAIK, this should work.
    thanks, but it's not what I want to achieve. I want to disable automout for cds/dvds, there is no entry for those in /etc/fstab. Thanks anyway.
    megaloman.org

  8. #8
    Join Date
    Jul 2009
    Posts
    1,234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just looked at my fstab in Fedora 12, and it did not have any partitions like my fstab in Mandriva (same laptop).

    You might look at /usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy to see what permissions it gives.
    Fedora 19 Gnome on a ThinkPad X220, i5-2540M CPU, Intel HD Graphics 3000, Intel N 6205 wireless, and Sierra Wireless 754S Mobile Hotspot (AT&T)

  9. #9
    kyryder Guest
    Yea David, you are right, the setting is in /usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy. All you have to do is edit your file and replace the yes on the following lines to no so it reads like:

    <action id="org.freedesktop.devicekit.disks.filesystem-mount">
    <description>Mount a device</description>
    <description xml:lang="da">Montér en enhed</description>
    <message>Authentication is required to mount the device</message>
    <message xml:lang="da">Autorisering er påkrævet for at montere et fil system</message>
    <defaults>
    <allow_any>no</allow_any>
    <allow_inactive>no</allow_inactive>
    <allow_active>no</allow_active>
    </defaults>
    </action>
    Thanks David for pointing me in the right direction.

  10. #10
    Join Date
    Dec 2004
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by kyryder
    Yea David, you are right, the setting is in /usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy. All you have to do is edit your file and replace the yes on the following lines to no so it reads like:



    Thanks David for pointing me in the right direction.
    Unfortunately this does not solve my issue either. I want to disable automount, but I don't want to disable mounting at all. At the moment when above “fix” is applied, I get a message "Unable to mount: Not authorised”.

    The reason is - when I burn dvd's/cd's and automount is enabled, K3b is unable to verify written tracks... in Fedora 11 I could disable automount and it worked as expected - usb/cd/dvd where not mounted when inserted, but I could mount them simply with double click on an icon in My Computer window. Does any one knows how to achieve that?

    Many thanks,
    Marek
    megaloman.org

  11. #11
    Join Date
    Mar 2008
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could try System --> Preferences --> File Management --> Media tab

    See if there is a setting that would work for you. Cheers.

  12. #12
    Join Date
    Oct 2008
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've just read this thread and I think, that I have the same problem. There's my thread on KDE Community Forums:
    HTML Code:
    http://forum.kde.org/viewtopic.php?f=66&t=84459&p=140787#p140787
    and a bug report:
    HTML Code:
    https://bugs.kde.org/show_bug.cgi?id=218469

  13. #13
    Join Date
    Dec 2004
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jajabor
    You could try System --> Preferences --> File Management --> Media tab

    See if there is a setting that would work for you. Cheers.
    Many thanks, but that does not solve my issue either. Media tab tell gnome what to do when media is inserted / connected to the computer. I don't want Gnome to mount media and I want to do that manually.
    megaloman.org

  14. #14
    Join Date
    Sep 2009
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You might try this:

    Install gconf-editor. Then run this program (as a regular user). In apps -> nautilus -> preferences untick the box media_automount

  15. #15
    Join Date
    Dec 2004
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    Quote Originally Posted by duende
    You might try this:

    Install gconf-editor. Then run this program (as a regular user). In apps -> nautilus -> preferences untick the box media_automount
    Thank you!

    That's what I was looking for Just tested - now I can burn and verify burnt discs - awesome! Thanks
    megaloman.org

Page 1 of 2 12 LastLast

Similar Threads

  1. How Do I Disable Automount?
    By robertfdawson in forum Hardware
    Replies: 28
    Last Post: 19th January 2016, 07:16 AM
  2. Replies: 2
    Last Post: 28th January 2009, 07:51 PM
  3. Disable a KDE feature.....
    By steven1350 in forum Using Fedora
    Replies: 2
    Last Post: 22nd April 2007, 02:32 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •