Mailinglist Archive: opensuse-factory (949 mails)

< Previous Next >
Re: [opensuse-factory] testing btrfs
  • From: Sid Boyce <sboyce@xxxxxxxxxxxxxxxx>
  • Date: Sun, 02 Aug 2009 15:22:05 +0100
  • Message-id: <4A75A10D.7020607@xxxxxxxxxxxxxxxx>
Yesterday evening just for fun and the fact that I had a spare HD in the
box, "zypper in btrfsprogs", formatted a btrfs partition, mounted it
from the command line and rsync'd some directories across from another box.
Amended /etc/fstab, rebooted for a change of kernel and it came up
mounted OK. I am using it as an additional backup drive, no problem if
it loses data, so far so good.
Possibly your problem is with VirtualBox. Is the "btrfs" module loaded?
It loaded automatically when I tried mounting the partition and on reboot.
May be later I can try creating a virtual HD under a VirtualBox VM to
see if I get mount problems with it.
tindog:~ # mount
/dev/sda1 on / type xfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sdb1 on /data1 type btrfs (rw)
none on /tmp type tmpfs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/proc on /var/lib/ntp/proc type none (ro,bind)
/proc on /var/lib/ntp/proc type none (ro,bind)
/proc on /var/lib/ntp/proc type none (ro,bind)
tindog:~ # ls -l /data1
total 0
drwxr-xr-x 1 root root 2080 2009-03-21 23:14 ARTICLES
drwxr-xr-x 1 root root 84 2008-11-07 01:43 COMMENTS
drwxr-xr-x 1 root root 60 2008-09-29 11:49 ELECTRONICS
drwxr-xr-x 1 root root 30 2008-09-29 12:15 GUITAR
drwxr-xr-x 1 root root 6604 2008-12-16 20:45 HAMRADIO
drwxr-xr-x 1 root root 3392 2009-05-04 00:15 HARDWARE_MANUALS
dr-xr-xr-x 1 root root 598 2008-11-21 20:58 letters
drwxr-xr-x 1 root root 32 2008-09-29 12:16 MOVIES
drwxr-xr-x 1 root root 510 2009-05-28 13:44 Sun_E4500
drwxr-xr-x 1 root root 30 2008-09-29 12:20 YOUTUBE
tindog:~ #

tindog:~ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 870G 292G 579G 34% /
udev 2.0G 560K 2.0G 1% /dev
/dev/sdb1 401G 1.8G 399G 1% /data1
none 2.0G 92K 2.0G 1% /tmp

tindog:~ # lsmod|grep btrfs
btrfs 405400 1
libcrc32c 2424 1 btrfs

Regards
Sid.

Apologies for top posting - just noticed it.
============================================
On 02/08/09 12:50, Luc Willems wrote:
Hello,

i'm trying to test the new btrfs filesystem in opensuse factory.

i have currently followin kernel and btrfs packages installed:
kernel-default-2.6.30-10.1
btrfsprogs-0.19-2.2

i'm running this in VirtualBox 3.0.2
i can create btrfs on /dev/sdb1 but when i mount it , i get following error :

linux-m4pt:/home/luc # mount -vvvv /dev/sdb1 /data

mount: fstab path: "/etc/fstab"

mount: mtab path: "/etc/mtab"

mount: lock path: "/etc/mtab~"

mount: temp path: "/etc/mtab.tmp"

mount: UID: 0

mount: eUID: 0

mount: spec: "/dev/sdb1"

mount: node: "/data"

mount: types: "(null)"

mount: opts: "(null)"

mount: you didn't specify a filesystem type for /dev/sdb1

I will try type btrfs

mount: mount(2) syscall: source: "/dev/sdb1", target: "/data",
filesystemtype: "btrfs", mountflags: -1058209792, data: (null)
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,

missing codepage or helper program, or other error

In some cases useful info is found in syslog - try

dmesg | tail or so

looking in dmes , i see following :

[ 3086.053308] device fsid 3446bae7efc3e33f-daf4e58f9a3617ae devid 1 transid
7 /dev/sdb1
[ 3086.054435] BTRFS: couldn't mount because of unsupported optional features
(1).
[ 3086.054593] btrfs: open_ctree failed

checking the device seems to be ok
linux-m4pt:/home/luc # btrfsck /dev/sdb1
found 28672 bytes used err is 0
total csum bytes: 0
total tree bytes: 28672
total fs tree bytes: 4096
btree space waste bytes: 23875
file data blocks allocated: 0
referenced 0
Btrfs Btrfs v0.19

luc


--
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks

--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References