FedoraForum.org - Fedora Support Forums and Community
Results 1 to 11 of 11
  1. #1
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    15,698

    Help with a boot error / dracut

    Got this when booting Fedora 19 this afternoon.
    PHP Code:
    dracut-initqueue[109]: Warning:    Could not boot.
    dracut-initqueue[109]: Warning /dev/disk/by-uuid/66fad037-3a77-4ef1-ac36-3b20262dbec7 does not exist
                Starting Dracut Emergency Shell
    Warning
    : /dev/disk/by-uuid/66fad037-3a77-4ef1-ac36-3b20262dbec7    does not exist

    Generating 
    "/run/initramfs/sosreport.txt"

    Entering emergency mode. Exit the shell    to continue.
    Type "journalctl" to view system logs.
    You might want to save "/run/initramfs/sosreport.txt" to a USB stick or    /boot
    after mounting them 
    and attach it to a bug report.

    dracut:/
    Seems no matter how I try I can't save anything when I'm at that dracut prompt. Chalk it up to inexperience. Anyhow, I had installed gNewSense earlier today using /dev/sdb11 as the installation target. That worked well. Unfortunately I could see no way to stop the installer from formatting my existing swap partition, /dev/sdb10, so it was formatted along with the target partition. Of course the formatting changed the UUID of both partitions. I knew this would happen and it is why I would have preferred swap not be formatted.

    Whatever. Now my Fedora 19 system won't boot and I have no idea what to do about it. I know that /dev/disk/by-uuid/66fad037-3a77-4ef1-ac36-3b20262dbec7 was the swap partition before the installation of gNewSense. Now the UUID of the swap partition is 29ccee8c-81c0-4703-b10b-493ceb6e6977

    I am currently booted into Fedora 19 using the rescue option from the grub2 boot menu.

    Comments or suggestions anyone?
    Glenn
    The Bassinator
    © ®

  2. #2
    Join Date
    May 2011
    Location
    Confoederatio Helvetica (Swissh)
    Age
    38
    Posts
    4,277

    Re: Help with a boot error / dracut

    'Update' the UUID in the fstab of the installed OS?
    To get the new UUID a simple
    Code:
    sudo blkid
    should work fine.
    EFI Cheatsheet :: http://forums.fedoraforum.org/showthread.php?t=298546
    Video Handler Script (VHS) (mass re-encode videos, screenrecorder, console music/webradio player, ...) :: http://forums.fedoraforum.org/showthread.php?t=299182
    Windows 8+ & Fedora 20+ Dualboot :: http://forums.fedoraforum.org/showthread.php?t=298161

  3. #3
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    15,698

    Re: Help with a boot error / dracut

    Hello Sea. Thanks for the reply

    Here's the portion of fstab that concerns swap:
    PHP Code:
    # Accessible filesystems, by reference, are maintained under '/dev/disk'
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
    #
    UUID=c4989711-f51c-4ff0-b13d-4990997fad85 /                       ext4    defaults        1 1
    #UUID=66fad037-3a77-4ef1-ac36-3b20262dbec7 swap                    swap    defaults        0 0
    UUID=29ccee8c-81c0-4703-b10b-493ceb6e6977 swap                    swap    defaults        0 0 
    I had commented out the second line some days ago when I installed something else, probably Scientific Linux. The swap was formatted then too and I got boot errors with Fedora at that time also. I knew how to handle it then by adding the new UUID of the swap partition to fstab. That worked perfectly. However, in that case Fedora booted but the boot was delayed for several minutes. I also had no dracut errors then.

    The line below the commented one is the current blkid of the swap partition. Fedora is still looking for the old swap blkid.
    Glenn
    The Bassinator
    © ®

  4. #4
    Join Date
    May 2011
    Location
    Confoederatio Helvetica (Swissh)
    Age
    38
    Posts
    4,277

    Re: Help with a boot error / dracut

    How about /etc/default/boot?
    And/or other Grub2 settings?

    EDIT:
    Does any of these swap-UUID's match the current (supposed) one?
    EFI Cheatsheet :: http://forums.fedoraforum.org/showthread.php?t=298546
    Video Handler Script (VHS) (mass re-encode videos, screenrecorder, console music/webradio player, ...) :: http://forums.fedoraforum.org/showthread.php?t=299182
    Windows 8+ & Fedora 20+ Dualboot :: http://forums.fedoraforum.org/showthread.php?t=298161

  5. #5
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    15,698

    Re: Help with a boot error / dracut

    Quote Originally Posted by sea
    How about /etc/default/boot?
    And/or other Grub2 settings?
    I'll have to reboot into rescue mode. Currently trying to debug ...
    Quote Originally Posted by sea
    EDIT:
    Does any of these swap-UUID's match the current (supposed) one?
    Yes. The last line is the current UUID of the swap partition. The one that is commented out is the one that Fedora is looking for.I can confirm that it does not exist.
    Glenn
    The Bassinator
    © ®

  6. #6
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    15,698

    Re: Help with a boot error / dracut

    All better now. For the benefit of others here how this is fixed.

    * Boot to rescue mode by choosing same in grub boot menu.
    * Open a terminal and log in as root
    * Run the following commands
    PHP Code:
    mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-oh_crud.img
    dracut 
    /boot/initramfs-$(uname -r).img $(uname -r
    * Reboot and choose the offending kernel from the boot menu
    * Notice that you can now boot the previously broken kernel
    * Rejoice in the knowledge that you fixed the issue on your own
    * Plan on making absolutely no changes in the way you do things with your computer
    * Go find some other Linux distribution to install knowing full well that if installing this distribution breaks your system one of 2 things will happen.
    a. You will eventually fix it
    b. You will format the disk and start over
    Glenn
    The Bassinator
    © ®

  7. #7
    Join Date
    Jan 2016
    Location
    Aberdeenshire
    Posts
    1

    Re: Help with a boot error / dracut

    I just *had* to register to post a thank you to glennzo for posting the solution to this. I'd been "playing" with my Microserver Gen8 for a week now trying to work out why my oh-so-simple dd of my old MicroSD system disk to my new SSD resulted in boot failures citing the missing by-uuid device as the reason.

    This worked for me, and I now have my Microserver in RAID mode instead of the Legacy SATA mode. Smokin' hot performance on my front mounted SATA drives now!!

    : )

    Cheers,
    Ripface.

  8. #8
    Join Date
    Mar 2012
    Location
    München, Deutschland
    Posts
    897

    Question Re: Help with a boot error / dracut

    Very interesting thread. Now I am in the need of fixing my fstab (nonexistent) in the dracut (emergency) mode.

    Needless to say, I did another stupidity, but this is good. This is right, since it opened my eyes wide. And I'll learn more!

    Yesterday, using my Fedora 25 VM, I was forced to change my Virtual Disk Volume Group ID from fedora to fedora_vm, in order to copy my virtual box directories from Fedora25 VM to other SSD with the physical partitions, with the same Volume Group name fedora. I could not mount /dev/sdc7 to /mnt before I renamed. Then everything went right, I copied virtual box context to the /dev/sdc7, but after disconnecting external SSD, I forgot to rename Virtual Disk Volume Group ID from fedora_vm to fedora back.

    Now, Fedora25 VM could not boot, since emergency mode upon issuing the following command: dracut:/bin# dracut-emergency does display the following:

    dracut:/bin# dracut-emergency

    Warning: /dev/fedora/root does not exist
    Warning: /dev/fedora/swap does not exist
    Warning: /dev/mapper/fedora-root does not exist

    Generating "/run/initramfs/sosreport.txt"

    Entering emergency mode. Exit the shell to continue.
    Type "journalctl" to view system logs.
    You might want to save "/run/initramfs/sosreport.txt" to a USB stick or /boot
    after mounting them and attach it to a bug report.

    dracut: /usr/bin#
    Which is very correct behavior since I do NOT have fedora Volume Group ID, rather fedora_vm.

    I do NOT have in /etc/ file fstab, so this is another problem.

    Any advice anybody have?

    (I am working on this, as we speak)

    Thank you,
    _nobody_

  9. #9
    Join Date
    Mar 2012
    Location
    München, Deutschland
    Posts
    897

    Talking [indeed, SOLVED!] Help with a boot error / dracut

    After three hours of drama , nobody solves the problem. Two ways to solve it: [1] from grub2, [2] from dracut emergency mode.

    That's All I Have To Say About That.

    _nobody_

  10. #10
    Join Date
    Feb 2017
    Location
    Southampton
    Posts
    1

    Re: Help with a boot error / dracut

    +1 to thanks to Glen for the fix. Really. Many thanks

    I have an SSD with our production image of fedora on it, so clonezillad it to a fancy new laptop with m2 sata drives... which then stubbornly refused to boot any of the kernel versions with *exactly this dracut failed to mount error*. Dracut shell is no use as it's not showing any of the drives (nothing under /dev) so rescue mode it was..luckily THAT did boot

    The only thing I'd add is that the uname -r of the rescue shell was not the kernel version I needed in the initramfs. I used the kver from the misbehaving initramfs in the call to dracut, eg:

    dracut -f initramfs-4.1.13-100.fc21.x86_64.img 4.1.13-100.fc21.x86_64

    This kernel was knocking around because my rescue shell mounted the partitions correctly - if I had booted to a rescue shell off a usb stick, I might have had a bit more work to do.

    -Kev

  11. #11
    Join Date
    Oct 2017
    Location
    Montreal
    Posts
    1

    Re: Help with a boot error / dracut

    Thank you Glenn! Your post saved my virtual machine!

Similar Threads

  1. [SOLVED]
    F18 dracut error too fast to see
    By chainfall in forum Using Fedora
    Replies: 2
    Last Post: 14th March 2013, 05:39 PM
  2. dracut error during installation of fedora 18
    By tech291083 in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 27th January 2013, 09:42 AM
  3. [SOLVED]
    Dracut warning after boot!
    By brianblaze in forum Using Fedora
    Replies: 2
    Last Post: 23rd August 2012, 07:27 PM
  4. Fedora 17 dracut error.
    By diamond_ramsey in forum F17 Development Forum
    Replies: 35
    Last Post: 28th January 2012, 04:55 AM
  5. How to fix PCI address collision and dracut error ?
    By bangmaleh in forum Hardware & Laptops
    Replies: 2
    Last Post: 24th October 2010, 02:07 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •