You are not logged in.
Would i be able to easily install Arch with ext4, then upgrade to latest kernel and then change ext4 to btrfs ? Do i need to manually tinker any configuration files for that ?
Offline
I tried that yesterday and I failed; it was failing at boot when loading the btrfs module. Perhaps it would work if you compiled btrfs into the kernel; I didn't bother.
Offline
Perhaps it would work if you compiled btrfs into the kernel.
I thought btrfs is already in latest kernel. And i only need to upgrade the kernel
Offline
It is in the latest kernel. As all (most?) filesystems it's compiled as a module in Arch's kernel. It works okay for non-root partitions, but for some reason the module failed to load for me when I tried to use btrfs for a root partition; hence the "maybe it'd work if compiled in, not as a module" line.
Offline
And yeah, you should be aware that btrfs is still marked experimental. Not something you'd want to use if you want a stable system.
Offline
I fail to see the reasoning of using such an untested fs for root.
Make a completely new filesystem (mount it on /test or something similar) and then check it out to your hearts desire.
By using it on the root filesystem (and the same - to a somewhat lesser degree - goes for ext4) you are inviting trouble.
Last edited by perbh (2010-01-11 21:29:39)
Offline
Here's what you do (I haven't tried this yet):
Start the Arch installer, setup your partitions choosing whatever for the fs type.
Before going onto the "Select Packages" stage, go to another tty and modprobe btrfs. Then all you need is to get the PKGBUILD for btrfs-progs in AUR to mkfs.btrfs on the partition you want then go on with the installation.
edit:
Ok so in theory this should work but I ran out of space on the unionfs after downloading base-devel...I'm giving up now
edit again:
One other thing I just noticed. There is a package in AUR, mkinitcpio-btrfs. I assume that needs to be used when using btrfs as /
Last edited by sand_man (2010-01-11 21:54:33)
Offline
You could always install to a partition, update, then format a second partition as btrfs and cp -a the original install to it.
Offline
You could always install to a partition, update, then format a second partition as btrfs and cp -a the original install to it.
But that's too easy
Offline
Misfit138 wrote:You could always install to a partition, update, then format a second partition as btrfs and cp -a the original install to it.
But that's too easy
LOL! You're right, somehow..
Offline
I've added the modules listed in the comments of mkinitcpio-btrfs to initcpio and now btrfs with compression works as a root filesystem.
Offline
I've added the modules listed in the comments of mkinitcpio-btrfs to initcpio and now btrfs with compression works as a root filesystem.
I can't seem to boot from btrfs (/boot is ext2 / is btrfs) - I get:
kinit: Unable to mount root fs n device dev(8,18)
kinit: init not found!
I have added the modules : "zlib_deflate btrfs libcrc32c crc32c" in the array and added the btrfs hook in mkinitcpio and have rebuilt my image with mkinicpio -g.
Can anyone point me in the right direction? I've tried with UUID and direct naming (/dev/sdxx) but the kernel tells me that the drive is /dev/sdb and has sdb1 and sdb2 visible and then a fe lines later tells me that it can't mount root fs on dev(8,18)
Offline
lucke wrote:I've added the modules listed in the comments of mkinitcpio-btrfs to initcpio and now btrfs with compression works as a root filesystem.
I can't seem to boot from btrfs (/boot is ext2 / is btrfs) - I get:
kinit: Unable to mount root fs n device dev(8,18)
kinit: init not found!I have added the modules : "zlib_deflate btrfs libcrc32c crc32c" in the array and added the btrfs hook in mkinitcpio and have rebuilt my image with mkinicpio -g.
Can anyone point me in the right direction? I've tried with UUID and direct naming (/dev/sdxx) but the kernel tells me that the drive is /dev/sdb and has sdb1 and sdb2 visible and then a fe lines later tells me that it can't mount root fs on dev(8,18)
Did you install btrfs-progs-unstable?
Did you run btrfs-convert on the root filesystem device while it's unmounted? (boot from installation media to do this)
Did you set the root filesystem type to btrfs in /etc/fstab?
I'm up and running on btrfs root (in a VM) now.
Offline
I switched from btrfs back to ext4 on my main system as the disk filled very quickly. When i hit something around 66% disk usage on the root partition it was suddenly full. I guess it's a known issue and has to do with the size of the meta data.
I'm still running BTRFS on my laptop though and apart from the space issue it runs great. Installation was very easy with ArchBoot though i didn't convert anything but did a new partition table.
@brendan: Maybe you will have better lcuk with the btrfs hook by extofme. You can find it in the AUR.
Last edited by demian (2010-06-26 01:18:10)
no place like /home
github
Offline
demian, use sudo btrfs filesystem balance / to fix the 66% issue...
Offline
I have successfully converted my /root filesystem from ext4 to btrfs and removed /ext2_saved/image to save space. So far I didn't find any problem. Performance is good.
Offline
Old thread... But still...
Can you resume from hibernate? I can't. Just boots normally with no more than "resume failed". Same config was ok with jfs.
฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz
Offline
It was working with ext4. I don't use hibernate feasibility. I didn't see whether it is working or not. I will check ...
Last edited by murugan (2010-08-03 11:21:59)
Offline
Have you tested it? Now I get some more in everything.log:
Aug 16 07:48:00 chriseee kernel: PM: Starting manual resume from disk
Aug 16 07:48:00 chriseee kernel: PM: Resume from partition 8:6
Aug 16 07:48:00 chriseee kernel: PM: Checking hibernation image.
Aug 16 07:48:00 chriseee kernel: PM: Error -22 checking image file
Aug 16 07:48:00 chriseee kernel: PM: Resume from disk failed.
edit:
Hm... https://bbs.archlinux.org/viewtopic.php?pid=807114
Last edited by Cdh (2010-08-19 06:50:49)
฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz
Offline
Yes. I tried suspend to disk but without success. I tried latest kernel-ck 2.6.35 from AUR as well. I have tried every possible options that I can understand. I found no problem when using ext4 as root. It is btrfs problem which is still very much in development so we may have fix in next kernel 2.6.36.
Offline
Ok, thanks.
I'd try tuxonice, but I don't want to compile an extra kernel, especially because at the moment I only have a netbook...
฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz
Offline
After trying hibernation with tuxonice with the -pf kernel from here:
https://bbs.archlinux.org/viewtopic.php?pid=815890
My btrfs root partition is now unmountable:
btrfsck still does not have abilities to fix error but this is the error when it tries to check the filesystem:
parent transid verify failed on 64466944 wanted 25870 found 20155
parent transid verify failed on 64466944 wanted 25870 found 20155
parent transid verify failed on 64466944 wanted 25870 found 20155
btrfsck: disk-io.c:739: open_ctree_fd: Assertion `!(!tree_root->node)' failed.
But maybe it's not btrfs' fault because pm-hibernate with the same kernel on the jfs partition on the same machine lead to massive file loss. After reinstalling all packages with missing files (200+) it works fine again.
฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz
Offline