You are not logged in.
Hello there,
I just installed Arch a few days ago and without thinking I chose ext4, because I forgot about btrfs.
After I was done configuring my system, I suddenly remembered this. So I tried converting my laptop to btrfs with the following steps:
1) Boot my system with the Arch livecd.
2) modprobe btrfs
3) fsck.ext4 on /dev/sda4
4) btrfs-convert /dev/sda4
4) mount /dev/sda4 and edit fstab and change ext4 to btrfs
5) chroot into /dev/sda4 and run grub-mkconfig -o /boot/grub/grub.cfg
6) exit chroot, umount and reboot.
This all worked fine without problems, but when I rebooted, grub gives me an unknown filesystem error. That was a bummer. Luckily btrfs-convert contains a rollback function, so I had no problems reverting to the original state without restoring a backup.
I tried it again just to make sure I didn't do anything wrong, but the same error came up.
My system specs:
Thinkpad Edge E520 laptop.
linux-ck kernel compiled from AUR.
grub-bios bootloader
Hope some of you can help me figure this out, I've searched the forums, the wiki and Google already to no avail.
Thanks in advance ![]()
Offline
Not sure... maybe you need to reinstall grub to disk and/or regenerate the initramfs?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
You definitely need to regernate the intramfs. I think there is the chance that you might have been able to simply boot from the fallback image, but I am not certain that it automatically contains the btrfs module.
Edit: It does indeed.
lsinitcpio /boot/initramfs-linux-ck-fallback.img | grep btrfs
./usr/lib/udev/rules.d/64-btrfs.rules
./usr/lib/modules/3.7.1-3-ck/kernel/btrfs.koLast edited by WonderWoofy (2012-12-31 17:35:58)
Offline
I know how to reinstall grub, but how would I go about regenerating the initramfs?
Offline
I know how to reinstall grub, but how would I go about regenerating the initramfs?
Seriously? Have you discovered the wonderful Arch wiki?
Last edited by graysky (2012-12-31 17:55:40)
Offline
mkinitcpio -p linux
Offline
Denzo wrote:I know how to reinstall grub, but how would I go about regenerating the initramfs?
Seriously? Have you discovered the wonderful Arch wiki?
Sorry, I shouldn't have asked, I was in a hurry though. I'll check it out.
Thanks for all the generous answers, I hope you all have a wonderful new year's eve ![]()
Offline
Found some time to mess around with it again, and I got a bit further but I'm still stuck.
This time I ran btrfs-convert again, mounted the partition, changed the fstab to btrfs from ext4, chrooted inside, ran mkinitcpio -p linux-ck and reinstalled grub (grub-install /dev/sda) and generated a new config file. Now I can actually get into grub and I can try to boot, but both the normal image and the fallback get stuck on booting. It seems to me that it just doesn't get mounted, but I've no clue on what to do here.
EDIT:
My mistake, it boots, and my system works, it's just that X is broken now.
EDIT 2:
Everything is read only, even though rw flag is on.
Last edited by Denzo (2013-01-02 04:04:07)
Offline
Bump ![]()
Offline
did you edit your fstab?
Edit: nevermind, missed that on the first read.
Last edited by Scimmia (2013-01-03 21:43:42)
Offline
you run btrfsck and or btrfs-zero-log??
Lenovo ThinkPad L420 modified
:: Intel i7 2560QM :: 8 GB RAM :: SSD 256 GB ::
:: DVD read+Writter :: 3 USB 3.0 Expresa Card ::
:: a Favulous 1 mins lasting Io-Li battery ::cry::
Offline
I did run btrfsck and nothing was wrong ![]()
Offline
1) Please post /etc/fstab to give us an idea of how you mount your filesystems.
2) How do you start X? Even if the conversion process somehow borked your X configuration, it should be simple enough to just repair it (or restore it from that back-up you no doubt made before converting
)
Offline
1) Please post /etc/fstab to give us an idea of how you mount your filesystems.
2) How do you start X? Even if the conversion process somehow borked your X configuration, it should be simple enough to just repair it (or restore it from that back-up you no doubt made before converting)
The reason X didn't start was because it couldn't move/write some files in /var, because the filesystem was read-only. I'll post my fstab once I have time to have a go at it again (rolled back to ext4 once more).
Thanks for the help so far!
Offline
Hi Denzo, could you tell me if you were successful in your effort? like you, i am planning to convert my root partition to btrfs and your example has scared me by a teensy amount. Also, have you had any problems after converting?
Offline
I'm seeing the exact same thing. As soon as I manually remount / as rw, everything is fine.
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
/dev/sda4 / btrfs defaults,user_xattr,relatime 0 0
As you can see, pass is turned off in my fstab, but it's still coming up RO. It looks like something is still forcing an fsck, but I don't know what. At one point fsck was in my mkinitcpio.conf HOOKS variabole, but I took that out.
Offline