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. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Christian Hesse
2009-Jan-11 23:15 UTC
[Btrfs-devel] 2.6.29-rc1: Cannot loopback mount btrfs formatted file
On Sunday 11 January 2009, Peter Klotz wrote:> Since 2.6.29-rc1 contains btrfs I had to try it. > > However the loopback mount of my btrfs formatted file fails: > > user at host:~$ dd if=/dev/zero of=btrfs.img bs=1MB count=512 > > user at 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 at 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. -- Regards, Chris
Peter Klotz
2009-Jan-12 06:14 UTC
Re: 2.6.29-rc1: Cannot loopback mount btrfs formatted file
Christian Hesse wrote:> On Sunday 11 January 2009, Peter Klotz wrote: >> 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? > > 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. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Seemingly Similar Threads
- [PATCH 0/2] Fix btrfs blocksize and bind mkfs.btrfs (RHBZ#807905).
- Changing node & leaf size on live partition.
- Compile Error
- Re: [Bugme-new] [Bug 29302] New: Null pointer dereference with large max_sectors_kb
- [PATCH] btrfs-progs: btrfs-image.c: Added NULL pointer check.