How did GNOME avoid mounting my Windows Recovery USB drive?

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











up vote
1
down vote

favorite












Sequence:



  1. Create Windows 10 Recovery Drive (USB drive).

  2. Eject drive from Windows.

  3. Now use a Linux, with the USB drive plugged in.

(The next step would be to open GNOME Disks, ensure the filesystem is not mounted, and save the recovery image. Then I can re-use the USB drive).



Result:



  • Oops, I meant to log in to Linux with my administrator account. The admin account was supposed to be the only one with access to system files like these.

  • However GNOME didn't mount the Recovery Drive, or advertise it in the file manager.

This is an 8GB USB stick, and Windows has formatted it as FAT. Windows happily mounts it. (In fact when you create it, Windows leaves it mounted; the user is responsible for unmounting it ("Eject")).



Previously GNOME has quite happily mounted Linux boot media. I actually suspect that this mounting causes Fedora Live media to fail the default boot option, which checks that the media matches the original checksum.



Does GNOME deliberately avoid mounting Windows Recovery media?



What specific aspect of this USB stick causes GNOME to treat it specially?? Is it just checking the filesystem label, "RECOVERY"??



On second thoughts, I imagine GNOME might try to avoid mounting Windows recovery partitions on your hard drive. Is this USB drive falling under the same check?










share|improve this question

























    up vote
    1
    down vote

    favorite












    Sequence:



    1. Create Windows 10 Recovery Drive (USB drive).

    2. Eject drive from Windows.

    3. Now use a Linux, with the USB drive plugged in.

    (The next step would be to open GNOME Disks, ensure the filesystem is not mounted, and save the recovery image. Then I can re-use the USB drive).



    Result:



    • Oops, I meant to log in to Linux with my administrator account. The admin account was supposed to be the only one with access to system files like these.

    • However GNOME didn't mount the Recovery Drive, or advertise it in the file manager.

    This is an 8GB USB stick, and Windows has formatted it as FAT. Windows happily mounts it. (In fact when you create it, Windows leaves it mounted; the user is responsible for unmounting it ("Eject")).



    Previously GNOME has quite happily mounted Linux boot media. I actually suspect that this mounting causes Fedora Live media to fail the default boot option, which checks that the media matches the original checksum.



    Does GNOME deliberately avoid mounting Windows Recovery media?



    What specific aspect of this USB stick causes GNOME to treat it specially?? Is it just checking the filesystem label, "RECOVERY"??



    On second thoughts, I imagine GNOME might try to avoid mounting Windows recovery partitions on your hard drive. Is this USB drive falling under the same check?










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Sequence:



      1. Create Windows 10 Recovery Drive (USB drive).

      2. Eject drive from Windows.

      3. Now use a Linux, with the USB drive plugged in.

      (The next step would be to open GNOME Disks, ensure the filesystem is not mounted, and save the recovery image. Then I can re-use the USB drive).



      Result:



      • Oops, I meant to log in to Linux with my administrator account. The admin account was supposed to be the only one with access to system files like these.

      • However GNOME didn't mount the Recovery Drive, or advertise it in the file manager.

      This is an 8GB USB stick, and Windows has formatted it as FAT. Windows happily mounts it. (In fact when you create it, Windows leaves it mounted; the user is responsible for unmounting it ("Eject")).



      Previously GNOME has quite happily mounted Linux boot media. I actually suspect that this mounting causes Fedora Live media to fail the default boot option, which checks that the media matches the original checksum.



      Does GNOME deliberately avoid mounting Windows Recovery media?



      What specific aspect of this USB stick causes GNOME to treat it specially?? Is it just checking the filesystem label, "RECOVERY"??



      On second thoughts, I imagine GNOME might try to avoid mounting Windows recovery partitions on your hard drive. Is this USB drive falling under the same check?










      share|improve this question













      Sequence:



      1. Create Windows 10 Recovery Drive (USB drive).

      2. Eject drive from Windows.

      3. Now use a Linux, with the USB drive plugged in.

      (The next step would be to open GNOME Disks, ensure the filesystem is not mounted, and save the recovery image. Then I can re-use the USB drive).



      Result:



      • Oops, I meant to log in to Linux with my administrator account. The admin account was supposed to be the only one with access to system files like these.

      • However GNOME didn't mount the Recovery Drive, or advertise it in the file manager.

      This is an 8GB USB stick, and Windows has formatted it as FAT. Windows happily mounts it. (In fact when you create it, Windows leaves it mounted; the user is responsible for unmounting it ("Eject")).



      Previously GNOME has quite happily mounted Linux boot media. I actually suspect that this mounting causes Fedora Live media to fail the default boot option, which checks that the media matches the original checksum.



      Does GNOME deliberately avoid mounting Windows Recovery media?



      What specific aspect of this USB stick causes GNOME to treat it specially?? Is it just checking the filesystem label, "RECOVERY"??



      On second thoughts, I imagine GNOME might try to avoid mounting Windows recovery partitions on your hard drive. Is this USB drive falling under the same check?







      gnome udisks






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 29 '16 at 10:47









      sourcejedi

      22.5k43499




      22.5k43499




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          On my Fedora 28 system, it is hidden by /lib/udev/rules.d/80-udisks2.rules. The specific rule is:



          # recovery partitions
          ENVID_FS_TYPE=="ntfs|vfat",
          ENVID_FS_LABEL=="Recovery|RECOVERY|Lenovo_Recovery|HP_RECOVERY|Recovery_Partition|DellUtility|DellRestore|IBM_SERVICE|SERVICEV001|SERVICEV002|SYSTEM_RESERVED|System_Reserved|WINRE_DRV|DIAGS|IntelRST",
          ENVUDISKS_IGNORE="1"


          So it needs two things to match: the filesystem type, and the filesystem label.



          I imagine this could cause some surprise. Imagine if you happened to set the filesystem label to "Recovery" on your USB stick or SDHC card, which likely uses vfat :-).






          share|improve this answer




















            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%2f333517%2fhow-did-gnome-avoid-mounting-my-windows-recovery-usb-drive%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            On my Fedora 28 system, it is hidden by /lib/udev/rules.d/80-udisks2.rules. The specific rule is:



            # recovery partitions
            ENVID_FS_TYPE=="ntfs|vfat",
            ENVID_FS_LABEL=="Recovery|RECOVERY|Lenovo_Recovery|HP_RECOVERY|Recovery_Partition|DellUtility|DellRestore|IBM_SERVICE|SERVICEV001|SERVICEV002|SYSTEM_RESERVED|System_Reserved|WINRE_DRV|DIAGS|IntelRST",
            ENVUDISKS_IGNORE="1"


            So it needs two things to match: the filesystem type, and the filesystem label.



            I imagine this could cause some surprise. Imagine if you happened to set the filesystem label to "Recovery" on your USB stick or SDHC card, which likely uses vfat :-).






            share|improve this answer
























              up vote
              0
              down vote



              accepted










              On my Fedora 28 system, it is hidden by /lib/udev/rules.d/80-udisks2.rules. The specific rule is:



              # recovery partitions
              ENVID_FS_TYPE=="ntfs|vfat",
              ENVID_FS_LABEL=="Recovery|RECOVERY|Lenovo_Recovery|HP_RECOVERY|Recovery_Partition|DellUtility|DellRestore|IBM_SERVICE|SERVICEV001|SERVICEV002|SYSTEM_RESERVED|System_Reserved|WINRE_DRV|DIAGS|IntelRST",
              ENVUDISKS_IGNORE="1"


              So it needs two things to match: the filesystem type, and the filesystem label.



              I imagine this could cause some surprise. Imagine if you happened to set the filesystem label to "Recovery" on your USB stick or SDHC card, which likely uses vfat :-).






              share|improve this answer






















                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                On my Fedora 28 system, it is hidden by /lib/udev/rules.d/80-udisks2.rules. The specific rule is:



                # recovery partitions
                ENVID_FS_TYPE=="ntfs|vfat",
                ENVID_FS_LABEL=="Recovery|RECOVERY|Lenovo_Recovery|HP_RECOVERY|Recovery_Partition|DellUtility|DellRestore|IBM_SERVICE|SERVICEV001|SERVICEV002|SYSTEM_RESERVED|System_Reserved|WINRE_DRV|DIAGS|IntelRST",
                ENVUDISKS_IGNORE="1"


                So it needs two things to match: the filesystem type, and the filesystem label.



                I imagine this could cause some surprise. Imagine if you happened to set the filesystem label to "Recovery" on your USB stick or SDHC card, which likely uses vfat :-).






                share|improve this answer












                On my Fedora 28 system, it is hidden by /lib/udev/rules.d/80-udisks2.rules. The specific rule is:



                # recovery partitions
                ENVID_FS_TYPE=="ntfs|vfat",
                ENVID_FS_LABEL=="Recovery|RECOVERY|Lenovo_Recovery|HP_RECOVERY|Recovery_Partition|DellUtility|DellRestore|IBM_SERVICE|SERVICEV001|SERVICEV002|SYSTEM_RESERVED|System_Reserved|WINRE_DRV|DIAGS|IntelRST",
                ENVUDISKS_IGNORE="1"


                So it needs two things to match: the filesystem type, and the filesystem label.



                I imagine this could cause some surprise. Imagine if you happened to set the filesystem label to "Recovery" on your USB stick or SDHC card, which likely uses vfat :-).







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 7 at 23:42









                sourcejedi

                22.5k43499




                22.5k43499



























                    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%2f333517%2fhow-did-gnome-avoid-mounting-my-windows-recovery-usb-drive%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

                    Peggy Mitchell

                    The Forum (Inglewood, California)

                    Palaiologos