 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

15th May 2012, 09:39 AM
|
|
Registered User
|
|
Join Date: Mar 2006
Location: Ipswich, UK
Posts: 101

|
|
|
Fedora 16 with BTRFS - kernel panic
Hi guys,
your help would be really appreciated.
I have a fresh installation of F16 64 bit. Decided to use BTRFS file system. The oldest kernel is alright, can boot to the system. Any new one gives me an error in pictures.
Bootable one is 3.3.1
Non-bootable ones are 3.3.4, 3.3.5
Also root partition has size of 300 MB, but values in used/avaliable doesn't give me summary of 300 MB.
Thank you.
Dali
|

15th May 2012, 07:09 PM
|
|
Official Gnome 3 Sales Rep. (and Adminstrator)
|
|
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,707

|
|
|
Re: Fedora 16 with BTRFS - kernel panic
What does /boot/grub2/grub.cfg look like?
|

15th May 2012, 07:17 PM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,602

|
|
|
Re: Fedora 16 with BTRFS - kernel panic
Why have you cut out so much of the text of the panic screen?
As its not working, that text might be required -> only 'blur' those areas that are sensitive.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
|

15th May 2012, 07:28 PM
|
|
Registered User
|
|
Join Date: Mar 2006
Location: Ipswich, UK
Posts: 101

|
|
|
Re: Fedora 16 with BTRFS - kernel panic
Thanks guys for reply.
@Sea, sorry, was limited by picture size
@Gareth, here is a part of my grub.cfg file. I am currently running the latest kernel, was able to boot it.
menuentry 'Fedora (3.3.5-2.fc16.x86_64)' --class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod btrfs
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 7ed51ac6-b21a-4bf8-87df-dd6835fe3b56
echo 'Loading Fedora (3.3.5-2.fc16.x86_64)'
linux /vmlinuz-3.3.5-2.fc16.x86_64 root=UUID=fa1ce61c-94f0-42b7-9294-75e069637c15 ro rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=latarcyrheb-sun16 KEYTABLE=uk rd.luks=0 LANG=en_US.UTF-8
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.3.5-2.fc16.x86_64.img
}
menuentry 'Fedora (3.3.4-1.fc16.x86_64)' --class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod btrfs
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root 7ed51ac6-b21a-4bf8-87df-dd6835fe3b56
echo 'Loading Fedora (3.3.4-1.fc16.x86_64)'
linux /vmlinuz-3.3.4-1.fc16.x86_64 root=UUID=fa1ce61c-94f0-42b7-9294-75e069637c15 ro rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=latarcyrheb-sun16 KEYTABLE=uk rd.luks=0 LANG=en_US.UTF-8
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.3.4-1.fc16.x86_64.img
}
---------- Post added at 07:24 PM ---------- Previous post was at 07:22 PM ----------
Maybe this part is interesting from boot.log:
systemd-fsck[946]: fsck: fsck.btrfs: not found
systemd-fsck[946]: fsck: error 2 while executing fsck.btrfs for /dev/sda5
systemd-fsck[881]: fsck: fsck.btrfs: not found
systemd-fsck[881]: fsck: error 2 while executing fsck.btrfs for /dev/sda3
Started File System Check on /dev/disk/by-uuid/0f52c8dd-5184-44dd-a270-9bbc51b4ff73
---------- Post added at 07:28 PM ---------- Previous post was at 07:24 PM ----------
Also
/dev/sda3 300M 51M 19M 74% /boot
|

15th May 2012, 07:41 PM
|
 |
Registered User
|
|
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300

|
|
|
Re: Fedora 16 with BTRFS - kernel panic
Should work. I *suspect* when you did a yum install of the newer kernels that the btrfs.ko loadable file system was not included in the initramfs created.
You can list the modules included and look for loadables like this ...
gzip -d </boot/initramfs-3.3.0.XXXX.img | cpio -itv | grep ko #fill-n YOUR initramfs file name
I thought dracut was 'sposed to examine your fstab and loaded modules for fs types. Unclear.
p.s. your grub looks good, but that insmod is just for grub and doesn't replace the initramfs.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
|

15th May 2012, 07:55 PM
|
|
Registered User
|
|
Join Date: Mar 2006
Location: Ipswich, UK
Posts: 101

|
|
|
Re: Fedora 16 with BTRFS - kernel panic
Hi Stevea,
thanks for your reply.
Don't know what to look at. The output from your command is in attached file.
Dali.
|

15th May 2012, 07:57 PM
|
 |
Registered User
|
|
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449

|
|
|
Re: Fedora 16 with BTRFS - kernel panic
It's kind of weird that the boot.log shows it looking for fsck.btrfs, the fsck tool for btrfs is called /sbin/btrfsck
|

15th May 2012, 08:24 PM
|
 |
Registered User
|
|
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300

|
|
|
Re: Fedora 16 with BTRFS - kernel panic
Quote:
Originally Posted by dally_z
Don't know what to look at. The output from your command is in attached file.
|
Quote:
|
-rwxr--r-- 1 root root 1079056 May 8 12:59 run/initramfs/lib/modules/3.3.5-2.fc16.x86_64/kernel/fs/btrfs/btrfs.ko
|
So the 'driver' is included and I see the default dracut udev config loads btrfs,ko as needed. That's not the problem.
Quote:
Originally Posted by marko
It's kind of weird that the boot.log shows it looking for fsck.btrfs, the fsck tool for btrfs is called /sbin/btrfsck
|
Not strange. systemd calls systemd-fsck which call "fsck -t fstype" which tries to call /sbin/fsck.$fstype (like fsck.ext4 or fsck.vfat). But there is no /sbin/fsck.btrfs Maybe this is b/c the btrfs fsck is incomplete or doesn't take the 'standard' arguments.
Personally I'd create a dummy script at /sbin/fsck.btrfs, like:
#!/bin/bash
return 0
just to shutup systemd.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
|

27th May 2012, 05:47 AM
|
 |
Registered User
|
|
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449

|
|
|
Re: Fedora 16 with BTRFS - kernel panic
Quote:
Originally Posted by stevea
Personally I'd create a dummy script at /sbin/fsck.btrfs, like:
#!/bin/bash
return 0
just to shutup systemd.
|
another good way might be:
Quote:
|
ln -s /bin/true /sbin/fsck.btrfs
|
|

15th May 2012, 08:45 PM
|
|
Registered User
|
|
Join Date: Mar 2006
Location: Ipswich, UK
Posts: 101

|
|
|
Re: Fedora 16 with BTRFS - kernel panic
Thanks a lot for your explanation.
Do you recommend to reinstall the system or it's possible to do something with btrfs components.
As I mentioned before, there is something wrong with this partition:
/dev/sda3 300M 51M 19M 74% /boot (used/available gives me 70MB)
Installation went alright all the way, computer is brand new one.
Thinking to reinstall it with F17 and ext4 in a week time.
|

15th May 2012, 08:56 PM
|
|
Official Gnome 3 Sales Rep. (and Adminstrator)
|
|
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,707

|
|
|
Re: Fedora 16 with BTRFS - kernel panic
btrfs looks like it is included in the initramfs from the file you posted.
If the problem is the missing fsck.btrfs (which wouldn't explain why it appears to be kernel-dependent), you could try symlinking fsck.btrfs to btrfsck (risky!), or change the last number on the corresponding lines in /etc/fstab from 1 to 0, to disable automatic checking for the btrfs volumes.
I can't see anything wrong with the GRUB config either.
|

25th May 2012, 11:42 AM
|
|
Registered User
|
|
Join Date: Mar 2006
Location: Ipswich, UK
Posts: 101

|
|
|
Re: Fedora 16 with BTRFS - kernel panic
Another update for kernel. This time it's version 3.3.6. And again I was not able to boot, getting errors mentioned above.
I have found a solution to recreate image:
# dracut /boot/initramfs-3.3.6-3.fc16.x86_64.img 3.3.6-3.fc16.x86_64
After this command execution I am able to boot to the latest kernel.
However, there is still remaining problem with displaying/using boot partition (BTRFS file system).
/dev/sda3 300M 51M 19M 74% /boot (used/available gives me 70MB in total, not 300MB) - where is the rest of space
Therefore I can keep only 2 kernel installations.
Any ideas?
Thank you.
Dali.
|

25th May 2012, 05:33 PM
|
|
Official Gnome 3 Sales Rep. (and Adminstrator)
|
|
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,707

|
|
|
Re: Fedora 16 with BTRFS - kernel panic
It might make your life easier to reformat /boot as ext4. There's not really any benefit to using btrfs on /boot, at least until Red Hat etc. make it the official default for their systems and it can be considered 'final'. There are potential disadvantages in that btrfs uses more space for meta-data (file-system structure etc.), and if /boot is snapshotted by yum when updating, the old kernels probably aren't really being removed.
|

26th May 2012, 12:34 PM
|
|
Registered User
|
|
Join Date: Mar 2006
Location: Ipswich, UK
Posts: 101

|
|
|
Re: Fedora 16 with BTRFS - kernel panic
Hi Gareth,
thanks a lot for your feedback/help.
I will reformat boot partition as you recommend.
Thanks again.
Dali.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 10:30 (Wednesday, 22-05-2013)
|
|
 |
 |
 |
 |
|
|