UBUNTU 14.04 / 16.04服务器启动:开发安装失败,属于initramfs

时间:2017-06-14 15:05:05

标签: shell ssh root mount ubuntu-server

使用Ubuntu 14.04 / 16.04启动虚拟服务器时(我遇到了两者的问题),它无法找到root的启动分区,系统属于 initramfs shell出现以下错误:

(initframs) exit
Gave up waiting for root device. Common problems:
- Boot args (cat proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/mapper/CAC_VG-CAC_LV does not exist. Dropping to a shell!

如果我输入

ls /dev/mapper/

我仍然可以看到错误中提到的分区(以及GRUB中)

root=/dev/mapper/CAC_VG-CAC_LV 
按错误消息

中的建议

cat输出

(initframs) cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-4.4.0-66-generic root=/dev/mapper/CAC_VG-CAC_LV ro

注意:它似乎以只读方式挂载设备( ro )。也许我应该在设法启动系统后改变它......

如果我输入退出,我会收到与上述相同的错误。 然后我尝试装载:

mount -t ext4 /dev/mapper/CAC_VG-CAC_LV
mount: can't find /dev/mapper/CAC_VG-CAC_LV in /etc/fstab`

1 个答案:

答案 0 :(得分:0)

在全新安装Ubuntu 14.04后,我遇到了同样的问题 这实际上有效!!

mount -o remount, rw /
lvm vgscan
lvm vgchange -a y
mount -t ext4 /dev/mapper/CAC_VG-CAC_LV /root
exit