Re: How do I correctly mount a multidevice volume via fstab?

Thomas Kuther
2009-02-06T19:17:15Z

Yan Zheng <yanzheng <at> 21cn.com> writes:

> > So I have to run btrfsctl -a first, then mounting works. Can this be done
> > via fstab?
>
> you can add 'device=/dev/xxx' to the mount options field.
>
> for example:
> /dev/disk/by-id/scsi-SATA_ST31000333AS_9TE12DSC-part7 /mnt/btrfs btrfs
> device=/dev/disk/by-id/scsi-SATA_ST31000333AS_9TE12DSC-part1 1 2
>
> Regards
> Yan Zheng

Ah nice, that easy.

Thank you!

Best,
Thomas