Why does BTRFS filesystem mount automatically?












2















So I've made a btrfs filesystem that spans across one logical drive (md1) and a USB drive. its all raid 0. so that:



sata
md1--
sata/
btrfs called "Storage"
usb---------/


I've put a line in fstab using UUID=



UUID=2cf6d402-7279-4bdd-b0f8-6931c5db9fe1 /media/<user>/Storage auto x-gvfs-show 0 0


When I mount it via command line ie sudo mount -a everything mounts normally and the only mount point is /media/user/Storage



However, if I reboot it mounts twice for some reason. I get one at /m/u/Storage and another at /m/u/Storage1.



I've noticed this has something to do with the label because before it used to mount at /m/u/btrfs and /mnt/Storage, only the latter of which was in my /etc/fstab.



has me scratching my head.
PS, ubuntu mini iso installation with mate-desktop-minimal, 18.04 lts. normal kernel fresh install all packages up to date. I'm making a nas



EDIT:
I've commented out the fstab and rebooted. The filesystem still mounts at /media/user/Storage. Is this normal BTRFS behavior in ubuntu? And can it be switched off? I wouldn't mind this if I could change its mountpoint; I don't want it in the user directory.










share|improve this question

























  • Are you logged in with some graphical desktop? Perhaps that's mounting the filesystem. Try booting into a text mode only environment and then logging in as root and checking the mounts then.

    – wurtel
    Jan 30 at 15:33











  • i am using a gui, mate. is there a way i can make mate not mount btrfs at boot?

    – Julian Barber
    Mar 9 at 11:07











  • I don't think that this second mount has anything to do with BTRFS. It's probably an auto-mounter (udisks2?) that mounts your USB drive.

    – Kusalananda
    Mar 9 at 11:26











  • ok so i need to figure out how to exclude a specific device from udisks2. i can manage that i think. thanks

    – Julian Barber
    Mar 10 at 0:01
















2















So I've made a btrfs filesystem that spans across one logical drive (md1) and a USB drive. its all raid 0. so that:



sata
md1--
sata/
btrfs called "Storage"
usb---------/


I've put a line in fstab using UUID=



UUID=2cf6d402-7279-4bdd-b0f8-6931c5db9fe1 /media/<user>/Storage auto x-gvfs-show 0 0


When I mount it via command line ie sudo mount -a everything mounts normally and the only mount point is /media/user/Storage



However, if I reboot it mounts twice for some reason. I get one at /m/u/Storage and another at /m/u/Storage1.



I've noticed this has something to do with the label because before it used to mount at /m/u/btrfs and /mnt/Storage, only the latter of which was in my /etc/fstab.



has me scratching my head.
PS, ubuntu mini iso installation with mate-desktop-minimal, 18.04 lts. normal kernel fresh install all packages up to date. I'm making a nas



EDIT:
I've commented out the fstab and rebooted. The filesystem still mounts at /media/user/Storage. Is this normal BTRFS behavior in ubuntu? And can it be switched off? I wouldn't mind this if I could change its mountpoint; I don't want it in the user directory.










share|improve this question

























  • Are you logged in with some graphical desktop? Perhaps that's mounting the filesystem. Try booting into a text mode only environment and then logging in as root and checking the mounts then.

    – wurtel
    Jan 30 at 15:33











  • i am using a gui, mate. is there a way i can make mate not mount btrfs at boot?

    – Julian Barber
    Mar 9 at 11:07











  • I don't think that this second mount has anything to do with BTRFS. It's probably an auto-mounter (udisks2?) that mounts your USB drive.

    – Kusalananda
    Mar 9 at 11:26











  • ok so i need to figure out how to exclude a specific device from udisks2. i can manage that i think. thanks

    – Julian Barber
    Mar 10 at 0:01














2












2








2








So I've made a btrfs filesystem that spans across one logical drive (md1) and a USB drive. its all raid 0. so that:



sata
md1--
sata/
btrfs called "Storage"
usb---------/


I've put a line in fstab using UUID=



UUID=2cf6d402-7279-4bdd-b0f8-6931c5db9fe1 /media/<user>/Storage auto x-gvfs-show 0 0


When I mount it via command line ie sudo mount -a everything mounts normally and the only mount point is /media/user/Storage



However, if I reboot it mounts twice for some reason. I get one at /m/u/Storage and another at /m/u/Storage1.



I've noticed this has something to do with the label because before it used to mount at /m/u/btrfs and /mnt/Storage, only the latter of which was in my /etc/fstab.



has me scratching my head.
PS, ubuntu mini iso installation with mate-desktop-minimal, 18.04 lts. normal kernel fresh install all packages up to date. I'm making a nas



EDIT:
I've commented out the fstab and rebooted. The filesystem still mounts at /media/user/Storage. Is this normal BTRFS behavior in ubuntu? And can it be switched off? I wouldn't mind this if I could change its mountpoint; I don't want it in the user directory.










share|improve this question
















So I've made a btrfs filesystem that spans across one logical drive (md1) and a USB drive. its all raid 0. so that:



sata
md1--
sata/
btrfs called "Storage"
usb---------/


I've put a line in fstab using UUID=



UUID=2cf6d402-7279-4bdd-b0f8-6931c5db9fe1 /media/<user>/Storage auto x-gvfs-show 0 0


When I mount it via command line ie sudo mount -a everything mounts normally and the only mount point is /media/user/Storage



However, if I reboot it mounts twice for some reason. I get one at /m/u/Storage and another at /m/u/Storage1.



I've noticed this has something to do with the label because before it used to mount at /m/u/btrfs and /mnt/Storage, only the latter of which was in my /etc/fstab.



has me scratching my head.
PS, ubuntu mini iso installation with mate-desktop-minimal, 18.04 lts. normal kernel fresh install all packages up to date. I'm making a nas



EDIT:
I've commented out the fstab and rebooted. The filesystem still mounts at /media/user/Storage. Is this normal BTRFS behavior in ubuntu? And can it be switched off? I wouldn't mind this if I could change its mountpoint; I don't want it in the user directory.







ubuntu raid fstab btrfs automounting






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 13 mins ago









msp9011

4,39844167




4,39844167










asked Jan 30 at 13:47









Julian BarberJulian Barber

263




263













  • Are you logged in with some graphical desktop? Perhaps that's mounting the filesystem. Try booting into a text mode only environment and then logging in as root and checking the mounts then.

    – wurtel
    Jan 30 at 15:33











  • i am using a gui, mate. is there a way i can make mate not mount btrfs at boot?

    – Julian Barber
    Mar 9 at 11:07











  • I don't think that this second mount has anything to do with BTRFS. It's probably an auto-mounter (udisks2?) that mounts your USB drive.

    – Kusalananda
    Mar 9 at 11:26











  • ok so i need to figure out how to exclude a specific device from udisks2. i can manage that i think. thanks

    – Julian Barber
    Mar 10 at 0:01



















  • Are you logged in with some graphical desktop? Perhaps that's mounting the filesystem. Try booting into a text mode only environment and then logging in as root and checking the mounts then.

    – wurtel
    Jan 30 at 15:33











  • i am using a gui, mate. is there a way i can make mate not mount btrfs at boot?

    – Julian Barber
    Mar 9 at 11:07











  • I don't think that this second mount has anything to do with BTRFS. It's probably an auto-mounter (udisks2?) that mounts your USB drive.

    – Kusalananda
    Mar 9 at 11:26











  • ok so i need to figure out how to exclude a specific device from udisks2. i can manage that i think. thanks

    – Julian Barber
    Mar 10 at 0:01

















Are you logged in with some graphical desktop? Perhaps that's mounting the filesystem. Try booting into a text mode only environment and then logging in as root and checking the mounts then.

– wurtel
Jan 30 at 15:33





Are you logged in with some graphical desktop? Perhaps that's mounting the filesystem. Try booting into a text mode only environment and then logging in as root and checking the mounts then.

– wurtel
Jan 30 at 15:33













i am using a gui, mate. is there a way i can make mate not mount btrfs at boot?

– Julian Barber
Mar 9 at 11:07





i am using a gui, mate. is there a way i can make mate not mount btrfs at boot?

– Julian Barber
Mar 9 at 11:07













I don't think that this second mount has anything to do with BTRFS. It's probably an auto-mounter (udisks2?) that mounts your USB drive.

– Kusalananda
Mar 9 at 11:26





I don't think that this second mount has anything to do with BTRFS. It's probably an auto-mounter (udisks2?) that mounts your USB drive.

– Kusalananda
Mar 9 at 11:26













ok so i need to figure out how to exclude a specific device from udisks2. i can manage that i think. thanks

– Julian Barber
Mar 10 at 0:01





ok so i need to figure out how to exclude a specific device from udisks2. i can manage that i think. thanks

– Julian Barber
Mar 10 at 0:01










0






active

oldest

votes











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',
autoActivateHeartbeat: false,
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%2f497703%2fwhy-does-btrfs-filesystem-mount-automatically%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
















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497703%2fwhy-does-btrfs-filesystem-mount-automatically%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

CARDNET

Boot-repair Failure: Unable to locate package grub-common:i386

濃尾地震