我删除了两个未使用的用户帐户。现在我什至无法登录到我自己的帐户。我在 root shell 中以恢复模式重新启动并尝试恢复/etc/passwd. 但是,文件系统是只读的!
我只能通过恢复访问 root shell。
你能帮助我吗?
我的笔记本电脑(Thinkpad t450,Ubuntu 16.04)将不再启动,它一直卡在
/dev/sda1: clean, nnn/nnn files, nnn/nnn blocks
Run Code Online (Sandbox Code Playgroud)
我试过$ sudo apt-get purge nvidia*在启动时 fsck ,但它没有帮助。
不过,我设法在以前的内核中启动。无法启动的新内核是:Linux 4.4.0-174-generic...
你能帮忙吗?
谢谢
编辑:$ dpkg -l | awk '!/^rc/ && / linux-(c|g|h|i|lo|m|si|t)/{print $1,$2,$3,$4 | "sort -k3 | column -t"}'给出:
ii linux-headers-4.4.0-173 4.4.0-173.203 all
ii linux-headers-4.4.0-173-generic 4.4.0-173.203 amd64
ii linux-image-4.4.0-173-generic 4.4.0-173.203 amd64
ii linux-modules-4.4.0-173-generic 4.4.0-173.203 amd64
ii linux-modules-extra-4.4.0-173-generic 4.4.0-173.203 amd64
ii linux-image-unsigned-4.4.0-174-generic 4.4.0-174.204 amd64
ii linux-modules-4.4.0-174-generic 4.4.0-174.204 amd64
Run Code Online (Sandbox Code Playgroud)
编辑:$ lspci -v | grep "VGA controller"
给
00:02.0 …Run Code Online (Sandbox Code Playgroud) 我无法在终端(Ubuntu 14.04 LTS)中启用提示颜色。
这是我的.bashrc:
force_color_prompt=yes
export LANGUAGE='en_US.UTF-8 git'
export HISTCONTROL=ignoreboth
#export HISTSIZE=100000
#export HISTFILESIZE=100000
# Eternal bash history.
# ---------------------
# Undocumented feature which sets the size to "unlimited".
# http://stackoverflow.com/questions/9457233/unlimited-bash-history
export HISTFILESIZE=
export HISTSIZE=
export HISTTIMEFORMAT="[%F %T] "
# Change the file location because certain bash sessions truncate .bash_history file upon close.
# http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login
export HISTFILE=~/.bash_eternal_history
# Force prompt to write history after every command.
# http://superuser.com/questions/20900/bash-history-loss
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
# #########
# Some example functions
# …Run Code Online (Sandbox Code Playgroud)