Re: Cant mount multi-subvolume via fstab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Hugo Mills <hugo@xxxxxxxxxxxxx>:

On Wed, May 23, 2012 at 12:00:02PM -0300, Rogerio Bastos wrote:
Hi,

I'm trying mount many subvolume during boot via fstab:

UUID=xxx /usr btrfs subvol=usr,ro,nodev 0 0
UUID=xxx /home btrfs subvol=home,nodev,nosuid 0 0
UUID=xxx /var btrfs subvol=var,nodev 0 0
UUID=xxx /var/tmp btrfs subvol=var-tmp,nodev,noexec,nosuid 0 0

But only the first one is mounted. When try to mount the others
subvolumes, I get this error:

mount: /dev/sda3 already mounted or /home busy
mount: according to mtab, /dev/sda3 is mounted on /usr
mount: /dev/sda3 already mounted or /var busy
mount: according to mtab, /dev/sda3 is mounted on /usr
mount: mount point /var/tmp does not exist

I'm using linux kernel 3.3.6 and mount 2.20 in Debian 7.

   How are your subvolumes arranged?

   If you have:

top-level            # default subvolume mounted as /
        `--- home
        `--- usr
        `--- var
               `--- tmp

and you are mounting / first, then you don't need to mount the
subvolumes, as they're already visible within /  I'm not quite sure
what the consequences of mounting a subvolume directly onto itself as
a mountpoint are -- but it may have this effect.

   If you have:

top-level
        `--- root    # default subvolume mounted as /
        `--- home
        `--- usr

then you should be able to (and have to) mount them separately.

   Hugo.

I have two partitions:

/dev/sda1 (top-level)  # root filesystem


/dev/sda3 (top-level)
   `--- home
   `--- var
   `--- var-tmp
   `--- usr


The sda3's top-level isn't being mounted.

--

Rogerio de Carvalho Bastos

http://wiki.dcc.ufba.br/Main/RogerioBastos

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux