Boot Problems
Hi folks. Moved on from other threads where I migrated my CentOS7 to another SSD. I'm having some boot issues which is booting into emergency mode for some reason.
I've taken out all extra drives (backups, etc.) and just have my boot volume in there, which is /dev/sda. Even with /etc/fstab volumes in there, this boot process is taking some time, up over a minute, and into emergency mode. Code:
$ journalctl -xb How can I fix this? Where should I start looking? Drives plugged in or not, same issue. |
If booting is the issue, that's before any logging. Why not talk to us about grub, or whatever RH is booting with these days?
|
I think it is a continuation of this thead https://www.linuxquestions.org/quest...ve-4175661696/ which is a continuation of this thread
https://www.linuxquestions.org/quest...de-4175661645/ after the original booting problem was fixed in this thread https://www.linuxquestions.org/quest...or-4175661425/ |
Quote:
It boots to the new drive, but it boots into emergency mode. I've read that the logs are where the problems are noted, so that's where I went. I copied a volume that works, then booting up on the new volume, everything is moved around. I've changed the /etc/fstab file and it's all a mess. I've watched countless videos on all this, read up on many sites, pdfs, and I have no clue what's wrong, nor how /etc/fstab doesn't mention a volume I have, yet it's not posing any problems. As to business_kid's question, what is it you want to know about grub? It seems like a dynamic script from what I see. If you expect hard entries, I've never seen anything like that in the old (current boot) volume, nor the new one. I thought grub would know about the OS versions that got copied over. I guess that was an oversight on my part. Should I just install grub that was installed on the original? Did the rsync not copy that over? I'm new to this OS. I didn't know such simple processes would have little reference online. That's why I'm in here asking questions. |
Quote:
|
Perhaps we can say more when we see your /etc/fstab. This is a guess: Your computer seems to go to emergency mode because /dev/sdc is in fstab but can't be found. If that is correct, consider using the filesystem's UUID instead of the device file name.
As an initial workaround, you can also add nofail to the mount options in fstab to ignore such errors. You may find additional information in the kernel message buffer (dmesg command). Look for storage-related messages. The lsblk command and the /sys/block directory tell you the list of storage devices as the kernel sees them. A look at this list might clue you in as well. |
Quote:
No grubquestions.org, but you are presenting a booting problem without giving us your boot configuration. I was asking to see your /etc/lilo.conf, or /boot/grub/grub.cfg. If your distro uses UUIDS, we will also need the output of Code:
ls -l /dev/disk/by-uuid |
Quote:
I think it is grub.cfg that Business_kid would like to see. |
Quote:
|
I don't think centos uses update-grub to generate a grub.cfg, uses
Code:
grub-mkconfig -o <some location> |
Actually all distros use grub-mkconfig. update-grub is just a wrapper which installs the generated file in its proper place.
|
Quote:
|
Quote:
Code:
$ lsblk Code:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT |
Both shorter versions of /boot/grub2/grub.cfg, first with drive installed, second without:
Code:
sudo grep menuentry /boot/grub2/grub.cfg Code:
if [ x"${feature_menuentry_id}" = xy ]; then |
Quote:
|
All times are GMT -5. The time now is 08:25 AM. |