LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-25-2020, 04:09 AM   #1
starbearer
LQ Newbie
 
Registered: Jan 2020
Posts: 22

Rep: Reputation: Disabled
CentOs-8 stuck during booting


I have a CentOs-8 system which has been running fine for sometime.

Recently I lost power to the device, and when I booted up the system again, it gets stuck during the boot process.

The booting screen comes, it gives me a few messages, but usually gets stuck at :

Quote:
Started Dynamic System Tuning Daemon
The disk seems to be fine, using a recovery media, I am able to chroot into the /mnt/sysimage where my files are present, I was able to transfer some of them using sftp to another system. Weirdly enough the onboard sshd deosn't start, and since it is in chroot, I cannot use systemctl to start it either.

Earlier it was getting stuck at
Quote:
Starting Virtualization Daemon
..which searching various forums, might have had something to do with VirtualBox installation with Guest Additions. That used to work fine, it was built for the kernel version installed..so not sure why that would lead to a sudden error...Anyway, I uninstalled VirtualBox using rpm -e, so at least the system doesn't get stuck there.

I also did a cleanup of old kernels and package cleanup, but that doesn't seem to have resolved the problem either.

I have the installation media which I have been using to troubleshoot. What else can I do to troubleshoot and successfully log in...

Kindly advise. Thanks.

Last edited by starbearer; 02-25-2020 at 04:36 AM.
 
Old 02-25-2020, 08:05 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I'd go about it a different way. Get in with your media and disk check first. Do a restart, which will puke.
Then use 'sudo dmesg |less' to see what's up, and hunt around the biggest file in /var/log (/var/log/syslog?); go to the end, then work back until you find 'Restart' and examine between that and the end. Post any errors - not the whole lot pls.
 
Old 02-25-2020, 11:08 PM   #3
starbearer
LQ Newbie
 
Registered: Jan 2020
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
I'd go about it a different way. Get in with your media and disk check first. Do a restart, which will puke.
Then use 'sudo dmesg |less' to see what's up, and hunt around the biggest file in /var/log (/var/log/syslog?); go to the end, then work back until you find 'Restart' and examine between that and the end. Post any errors - not the whole lot pls.
Thanks for the assistance.
I logged in with the recovery media, did a fdisk -l, which returned -
/dev/sda1 600M EFI system
/dev/sda2 1G Linux Filesystem
/dev/sda2 445G Linux LVM

(some other headers such as block start and end have been omitted for brevity)

I ran badblocks on all 3, which returned 0 bad blocks. I hope that this (badblocks) was the command which should have been used.

Moving on, to be clear -
1. Boot into the Linux system which is giving error
2. Booting will get stuck
3. Reboot with recovery media
4. Mount /mnt/sysimage ??
5. Run dmesg |less
6. Check /var/log

Are these the correct steps? Is step 3 required, or should I use the troubleshooting option during CentOs bootup to run these commands?

Last edited by starbearer; 02-25-2020 at 11:11 PM.
 
Old 02-26-2020, 01:51 AM   #4
starbearer
LQ Newbie
 
Registered: Jan 2020
Posts: 22

Original Poster
Rep: Reputation: Disabled
I managed to solve the issue. This is what I tried -

On several forums, the issue given was one to do with Intel xorg drivers. I went and updated the xorg driver from Ceot0s repos, but that did not solve the issue either.

I then created a folder
Quote:
/var/log/journal
did a failed boot, and again used the recovery media to boot into the system. Thereafter, I did -
Quote:
journalctl -D /var/log/journal
I noticed that there were several issues in bold white, as opposed to red for errors, which mentioned that permission was being denied to the home folder of the user who was trying to boot into the login session by default.

Using the recovery disk, I booted into the sysimage, changed folder owner to correct owner (it had been set to root), and set permissions on folder as 755.

This solved the issue for me.

Thanks for your assistance. Learnt a bit about troubleshooting Linux boot issues.
 
Old 02-26-2020, 03:46 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Great! Mark the thread 'Solved' then. I'm glad you're sorted.
 
  


Reply



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
[SOLVED] booting slackware may get stuck during syslogd. an explanation and a fix nass Slackware 3 04-23-2012 03:07 AM
Drive stuck, how to I un-stuck it. MikeyCarter Linux - Software 3 08-05-2009 11:57 AM
I'm Stuck, so Stuck. basttrax Linux - General 3 11-14-2003 09:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:55 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
Open Source Consulting | Domain Registration