Use the dracut shell to troubleshoot filesystems

Author: | Posted in howto No comments

I have a test VM running Fedora 18 with btrfs filesystems. After applying the latest OS updates the machine failed to boot failing over to a dracut shell. Here’s a short guide on what I did to recover it.

First some OS info:

Fedora 18 | btrfs

During the boot process these messages were displayed after switching back and forth from text mode to GUI mode by pressing the ESC key:

Fedora 18 boot messages

Eventually I got a dracut shell where I typed help and got access to a bunch of utilities:

dracut shell help menu

With the help of dmesg I found what went wrong:

dracut dmesg

It was one of the btrfs partitions that was causing the issues. Just to be sure I searched and found all btrfs partitions that were automatically mounted and ran the btrfsck tool to fix the errors:

dmesg | less
mount
umount /dev/sda2 /dev/sdb1
btrfsck /dev/sda2
btrfsck /dev/sdb1

dracut mount

dracut btrfsck

After fixing the errors I hit CTRL+D to exit the dracut shell and the OS booted successfully.

 

More info on:

 

Hope this helps.

No Responses

Add Your Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.