I assume you're referring to a btrfs raid1 filesystem created on top of two block devices created with something like mkfs.btrfs -L Raid1 -d raid1 /dev/sd* /dev/sd*
Reproduced this setup locally (based on Funtoo instructions from here):
$ dd if=/dev/zero of=/tmp/btrfs-vol0.img bs=1G count=1
$ dd if=/dev/zero of=/tmp/btrfs-vol1.img bs=1G count=1
$ sudo losetup /dev/loop0 /tmp/btrfs-vol0.img
$ sudo losetup /dev/loop1 /tmp/btrfs-vol1.img
Created the fs
$ sudo mkfs.btrfs -L Raid1 -d raid1 /dev/loop0 /dev/loop1
Both loop0 and loop1 do appear in nautilus and unity (using ubuntu 14.10 here). This is not really related to btrfs itself though, but rather due to the way udisks and udev work.
There are two ways to hide the devices from GUI tools, as mentioned below. Solution 1 (preferred) will only hide the ghost device, solution 2 will hide both devices from GUI tools.
1. Create a udev rule to ignore the device(s)
Create a file in /etc/udev/rules.d (e.g. /etc/udev/rules.d/99-local-udisks-btrfs.rules
), and add a rule like this one:
KERNEL=="sdh1", ENV{UDISKS_IGNORE}:="1"
Then run sudo udevadm trigger
to trigger the rule.
for more info, see following links:https://wiki.archlinux.org/index.php/udev,
https://askubuntu.com/questions/124094/how-to-hide-an-ntfs-partition-from-ubuntu
2. Add it to /etc/fstab
e.g
LABEL=rootfs / btrfs defaults,subvol=@,autodefrag 0 0
LABEL=rootfs /home btrfs defaults,subvol=@home,autodefrag
0 0
LABEL=Raid1 /tmp/raid1 btrfs defaults 0 0
Use filesystem LABEL= or UUID=, which you can retrieve from
$ sudo btrfs filesystem show [<path>|<uuid>|<device>|label]
Label: 'Raid1' uuid: 98780c23-5330-4357-8fb8-ef3307fdabc3
Total devices 2 FS bytes used 112.00KiB
devid 1 size 1.00GiB used 231.75MiB path /dev/loop0
devid 2 size 1014.19MiB used 211.75MiB path /dev/loop1
Btrfs v3.14.1
Both volumes shall disappear from unity and nautilus immediately after saving changes to /etc/fstab.This will not however works if your mount point is under /media