LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-28-2019, 12:02 PM   #1
jeff12gt
LQ Newbie
 
Registered: Mar 2019
Posts: 2

Rep: Reputation: Disabled
Centos 7 not booting, Dracut initqueue timeout


Hey guys, I have been using Centos7 for work for a fair time (I use dual boot with windows10 on my laptop) and in what it seems to be out of nowhere, Centos wont boot anymore; it falls into dracut emergency shell giving warnings of "dracut-initqueue timeout" and finally it says that root, swap and centos-mapper do not exist (windows works fine).

After searching around, I have only seen this problem with people trying to run VMs in different providers, servers trying to boot remotely from other address or corrupted liveCD, but those are not my case. I had a running Centos and last thing I did was run "yum update".

Other google solutions emphasized on using the command "dracut -f" to rebuild initramfs but for me such command does not exist at all or is not available in dracut emergency shell. Did Centos brick itself?
 
Old 03-28-2019, 04:19 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,425

Rep: Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999Reputation: 2999
" last thing I did was run "yum update"." " in what it seems to be out of nowhere"

I get the feeling the two may be related. I know hat you mean about the vm's that fail to reboot correctly on updates. This could be similar is that the update failed to properly complete.

Do you wish to fix to revert or what?
 
Old 03-31-2019, 01:53 PM   #3
jeff12gt
LQ Newbie
 
Registered: Mar 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the reply. I discovered that the /root partition didnt appear in the partition table and tried recovering with "parted", I got my data back but still I cant boot correctly. My theory is that while I was partitioning other disk in windows it uncatalogued my linux partition. Now, I dont know where to go after rescuing the partition given that dracut doesnt even recognize it anymore.
 
Old 04-01-2019, 07:01 AM   #4
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 250

Rep: Reputation: Disabled
If you can boot off the CentOS removable media, this procedure resolves the majority of boot problems for me. The kernel package updates grub and the initramfs image.

1. Boot into rescue mode.
2. Let the media mount the filesystems
3. Bring up the network
4. bind mount /dev, /proc, and /sys to the corresponding /sysroot (I think that is where the rescue mode puts your filesystems)
5. chroot to /sysroot
6. yum reinstall kernel
7. reboot.
 
Old 04-01-2019, 07:30 AM   #5
dc.901
Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS 6-7; SuSE 8-12
Posts: 657

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by jeff12gt View Post
Thanks for the reply. I discovered that the /root partition didnt appear in the partition table and tried recovering with "parted", I got my data back but still I cant boot correctly. My theory is that while I was partitioning other disk in windows it uncatalogued my linux partition. Now, I dont know where to go after rescuing the partition given that dracut doesnt even recognize it anymore.
Good thing is you have your data backups. Now, it depends on how much time you want to spend to rescue and how much time will it take to rebuild the CentOS side.
At this point it could be one of the two things (or perhaps both):
1) you did updates, which didn't get applied correctly
2) you were partitioning other disk in windows and it somehow modified linux partition.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dracut.initqueue slow to start sadams54 Linux - Laptop and Netbook 1 12-13-2018 08:04 AM
dracut-initqueue timeout with error code [311] sterry0101 Linux - Newbie 1 01-24-2018 02:15 PM
warning dracut-initqueue timeout - starting timout scripts Harshit_24 Linux - Newbie 1 04-06-2017 01:58 PM
[SOLVED] CentOS7 won't boot after motherboard swap. UEFI? dracut-initqueue timeouts... gargunkle Linux - Software 1 03-18-2016 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration