strange things are afoot #

Recently, I decided to test out Btrfs. In typical fashion, instead of creating a new partition, I decided to use btrfs-convert to convert an existing ext4 partition. The conversion went successfully, until I tried to mount the partition again.

% mount /dev/sdb2 /mnt/data0-1
% ls /mnt/data0-1

~nothing was there~

Obviously, something was wrong. But what?

I checked dmesg -

% dmesg | grep BTRFS
[95957.982602] BTRFS info (device sdb2): disk space caching is enabled
[95957.982604] BTRFS info (device sdb2): has skinny extents

Nothing weird or wrong looking so far.

At this point, I remembered how I had set this partition up to mount - in my /etc/fstab, I’d set it to mount using systemd’s automount. Systemd parses the fstab and creates .automount files for each partition set up to mount automatically. I checked the status of the automount file for the partition:

% systemctl status mnt-data0\\x2d1.mount
Warning: The unit file, source configuration file or drop-ins of mnt-data0\x2d1.mount changed on disk. Run 'systemctl daemon-reload' to reload units.

Honestly this should have been my first thought, but I ran systemctl daemon-reload

% mount /dev/sdb2 /mnt/data0-1
% ls /mnt/data0-1

~All my files!~