Make bind-mounts unmountable

Multi tool use
I'm using Xubuntu 18.04 and upgraded from 16.04 recently. I'm also using an OwnCloud-based cloudstorage, for which I've added a couple of mount-points in my fstab as follows:
# Store pictures on Stack storage, Stack doesn't allow symlinks so this is the next-best thing
/home/bas/Stack/Pictures /home/bas/Pictures none rw,bind 0 0
# Store documents on Stack storage
/home/bas/Stack/Documents /home/bas/Documents none rw,bind 0 0
# Store music on Stack storage
/home/bas/Stack/Music /home/bas/Music none rw,bind 0 0
# Store videos on Stack storage
/home/bas/Stack/Videos /home/bas/Videos none rw,bind 0 0
# Store public files on Stack storage
/home/bas/Stack/Public /home/bas/Public none rw,bind 0 0
This works like a charm, but I've got a slight problem after upgrading to 18.04: the 5 mountpoints are shown as detachable harddisks in Thunar. 16.04 didnt show them in that way, I'm not really sure what caused this change but I'm seeing it on both my laptops.
Is there something I can do to have the mounts not show up as disks in the Thunar sidebar?
Edit: I've found a couple of similar questions (https://webcache.googleusercontent.com/search?q=cache:mZSxalhbxdMJ:https://unix.stackexchange.com/questions/409989/xfce-desktop-icon-for-bind-mounts%3Frq%3D1+&cd=3&hl=nl&ct=clnk&gl=nl&client=ubuntu , https://forums.fedoraforum.org/showthread.php?300909-Hide-bind-mount-entries-in-Thunar , https://bbs.archlinux.org/viewtopic.php?id=156371) but none provide a solution. I've tried the suggested systemd-based mount option instead but to no avail, it works but Thunar still shows the device as a mounted drive.
Edit 2: apparently, this is a bug in glib2, as per https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/1691908
xubuntu fstab
add a comment |
I'm using Xubuntu 18.04 and upgraded from 16.04 recently. I'm also using an OwnCloud-based cloudstorage, for which I've added a couple of mount-points in my fstab as follows:
# Store pictures on Stack storage, Stack doesn't allow symlinks so this is the next-best thing
/home/bas/Stack/Pictures /home/bas/Pictures none rw,bind 0 0
# Store documents on Stack storage
/home/bas/Stack/Documents /home/bas/Documents none rw,bind 0 0
# Store music on Stack storage
/home/bas/Stack/Music /home/bas/Music none rw,bind 0 0
# Store videos on Stack storage
/home/bas/Stack/Videos /home/bas/Videos none rw,bind 0 0
# Store public files on Stack storage
/home/bas/Stack/Public /home/bas/Public none rw,bind 0 0
This works like a charm, but I've got a slight problem after upgrading to 18.04: the 5 mountpoints are shown as detachable harddisks in Thunar. 16.04 didnt show them in that way, I'm not really sure what caused this change but I'm seeing it on both my laptops.
Is there something I can do to have the mounts not show up as disks in the Thunar sidebar?
Edit: I've found a couple of similar questions (https://webcache.googleusercontent.com/search?q=cache:mZSxalhbxdMJ:https://unix.stackexchange.com/questions/409989/xfce-desktop-icon-for-bind-mounts%3Frq%3D1+&cd=3&hl=nl&ct=clnk&gl=nl&client=ubuntu , https://forums.fedoraforum.org/showthread.php?300909-Hide-bind-mount-entries-in-Thunar , https://bbs.archlinux.org/viewtopic.php?id=156371) but none provide a solution. I've tried the suggested systemd-based mount option instead but to no avail, it works but Thunar still shows the device as a mounted drive.
Edit 2: apparently, this is a bug in glib2, as per https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/1691908
xubuntu fstab
add a comment |
I'm using Xubuntu 18.04 and upgraded from 16.04 recently. I'm also using an OwnCloud-based cloudstorage, for which I've added a couple of mount-points in my fstab as follows:
# Store pictures on Stack storage, Stack doesn't allow symlinks so this is the next-best thing
/home/bas/Stack/Pictures /home/bas/Pictures none rw,bind 0 0
# Store documents on Stack storage
/home/bas/Stack/Documents /home/bas/Documents none rw,bind 0 0
# Store music on Stack storage
/home/bas/Stack/Music /home/bas/Music none rw,bind 0 0
# Store videos on Stack storage
/home/bas/Stack/Videos /home/bas/Videos none rw,bind 0 0
# Store public files on Stack storage
/home/bas/Stack/Public /home/bas/Public none rw,bind 0 0
This works like a charm, but I've got a slight problem after upgrading to 18.04: the 5 mountpoints are shown as detachable harddisks in Thunar. 16.04 didnt show them in that way, I'm not really sure what caused this change but I'm seeing it on both my laptops.
Is there something I can do to have the mounts not show up as disks in the Thunar sidebar?
Edit: I've found a couple of similar questions (https://webcache.googleusercontent.com/search?q=cache:mZSxalhbxdMJ:https://unix.stackexchange.com/questions/409989/xfce-desktop-icon-for-bind-mounts%3Frq%3D1+&cd=3&hl=nl&ct=clnk&gl=nl&client=ubuntu , https://forums.fedoraforum.org/showthread.php?300909-Hide-bind-mount-entries-in-Thunar , https://bbs.archlinux.org/viewtopic.php?id=156371) but none provide a solution. I've tried the suggested systemd-based mount option instead but to no avail, it works but Thunar still shows the device as a mounted drive.
Edit 2: apparently, this is a bug in glib2, as per https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/1691908
xubuntu fstab
I'm using Xubuntu 18.04 and upgraded from 16.04 recently. I'm also using an OwnCloud-based cloudstorage, for which I've added a couple of mount-points in my fstab as follows:
# Store pictures on Stack storage, Stack doesn't allow symlinks so this is the next-best thing
/home/bas/Stack/Pictures /home/bas/Pictures none rw,bind 0 0
# Store documents on Stack storage
/home/bas/Stack/Documents /home/bas/Documents none rw,bind 0 0
# Store music on Stack storage
/home/bas/Stack/Music /home/bas/Music none rw,bind 0 0
# Store videos on Stack storage
/home/bas/Stack/Videos /home/bas/Videos none rw,bind 0 0
# Store public files on Stack storage
/home/bas/Stack/Public /home/bas/Public none rw,bind 0 0
This works like a charm, but I've got a slight problem after upgrading to 18.04: the 5 mountpoints are shown as detachable harddisks in Thunar. 16.04 didnt show them in that way, I'm not really sure what caused this change but I'm seeing it on both my laptops.
Is there something I can do to have the mounts not show up as disks in the Thunar sidebar?
Edit: I've found a couple of similar questions (https://webcache.googleusercontent.com/search?q=cache:mZSxalhbxdMJ:https://unix.stackexchange.com/questions/409989/xfce-desktop-icon-for-bind-mounts%3Frq%3D1+&cd=3&hl=nl&ct=clnk&gl=nl&client=ubuntu , https://forums.fedoraforum.org/showthread.php?300909-Hide-bind-mount-entries-in-Thunar , https://bbs.archlinux.org/viewtopic.php?id=156371) but none provide a solution. I've tried the suggested systemd-based mount option instead but to no avail, it works but Thunar still shows the device as a mounted drive.
Edit 2: apparently, this is a bug in glib2, as per https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/1691908
xubuntu fstab
xubuntu fstab
edited Jan 15 at 13:23
Bas Dalenoord
asked Jan 14 at 8:45


Bas DalenoordBas Dalenoord
13
13
add a comment |
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109565%2fmake-bind-mounts-unmountable%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
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109565%2fmake-bind-mounts-unmountable%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
gca,Y49NKwOfk3Z zPD2UYdnpfkz1nkVb1RCRl2abE20zAPr0