title: Hiding a mounted device in nautilus
body: <p>I am running Ubuntu Precise.
  In my /etc/init.d I have a bash script that, does the following on startup:</p>
  
  <ol>
  <li><p>loop mounts an image on an NTFS drive. That image contains an ext2 file system with a directory named <em>home</em></p></li>
  <li><p>It then does a mount with a --rbind option that mounts the <em>home</em> within the image file onto <em>/home</em>.</p></li>
  </ol>
  
  <p>Works well so far, although having open files in <em>/home</em> doesn't prevent the loop mount from being unmounted.</p>
  
  <p>Unfortunately, Nautilus displays the loop mount in the list of removable drives with an icon that allows a user to unmount the loop mount. Unmounting the drive on which /home is mounted is not conducive to a well running system.</p>
  
  <p>How can I keep Nautilus from displaying this loop mounted device?</p>
  
  <p><em>man udisk(7)</em> says that one of the 'Influential device properties in the udev database' is:</p>
  
  <blockquote>
    <p>UDISKS_PRESENTATION_HIDE</p>
    
    <p>If set to 1 this is a hint to presentation level software that the device should not be shown to the user.</p>
  </blockquote>
  
  <p>I assume that setting this property on the /dev/loop would tell Nautilus not to show the device.</p>
  
  <p>How would I set the UDISKS_PRESENTATION_HIDE in a bash script?</p>