I am running Ubuntu Precise. In my /etc/init.d, I have a bash script that does the following on startup:
- Cycle
Mounts an image on an NTFS drive. This image contains the ext2 file system with the home directory
Then it is mounted with the --rbind option, which mounts the house inside the image file in / home.
It still works well, although having open files in / home does not prevent the path from being unmounted.
Unfortunately, Nautilus displays a loop connection in the list of removable drives with an icon that allows the user to disable the loop loop. Disconnecting the drive on which it is installed / at home does not contribute to a well-functioning system.
How can I get Nautilus to display this circuit mounted device?
man udisk (7) says that one of the “influential properties of the device in the udev database” is:
UDISKS_PRESENTATION_HIDE
If set to 1, this is a hint for presentation-level software so that the device does not appear to the user.
I assume that setting this property in the / dev / loop should tell Nautilus not to show the device.
How to set UDISKS_PRESENTATION_HIDE in a bash script?
source
share