Skip to contentSkip to conversation

2.6.29-rc1: Cannot loopback mount btrfs formatted file

DISCUSSION Peter Klotz 1 participant 2 messages Jan 11, 2009 – Jan 12, 2009 1 message not in the archive Btrfs file system

lore
Share & tools
lore
#0 lore raw

Since 2.6.29-rc1 contains btrfs I had to try it.

However the loopback mount of my btrfs formatted file fails:

user@host:~$ dd if=/dev/zero of=btrfs.img bs=1MB count=512
user@host:~$ mkfs.btrfs btrfs.img
fs created label (null) on btrfs.img
    nodesize 4096 leafsize 4096 sectorsize 4096 size 488.28MB
Btrfs v0.16+da35ab2b0b54
user@host:~$ sudo mount -t btrfs -o loop btrfs.img /mnt/btrfs
mount: /dev/loop1: can't read superblock

Is this version of mkfs.btrfs compatible with the kernel module in 2.6.29-rc1?

Any help is appreciated.

Regards, Peter.

#2 lore raw
In reply to a message not in the archive
Quoted 12 lines · Christian Hesse
Quoted 11 lines · Peter Klotz

Since 2.6.29-rc1 contains btrfs I had to try it.

However the loopback mount of my btrfs formatted file fails:

user@host:~$ dd if=/dev/zero of=btrfs.img bs=1MB count=512
user@host:~$ mkfs.btrfs btrfs.img
fs created label (null) on btrfs.img
     nodesize 4096 leafsize 4096 sectorsize 4096 size 488.28MB
Btrfs v0.16+da35ab2b0b54
Quoted 8 lines
Quoted 6 lines
user@host:~$ sudo mount -t btrfs -o loop btrfs.img /mnt/btrfs
mount: /dev/loop1: can't read superblock

Is this version of mkfs.btrfs compatible with the kernel module in 2.6.29-rc1?

You have to use the btrfs-progs from unstable git repository. Chris plans to release a new stable version within one day though.

Thanks, Btrfs v0.16-40-g6a63d49 worked fine.

Regards, Peter.