Is it possible to prevent a block device from being mounted writably?I can't access secondary hard driveHow...

What defines a dissertation?

voltage of sounds of mp3files

Implement the Thanos sorting algorithm

Was Spock the First Vulcan in Starfleet?

Using parameter substitution on a Bash array

Can I Retrieve Email Addresses from BCC?

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Displaying the order of the columns of a table

Why are on-board computers allowed to change controls without notifying the pilots?

Can a monster with multiattack use this ability if they are missing a limb?

How do I define a right arrow with bar in LaTeX?

Failed to fetch jessie backports repository

Curses work by shouting - How to avoid collateral damage?

How do I keep an essay about "feeling flat" from feeling flat?

Is there an Impartial Brexit Deal comparison site?

Modify casing of marked letters

What would be the benefits of having both a state and local currencies?

How does a character multiclassing into warlock get a focus?

How does it work when somebody invests in my business?

Efficiently merge handle parallel feature branches in SFDX

Cynical novel that describes an America ruled by the media, arms manufacturers, and ethnic figureheads

Hide Select Output from T-SQL

What is difference between behavior and behaviour

Star/Wye electrical connection math symbol



Is it possible to prevent a block device from being mounted writably?


I can't access secondary hard driveHow do I mount a hibernated NTFS partition?Cannot mount FAT32 system as 777Error openning my hard-driveUnable to Access my Hard DisksHDD mounting issuesUsing `umount` for USB mounted ext4 volume without `sudo`nbd-client Fsync errorUnable to mount external HDD due to unknown filesystemInstall Ubuntu (18.04) with option to add new OS in future - can't define 'device from boot loader installation'













0















Here is the story, I am using a Linux OS installed to my PC and a window-to-go USB HDD.



In desktop Linux, I sometimes use VirtualBox to launch the Windows installation as a virtual machine, which generally works well. VirtualBox access the window-to-go USB HDD, say /dev/sda as a raw block device.



The problem is, when VirtualBox is accessing the WTG HDD as a raw device, the HDD is still accessible in the hosting Linux OS. I can easily mount /dev/sda1 to some directory and write to it.



This makes the case extremely dangerous because the Windows OS inside VirtualBox and the hosting Linux would concurrently write to HDD.



I tried to set the permission of /dev/sda1 as 000, turned out that KDE dolphin can still mount the partition. I want to know if this is any way which I can reliably prevent any mounting operation on /dev/sda1, until I sudo the some operation to allowing mounting again.









share







New contributor




Wesley Ranger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    Here is the story, I am using a Linux OS installed to my PC and a window-to-go USB HDD.



    In desktop Linux, I sometimes use VirtualBox to launch the Windows installation as a virtual machine, which generally works well. VirtualBox access the window-to-go USB HDD, say /dev/sda as a raw block device.



    The problem is, when VirtualBox is accessing the WTG HDD as a raw device, the HDD is still accessible in the hosting Linux OS. I can easily mount /dev/sda1 to some directory and write to it.



    This makes the case extremely dangerous because the Windows OS inside VirtualBox and the hosting Linux would concurrently write to HDD.



    I tried to set the permission of /dev/sda1 as 000, turned out that KDE dolphin can still mount the partition. I want to know if this is any way which I can reliably prevent any mounting operation on /dev/sda1, until I sudo the some operation to allowing mounting again.









    share







    New contributor




    Wesley Ranger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      Here is the story, I am using a Linux OS installed to my PC and a window-to-go USB HDD.



      In desktop Linux, I sometimes use VirtualBox to launch the Windows installation as a virtual machine, which generally works well. VirtualBox access the window-to-go USB HDD, say /dev/sda as a raw block device.



      The problem is, when VirtualBox is accessing the WTG HDD as a raw device, the HDD is still accessible in the hosting Linux OS. I can easily mount /dev/sda1 to some directory and write to it.



      This makes the case extremely dangerous because the Windows OS inside VirtualBox and the hosting Linux would concurrently write to HDD.



      I tried to set the permission of /dev/sda1 as 000, turned out that KDE dolphin can still mount the partition. I want to know if this is any way which I can reliably prevent any mounting operation on /dev/sda1, until I sudo the some operation to allowing mounting again.









      share







      New contributor




      Wesley Ranger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      Here is the story, I am using a Linux OS installed to my PC and a window-to-go USB HDD.



      In desktop Linux, I sometimes use VirtualBox to launch the Windows installation as a virtual machine, which generally works well. VirtualBox access the window-to-go USB HDD, say /dev/sda as a raw block device.



      The problem is, when VirtualBox is accessing the WTG HDD as a raw device, the HDD is still accessible in the hosting Linux OS. I can easily mount /dev/sda1 to some directory and write to it.



      This makes the case extremely dangerous because the Windows OS inside VirtualBox and the hosting Linux would concurrently write to HDD.



      I tried to set the permission of /dev/sda1 as 000, turned out that KDE dolphin can still mount the partition. I want to know if this is any way which I can reliably prevent any mounting operation on /dev/sda1, until I sudo the some operation to allowing mounting again.







      permissions mount partitions





      share







      New contributor




      Wesley Ranger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Wesley Ranger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Wesley Ranger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 6 mins ago









      Wesley RangerWesley Ranger

      101




      101




      New contributor




      Wesley Ranger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Wesley Ranger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Wesley Ranger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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
          });


          }
          });






          Wesley Ranger is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1129012%2fis-it-possible-to-prevent-a-block-device-from-being-mounted-writably%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Wesley Ranger is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Wesley Ranger is a new contributor. Be nice, and check out our Code of Conduct.













          Wesley Ranger is a new contributor. Be nice, and check out our Code of Conduct.












          Wesley Ranger is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Ask Ubuntu!


          • 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%2faskubuntu.com%2fquestions%2f1129012%2fis-it-possible-to-prevent-a-block-device-from-being-mounted-writably%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

          Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

          Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

          Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...