Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
BTRFS as root filesystem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
jancici
Apprentice
Apprentice


Joined: 27 Jan 2004
Posts: 284
Location: Slovakia

PostPosted: Thu Dec 23, 2010 1:36 pm    Post subject: BTRFS as root filesystem Reply with quote

I did replace HDD in my laptop. I decide to reinstall gentoo instead of just copy from old HDD.
I also decide to reorganize partition more simply.

I want to put btrfs to roor filesystem.

a)
as first step was install to temporary partition - reiserfs
I can boot new gentoo on this partition
kernel has reiserfs and btrfs in it

b)
format new root parition as btrfs
copy all data from temporary partition to new btrfs parition

c)
change fstab and grub to point to correct root partition


during booting I am geting this message
kernel panic - not syncing VFS; unable to mount root fs on unknown-block (8,5)


this is in my grub
Code:
title 2.6.37
root (hd0,1)
kernel /boot/kernel-2.6.37-rc5 root=/dev/sda5 video=1280x800-24@60

title 2.6.36
root (hd0,1)
kernel /boot/kernel-2.6.36-gentoo-r5 root=/dev/sda6 video=1280x800-24@60


SDA5 is new btrfs partition
SDA6 is temporary reiserfs partition

this is fstab on SDA5
Code:
...
/dev/sda2   /boot   ext2  noatime 1 2
/dev/sda5   /         btrfs  noatime 0 1
...


and this is fstab on SDA6
Code:
...
/dev/sda2   /boot   ext2  noatime 1 2
/dev/sda6   /         reiserfs  noatime 0 1
...


trying to google but no solution
please, what is the problem, do I making error samewhere?

thanks for any help / tip
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Thu Dec 23, 2010 2:22 pm    Post subject: Reply with quote

Quote:
kernel has reiserfs and btrfs in it

Did you compile btrfs support into the kernel, rather than build it as a module?
Back to top
View user's profile Send private message
jancici
Apprentice
Apprentice


Joined: 27 Jan 2004
Posts: 284
Location: Slovakia

PostPosted: Thu Dec 23, 2010 2:25 pm    Post subject: Reply with quote

yes, it is in kernel
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Mon Dec 27, 2010 7:12 am    Post subject: Reply with quote

you might want to add a bootparameter here to indicate which subvolume to use. (example: real_rootflags=subvol=rootfs)
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
jancici
Apprentice
Apprentice


Joined: 27 Jan 2004
Posts: 284
Location: Slovakia

PostPosted: Mon Dec 27, 2010 9:07 am    Post subject: Reply with quote

well, I solve this.
I did mount new partition, and did chroot to it
then I did reinstall grub
after this trick it is working well ...
thanks for reply
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum