Emergency mode after hostname change
Emergency mode after hostname change
Hi!
I tried to change hostname and got emergency mode.
I modifed /etc/hostname and /etc/hosts.
Can someone help me?
Thank you!
I tried to change hostname and got emergency mode.
I modifed /etc/hostname and /etc/hosts.
Can someone help me?
Thank you!
Last edited by olev on 2022/06/14 14:02:41, edited 1 time in total.
Re: Emergency mode after hostname change
I am about 99% sure that the change you think caused this problem is not the cause. There is nothing dependent on the hostname that would cause you to drop to emergency mode.
The usual cause of this is something in /etc/fstab is not mountable and does not have the "fail" attribute specified.
The usual cause of this is something in /etc/fstab is not mountable and does not have the "fail" attribute specified.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Emergency mode after hostname change
Thanks for the answer!
I thought so too..
But when I return the original copies of the files /etc/hostname and /etc/hosts - boot ok.
I thought so too..
But when I return the original copies of the files /etc/hostname and /etc/hosts - boot ok.
Re: Emergency mode after hostname change
Show us the changed files.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Emergency mode after hostname change
Hostname:
winhost.workgroup
hosts:
127.0.0.1 winhost winhost.workgroup winhost4 winhost4.workgroup4
::1 winhost winhost.workgroup winhost6 winhost6.workgroup6
winhost.workgroup
hosts:
127.0.0.1 winhost winhost.workgroup winhost4 winhost4.workgroup4
::1 winhost winhost.workgroup winhost6 winhost6.workgroup6
Re: Emergency mode after hostname change
I tried different names in same logic - I got emergency mode in any case.
Re: Emergency mode after hostname change
Please tell me how to see the boot logs in the emergency mode, where should be the reason for switching to the emergency mode?
Re: Emergency mode after hostname change
You need localhost on the 127.0.0.1 line. So if myou want your names to be resolved to 127.0.0.1 then you need to add them to the existing names.
Code: Select all
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Emergency mode after hostname change
Thanks for answer!
I modifed only /etc/hostname
Hostname:
linhost.localdomain
I got emergency mode after reboot...(
I modifed only /etc/hostname
Hostname:
linhost.localdomain
I got emergency mode after reboot...(
Re: Emergency mode after hostname change
journalctl -xe
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke