小编Lou*_*uis的帖子

无法在恢复模式下以读写方式挂载文件系统

我删除了两个未使用的用户帐户。现在我什至无法登录到我自己的帐户。我在 root shell 中以恢复模式重新启动并尝试恢复/etc/passwd. 但是,文件系统是只读的!

我只能通过恢复访问 root shell。

你能帮助我吗?

recovery-mode read-only

15
推荐指数
1
解决办法
5万
查看次数

Ubuntu 16.04 无法启动:使用 dev/sda1 卡在黑屏上:干净、../.. 文件、../.. 块

我的笔记本电脑(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)

16.04

9
推荐指数
2
解决办法
3940
查看次数

无法在 bash 终端中启用提示颜色

我无法在终端(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)

command-line bash

3
推荐指数
1
解决办法
8666
查看次数

标签 统计

16.04 ×1

bash ×1

command-line ×1

read-only ×1

recovery-mode ×1