Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]mount: unknown filesystem type 'btrfs'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
SwallowUnladen
n00b
n00b


Joined: 02 Jul 2015
Posts: 7

PostPosted: Tue Aug 04, 2015 6:57 pm    Post subject: [SOLVED]mount: unknown filesystem type 'btrfs' Reply with quote

Hi,

I am a newbie. I wont to make btrfs my root, but for now I am working from ext4. I was learning a thing or two about gentoo, but this one totally escapes me:

Code:
# mount  /dev/sda8 /mnt/btrfsroot/
mount: unknown filesystem type 'btrfs'


You have to recompile kernel without using genkernel! God that was obvious. Trust no one!

Answer was here.

Fixed the link, there was an extraneous ] after the =. -- desultory


Last edited by SwallowUnladen on Tue Aug 04, 2015 7:35 pm; edited 2 times in total
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2288
Location: near Augsburg, Germany

PostPosted: Tue Aug 04, 2015 7:07 pm    Post subject: Reply with quote

If you can´t mount a btrfs filesystem, the kernel does not include the support.

Can you try the following mount command:

mount -t btrfs /dev/sda8 /mnt/btrfsroot/
Back to top
View user's profile Send private message
SwallowUnladen
n00b
n00b


Joined: 02 Jul 2015
Posts: 7

PostPosted: Tue Aug 04, 2015 7:11 pm    Post subject: Reply with quote

Keruskerfuerst wrote:
If you can´t mount a btrfs filesystem, the kernel does not include the support.

Can you try the following mount command:

mount -t btrfs /dev/sda8 /mnt/btrfsroot/


The output was the same. You are right and solutions was as expected in kernel.
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Tue Aug 04, 2015 7:19 pm    Post subject: Reply with quote

Yes. Make sure you are booting from the kernel you think you are. It's a common mistake or to forget to reboot to actually run that kernel. :)

'uname -a'
'cat /proc/filesystems'
'lsmod | grep btrfs'
'ls -l /boot/config-$(uname -r)'
grep -i btrfs `ls /boot/config-$(uname -r)` (note use of backtics not single quotes)

Also maybe see what 'btrfs device scan' does and tell us a bit more about your setup such as your kernel, how many disks (sngle or multi-device) your btrfs array is and maybe 'fdisk -l' output if still stuck along with an explanation of what each partition is supposed to be.
Back to top
View user's profile Send private message
SwallowUnladen
n00b
n00b


Joined: 02 Jul 2015
Posts: 7

PostPosted: Tue Aug 04, 2015 7:34 pm    Post subject: Reply with quote

davidm wrote:
Yes. Make sure you are booting from the kernel you think you are. It's a common mistake or to forget to reboot to actually run that kernel. :)

'uname -a'
'cat /proc/filesystems'
'lsmod | grep btrfs'
'ls -l /boot/config-$(uname -r)'
grep -i btrfs `ls /boot/config-$(uname -r)` (note use of backtics not single quotes)

Also maybe see what 'btrfs device scan' does and tell us a bit more about your setup such as your kernel, how many disks (sngle or multi-device) your btrfs array is and maybe 'fdisk -l' output if still stuck along with an explanation of what each partition is supposed to be.


I probably did a ton of this human mistakes today, it seams my main problem with gentoo is human factor.

Also about 'ls -l /boot/config-$(uname -r)'. Where does this file comes from. I am only half(or less) of my way through handbook so maybe I will find answer later.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2288
Location: near Augsburg, Germany

PostPosted: Tue Aug 04, 2015 7:47 pm    Post subject: Reply with quote

/boot/config-$(uname -r)

takes the latest kernel config.

uname -a gives the output of the used kernel and basic system information.
Back to top
View user's profile Send private message
SwallowUnladen
n00b
n00b


Joined: 02 Jul 2015
Posts: 7

PostPosted: Wed Aug 05, 2015 5:51 am    Post subject: Reply with quote

Keruskerfuerst wrote:
/boot/config-$(uname -r)

takes the latest kernel config.

uname -a gives the output of the used kernel and basic system information.


This is what I have:
Code:

efi                                      intel-ucode.img                       refind_linux.conf                         vmlinuz-kernel-genkernel-x86_64-4.0.5-gentoo
initramfs-genkernel-x86_64-4.0.5-gentoo  kernel-genkernel-x86_64-4.0.5-gentoo  System.map-genkernel-x86_64-4.0.5-gentoo


So I supose this config-$(uname -r), comes from:
Code:
# cp /usr/src/linux/.config /boot/config-$(uname -r)


Right?
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2288
Location: near Augsburg, Germany

PostPosted: Wed Aug 05, 2015 7:14 am    Post subject: Reply with quote

You should habve a look at the bash reference here: http://www.gnu.org/software/bash/

cp means copy. See also info cp on console.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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