2

I have a btrfs partition with several subvolumes, one of which is /. I have another subvolume with some other stuff that I also want to mount, but trying to mount it with udisksctl:

udisksctl mount -b /dev/mapper/container -o subvol=other

gives me this error:

Error mounting /dev/dm-0: GDBus.Error:org.freedesktop.UDisks2.Error.AlreadyMounted: Device /dev/dm-0 is already mounted at `/'.

It mounts fine with mount /dev/mapper/container -o subvol=other /mnt. Is there anything I can do to get this to work with udisksctl?

1 Answer 1

1

First read the man page (man udisksctl)! It says you should use --options.

If this is not working, then subvol is considered an unsafe option (IMHO, it should). If so, you can use the mount command or you can set the options directly in /etc/fstab for a given mount point.

1
  • 1
    I did read the man page, and I am using --options (as -o). I did a quick test, and it appears that both subvol and subvolid are not allowed options, although it gives a different error message.
    – Aereaux
    Jul 16, 2015 at 4:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .