linux报错:/dev/sdb2:recovering jou

2019-05-27  本文已影响0人  逆风g

问题描述

本来在训练网络模型,突然断电后,再启动linux系统进入用户登录界面,输入密码后显示如下界面:



此界面一闪而过又到登录界面,如此反复!

解决方法

  1. 换到命令行模式,Ctrl+Alt+F3(跟机器有关,大概是在F1~F6之间)

  2. 检查显卡驱动是否已经损坏 cat /proc/driver/nvidia/version,若不能看到,则说明有问题

  3. 卸载已安装显卡驱动:
    sudo apt purge nvidia-*
    sudo apt autoremove

  4. 在官网下载对应的显卡驱动程序,官网地址为:https://www.nvidia.com/Download/index.aspx,选择好对应的显卡驱动后,下载后的文件名为NVIDIA-Linux-x86_64-390.77.run

  5. 安装显卡驱动:sudo bash NVIDIA-Linux-x86_64-390.77.run

  6. 一些询问信息:
    1)Accept License
    2)The distribution-provided pre-install script failed! Are you sure you want to continue? -> CONTINUE INSTALLATION
    3)Install NVIDIA's 32-bit compatibility libraries? ->YES
    4) An incomplete installation of libglvnd was found. Do you want to install a full copy of libglvnd? This will overwrite any existing libglvnd libraries.-> Install and overwrite existin
    5) Would you like to run the nvidia-xconfig utility? -> YES

  7. 安装完成之后,切换到图形界面startx,重启。这里建议使用sudo /etc/init.d/lightdm start,如果是gdm类型桌面系统,自行网上查找启动命令。是啥类型桌面参考如下:

报错提示

You appear to be running an X server; please exit X before...
更新驱动需要关闭图形桌面。查看一下是不是真的有X:
ps aux | grep X

$ ps aux | grep X
root      2242  1.6  0.0 154212 35820 tty7     Ss+  04:10   0:01 /usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
cc    4677  0.0  0.0  11284  1016 pts/8    S+   04:11   0:00 grep --color=auto X

关闭X的方式有两种:
(1)gdm类型的桌面系统
sudo /etc/init.d/gdm stop
sudo /etc/init.d/gdm status
(2)light类型的桌面系统
sudo /etc/init.d/lightdm stop

上一篇下一篇

猜你喜欢

热点阅读