How to disable automount for external devices in openSUSE 13.2?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite
1












Previously I used openSUSE 11.4 and I had an old manual mount. Despite, I copied all config files (I think) I noticed that unknown to /etc/fstab devices are automounted (know I defined as noauto). But since this is big difference in openSUSE 13.2 distro versions I am not so surprised.



So how to do this in openSUSE 13.2? I would like to mount the device manually by mount, and unmount also manually by umount. No other way, no smart timeout on inactivity or anything like that.



I would like to disable that feature at system level, nothing per desktop (for the record I use KDE 3.5, not a joke), so I could be 100% sure this problem will not appear again when working in pure console or another desktop.



Related issue provided by don-crissti: Automount not disabling in Ubuntu 12.04 or 13.04



Update



# more /etc/udev/rules.d/85-no-automount.rules
SUBSYSTEM=="usb", ENVUDISKS_AUTO="0"


  • kernel-desktop-devel-3.16.6-2.1.x86_64

  • udev-210-25.5.4.x86_64

  • udisks2-2.1.3-2.1.5.x86_64









share|improve this question























  • @don_crissti, thank you, I tried just fixing the typo (it was in original post you linked), and I tried your version, with both pendrive is still automounted.
    – greenoldman
    Dec 21 '14 at 9:03










  • @don_crissti, I am grateful nevertheless for your help. Maybe OS has some bug or issue which requires other handling.
    – greenoldman
    Dec 21 '14 at 15:23














up vote
4
down vote

favorite
1












Previously I used openSUSE 11.4 and I had an old manual mount. Despite, I copied all config files (I think) I noticed that unknown to /etc/fstab devices are automounted (know I defined as noauto). But since this is big difference in openSUSE 13.2 distro versions I am not so surprised.



So how to do this in openSUSE 13.2? I would like to mount the device manually by mount, and unmount also manually by umount. No other way, no smart timeout on inactivity or anything like that.



I would like to disable that feature at system level, nothing per desktop (for the record I use KDE 3.5, not a joke), so I could be 100% sure this problem will not appear again when working in pure console or another desktop.



Related issue provided by don-crissti: Automount not disabling in Ubuntu 12.04 or 13.04



Update



# more /etc/udev/rules.d/85-no-automount.rules
SUBSYSTEM=="usb", ENVUDISKS_AUTO="0"


  • kernel-desktop-devel-3.16.6-2.1.x86_64

  • udev-210-25.5.4.x86_64

  • udisks2-2.1.3-2.1.5.x86_64









share|improve this question























  • @don_crissti, thank you, I tried just fixing the typo (it was in original post you linked), and I tried your version, with both pendrive is still automounted.
    – greenoldman
    Dec 21 '14 at 9:03










  • @don_crissti, I am grateful nevertheless for your help. Maybe OS has some bug or issue which requires other handling.
    – greenoldman
    Dec 21 '14 at 15:23












up vote
4
down vote

favorite
1









up vote
4
down vote

favorite
1






1





Previously I used openSUSE 11.4 and I had an old manual mount. Despite, I copied all config files (I think) I noticed that unknown to /etc/fstab devices are automounted (know I defined as noauto). But since this is big difference in openSUSE 13.2 distro versions I am not so surprised.



So how to do this in openSUSE 13.2? I would like to mount the device manually by mount, and unmount also manually by umount. No other way, no smart timeout on inactivity or anything like that.



I would like to disable that feature at system level, nothing per desktop (for the record I use KDE 3.5, not a joke), so I could be 100% sure this problem will not appear again when working in pure console or another desktop.



Related issue provided by don-crissti: Automount not disabling in Ubuntu 12.04 or 13.04



Update



# more /etc/udev/rules.d/85-no-automount.rules
SUBSYSTEM=="usb", ENVUDISKS_AUTO="0"


  • kernel-desktop-devel-3.16.6-2.1.x86_64

  • udev-210-25.5.4.x86_64

  • udisks2-2.1.3-2.1.5.x86_64









share|improve this question















Previously I used openSUSE 11.4 and I had an old manual mount. Despite, I copied all config files (I think) I noticed that unknown to /etc/fstab devices are automounted (know I defined as noauto). But since this is big difference in openSUSE 13.2 distro versions I am not so surprised.



So how to do this in openSUSE 13.2? I would like to mount the device manually by mount, and unmount also manually by umount. No other way, no smart timeout on inactivity or anything like that.



I would like to disable that feature at system level, nothing per desktop (for the record I use KDE 3.5, not a joke), so I could be 100% sure this problem will not appear again when working in pure console or another desktop.



Related issue provided by don-crissti: Automount not disabling in Ubuntu 12.04 or 13.04



Update



# more /etc/udev/rules.d/85-no-automount.rules
SUBSYSTEM=="usb", ENVUDISKS_AUTO="0"


  • kernel-desktop-devel-3.16.6-2.1.x86_64

  • udev-210-25.5.4.x86_64

  • udisks2-2.1.3-2.1.5.x86_64






opensuse automounting






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 13 '17 at 12:37









Community

1




1










asked Nov 29 '14 at 10:10









greenoldman

2,482104158




2,482104158











  • @don_crissti, thank you, I tried just fixing the typo (it was in original post you linked), and I tried your version, with both pendrive is still automounted.
    – greenoldman
    Dec 21 '14 at 9:03










  • @don_crissti, I am grateful nevertheless for your help. Maybe OS has some bug or issue which requires other handling.
    – greenoldman
    Dec 21 '14 at 15:23
















  • @don_crissti, thank you, I tried just fixing the typo (it was in original post you linked), and I tried your version, with both pendrive is still automounted.
    – greenoldman
    Dec 21 '14 at 9:03










  • @don_crissti, I am grateful nevertheless for your help. Maybe OS has some bug or issue which requires other handling.
    – greenoldman
    Dec 21 '14 at 15:23















@don_crissti, thank you, I tried just fixing the typo (it was in original post you linked), and I tried your version, with both pendrive is still automounted.
– greenoldman
Dec 21 '14 at 9:03




@don_crissti, thank you, I tried just fixing the typo (it was in original post you linked), and I tried your version, with both pendrive is still automounted.
– greenoldman
Dec 21 '14 at 9:03












@don_crissti, I am grateful nevertheless for your help. Maybe OS has some bug or issue which requires other handling.
– greenoldman
Dec 21 '14 at 15:23




@don_crissti, I am grateful nevertheless for your help. Maybe OS has some bug or issue which requires other handling.
– greenoldman
Dec 21 '14 at 15:23










2 Answers
2






active

oldest

votes

















up vote
3
down vote













The automounting you see on a modern Linux distribution like OpenSUSE or Fedora is implemented by the udisks2 service.



Thus, you can disable that feature on system level via stopping that service, e.g.:



# systemctl stop udisks2.service


To verify that it is stopped:



# systemctl status udisks2


Of course, this change isn't permanent.



The udisks2 service isn't even enabled, by default and thus isn't autostarted during boot. Instead, it is activated via Dbus (e.g. when the first user starts a desktop session).



Thus, if you really hate udisks2:



$ systemctl mask udisks2


This will block all starts, including manual ones.



Motiviation



Why would one want to disable automounting via the fine disks2 disk manager?



There are several good reasons, e.g.



  • work around a udisks2 automount bug1

  • do forensics work on some USB drives

  • rescue data from a corrupted FS on a USB device (where the automount would lead to more destruction)


1. e.g. on Fedora 25, when connecting 2 USB devices that are a Btrfs RAID-1 mirror, the mirror is automounted unter /run/media/juser/mirror alright - BUT it also mounted a second time under /run/media/juser/mirror1 when unlocking the screen ... while the first mount is still live ...






share|improve this answer





























    up vote
    -1
    down vote













    simple reason is. The permitions on udisk2 are wrong if you mount usb vfat.
    And the documentation how to modify that is lo level.



    Using: raspberry 3, VERSION="9 (stretch)"



    I tried to use small SVN repo on USB Flash drive. I always got the problem that apache (www-data) could not access the repo. Because the permitions are always set only for user pi (pi:pi). I did not find where i chan change this.



    Now autoload is disabled and i mount the drive myself. Then the permitions are ok. (root:users)






    share|improve this answer


















    • 1




      The problem is that the system is automatically mounting a device that the OP doesn't want to be automatically mounted — and you say it's a permissions issue?  Can you provide a reference to support that claim, or even an argument as to how it makes sense? Please do not respond in comments; edit your answer to make it clearer and more complete.
      – Scott
      Nov 24 at 19:15










    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f170549%2fhow-to-disable-automount-for-external-devices-in-opensuse-13-2%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    The automounting you see on a modern Linux distribution like OpenSUSE or Fedora is implemented by the udisks2 service.



    Thus, you can disable that feature on system level via stopping that service, e.g.:



    # systemctl stop udisks2.service


    To verify that it is stopped:



    # systemctl status udisks2


    Of course, this change isn't permanent.



    The udisks2 service isn't even enabled, by default and thus isn't autostarted during boot. Instead, it is activated via Dbus (e.g. when the first user starts a desktop session).



    Thus, if you really hate udisks2:



    $ systemctl mask udisks2


    This will block all starts, including manual ones.



    Motiviation



    Why would one want to disable automounting via the fine disks2 disk manager?



    There are several good reasons, e.g.



    • work around a udisks2 automount bug1

    • do forensics work on some USB drives

    • rescue data from a corrupted FS on a USB device (where the automount would lead to more destruction)


    1. e.g. on Fedora 25, when connecting 2 USB devices that are a Btrfs RAID-1 mirror, the mirror is automounted unter /run/media/juser/mirror alright - BUT it also mounted a second time under /run/media/juser/mirror1 when unlocking the screen ... while the first mount is still live ...






    share|improve this answer


























      up vote
      3
      down vote













      The automounting you see on a modern Linux distribution like OpenSUSE or Fedora is implemented by the udisks2 service.



      Thus, you can disable that feature on system level via stopping that service, e.g.:



      # systemctl stop udisks2.service


      To verify that it is stopped:



      # systemctl status udisks2


      Of course, this change isn't permanent.



      The udisks2 service isn't even enabled, by default and thus isn't autostarted during boot. Instead, it is activated via Dbus (e.g. when the first user starts a desktop session).



      Thus, if you really hate udisks2:



      $ systemctl mask udisks2


      This will block all starts, including manual ones.



      Motiviation



      Why would one want to disable automounting via the fine disks2 disk manager?



      There are several good reasons, e.g.



      • work around a udisks2 automount bug1

      • do forensics work on some USB drives

      • rescue data from a corrupted FS on a USB device (where the automount would lead to more destruction)


      1. e.g. on Fedora 25, when connecting 2 USB devices that are a Btrfs RAID-1 mirror, the mirror is automounted unter /run/media/juser/mirror alright - BUT it also mounted a second time under /run/media/juser/mirror1 when unlocking the screen ... while the first mount is still live ...






      share|improve this answer
























        up vote
        3
        down vote










        up vote
        3
        down vote









        The automounting you see on a modern Linux distribution like OpenSUSE or Fedora is implemented by the udisks2 service.



        Thus, you can disable that feature on system level via stopping that service, e.g.:



        # systemctl stop udisks2.service


        To verify that it is stopped:



        # systemctl status udisks2


        Of course, this change isn't permanent.



        The udisks2 service isn't even enabled, by default and thus isn't autostarted during boot. Instead, it is activated via Dbus (e.g. when the first user starts a desktop session).



        Thus, if you really hate udisks2:



        $ systemctl mask udisks2


        This will block all starts, including manual ones.



        Motiviation



        Why would one want to disable automounting via the fine disks2 disk manager?



        There are several good reasons, e.g.



        • work around a udisks2 automount bug1

        • do forensics work on some USB drives

        • rescue data from a corrupted FS on a USB device (where the automount would lead to more destruction)


        1. e.g. on Fedora 25, when connecting 2 USB devices that are a Btrfs RAID-1 mirror, the mirror is automounted unter /run/media/juser/mirror alright - BUT it also mounted a second time under /run/media/juser/mirror1 when unlocking the screen ... while the first mount is still live ...






        share|improve this answer














        The automounting you see on a modern Linux distribution like OpenSUSE or Fedora is implemented by the udisks2 service.



        Thus, you can disable that feature on system level via stopping that service, e.g.:



        # systemctl stop udisks2.service


        To verify that it is stopped:



        # systemctl status udisks2


        Of course, this change isn't permanent.



        The udisks2 service isn't even enabled, by default and thus isn't autostarted during boot. Instead, it is activated via Dbus (e.g. when the first user starts a desktop session).



        Thus, if you really hate udisks2:



        $ systemctl mask udisks2


        This will block all starts, including manual ones.



        Motiviation



        Why would one want to disable automounting via the fine disks2 disk manager?



        There are several good reasons, e.g.



        • work around a udisks2 automount bug1

        • do forensics work on some USB drives

        • rescue data from a corrupted FS on a USB device (where the automount would lead to more destruction)


        1. e.g. on Fedora 25, when connecting 2 USB devices that are a Btrfs RAID-1 mirror, the mirror is automounted unter /run/media/juser/mirror alright - BUT it also mounted a second time under /run/media/juser/mirror1 when unlocking the screen ... while the first mount is still live ...







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jul 3 '17 at 20:35

























        answered Jul 3 '17 at 20:30









        maxschlepzig

        33.1k32135208




        33.1k32135208






















            up vote
            -1
            down vote













            simple reason is. The permitions on udisk2 are wrong if you mount usb vfat.
            And the documentation how to modify that is lo level.



            Using: raspberry 3, VERSION="9 (stretch)"



            I tried to use small SVN repo on USB Flash drive. I always got the problem that apache (www-data) could not access the repo. Because the permitions are always set only for user pi (pi:pi). I did not find where i chan change this.



            Now autoload is disabled and i mount the drive myself. Then the permitions are ok. (root:users)






            share|improve this answer


















            • 1




              The problem is that the system is automatically mounting a device that the OP doesn't want to be automatically mounted — and you say it's a permissions issue?  Can you provide a reference to support that claim, or even an argument as to how it makes sense? Please do not respond in comments; edit your answer to make it clearer and more complete.
              – Scott
              Nov 24 at 19:15














            up vote
            -1
            down vote













            simple reason is. The permitions on udisk2 are wrong if you mount usb vfat.
            And the documentation how to modify that is lo level.



            Using: raspberry 3, VERSION="9 (stretch)"



            I tried to use small SVN repo on USB Flash drive. I always got the problem that apache (www-data) could not access the repo. Because the permitions are always set only for user pi (pi:pi). I did not find where i chan change this.



            Now autoload is disabled and i mount the drive myself. Then the permitions are ok. (root:users)






            share|improve this answer


















            • 1




              The problem is that the system is automatically mounting a device that the OP doesn't want to be automatically mounted — and you say it's a permissions issue?  Can you provide a reference to support that claim, or even an argument as to how it makes sense? Please do not respond in comments; edit your answer to make it clearer and more complete.
              – Scott
              Nov 24 at 19:15












            up vote
            -1
            down vote










            up vote
            -1
            down vote









            simple reason is. The permitions on udisk2 are wrong if you mount usb vfat.
            And the documentation how to modify that is lo level.



            Using: raspberry 3, VERSION="9 (stretch)"



            I tried to use small SVN repo on USB Flash drive. I always got the problem that apache (www-data) could not access the repo. Because the permitions are always set only for user pi (pi:pi). I did not find where i chan change this.



            Now autoload is disabled and i mount the drive myself. Then the permitions are ok. (root:users)






            share|improve this answer














            simple reason is. The permitions on udisk2 are wrong if you mount usb vfat.
            And the documentation how to modify that is lo level.



            Using: raspberry 3, VERSION="9 (stretch)"



            I tried to use small SVN repo on USB Flash drive. I always got the problem that apache (www-data) could not access the repo. Because the permitions are always set only for user pi (pi:pi). I did not find where i chan change this.



            Now autoload is disabled and i mount the drive myself. Then the permitions are ok. (root:users)







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 25 at 14:35

























            answered Nov 24 at 16:41









            Arnold Braun

            11




            11







            • 1




              The problem is that the system is automatically mounting a device that the OP doesn't want to be automatically mounted — and you say it's a permissions issue?  Can you provide a reference to support that claim, or even an argument as to how it makes sense? Please do not respond in comments; edit your answer to make it clearer and more complete.
              – Scott
              Nov 24 at 19:15












            • 1




              The problem is that the system is automatically mounting a device that the OP doesn't want to be automatically mounted — and you say it's a permissions issue?  Can you provide a reference to support that claim, or even an argument as to how it makes sense? Please do not respond in comments; edit your answer to make it clearer and more complete.
              – Scott
              Nov 24 at 19:15







            1




            1




            The problem is that the system is automatically mounting a device that the OP doesn't want to be automatically mounted — and you say it's a permissions issue?  Can you provide a reference to support that claim, or even an argument as to how it makes sense? Please do not respond in comments; edit your answer to make it clearer and more complete.
            – Scott
            Nov 24 at 19:15




            The problem is that the system is automatically mounting a device that the OP doesn't want to be automatically mounted — and you say it's a permissions issue?  Can you provide a reference to support that claim, or even an argument as to how it makes sense? Please do not respond in comments; edit your answer to make it clearer and more complete.
            – Scott
            Nov 24 at 19:15

















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f170549%2fhow-to-disable-automount-for-external-devices-in-opensuse-13-2%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?