Ubuntu server not booting due to (possible) disk mounting problems

Roh*_*bhu 4 ubuntu init.d

I have a server running Ubuntu 14.04, with one hard disk partitioned like:

sda
 sda1 -> /
 sda2 -> /var
 sda3 -> (swap)
 sda4 -> /home
Run Code Online (Sandbox Code Playgroud)

Whenever I boot, I get the message The disk drive for /var is not ready yet or not present. Press S to skip, Continue to wait or M to fix manually. I get this message thrice for the mountpoints /tmp and /home as well. The big problem is that, I actually can't even press a key when it asks me to enter a key. It just goes ahead with the boot process anyways and then gets stuck at the following step:

Starting system logging daemon
Run Code Online (Sandbox Code Playgroud)

Which I am assuming is because I am guessing the system logging daemon is trying to get a lock on /var/log/messages, but can't because /var isn't mounted. The problem is I can't check anything because I don't have any access to so much as a command line. I however, can get into a root prompt from the recovery mode. Which logs should I be checking for for further information and how should I basically go ahead with this?

小智 5

我遇到了完全相同的问题,感谢您对它仅在启用 LDAP 后才发生的评论,我能够找出它发生的原因。在/etc/nsswitch.conf文件中,我有以下内容:

passwd:         ldap compat
group:          ldap compat
shadow:         ldap compat
Run Code Online (Sandbox Code Playgroud)

我把它改成这个,它解决了这个问题:

passwd:         compat ldap
group:          compat ldap
shadow:         compat ldap
Run Code Online (Sandbox Code Playgroud)

我希望这也能解决你的问题。