Archlinux更新不能正常使用问题解决办法

作者:简简单单 2013-11-07

问题1:更新之后,重启开机时console显示根设备未被挂载为读写模式
********************** WARNING **********************
* The root device is not configured to be mounted *
* read-write! It may be fsck'd again later. *
*****************************************************

 代码如下 复制代码

sudo pacman -S grub
sudo grub-mkconfig -o /boot/grub/grub.cfg

重装了下grub,grub-mkconfig了一下。。。问题的解决了。
查看下/boot/grub/grub.cfg发现kernel命令行那里已经是 rw 了.

问题2:terminal没法打开

运行terminal 出错:
Failed to execute child
grantpt failed: Operation not permitted

在这里(http://funfreelance.com/centos-cant-open-terminal/)找到解决方法:

 代码如下 复制代码

After installing GUI on your CentOS server probably you will have a problem where you cannot open terminal. [CentOS] Cant Open Terminal/linux centos
When you open terminal it will show you “grantpt failed: Exec format error” [CentOS] Cant Open Terminal/linux centos

Access your server using SSH and run this command : mount -o remount,gid=5,mode=620 /dev/pts

Source : https://bugzilla.redhat.com/show_bug.cgi?id=509632

我用的是Xfce , terminal也是其自带的。
ctrl + alt + F1 进入console ,然后

 代码如下 复制代码
mount -o remount,gid=5,mode=620 /dev/pts

terminal 可以打开了。

 代码如下 复制代码

└─[$] <> cat /etc/group | grep :5
tty:x:5:

ID为5的组即是tty组。

3. 注意 Deprecation of /etc/sysctl.conf
如果之前修改过这个文件,比如配置了tcp 转发什么的,那么注意更新后执行:

 代码如下 复制代码

sudo mv /etc/sysctl.conf.pacsave /etc/sysctl.d/99-sysctl.conf

如果没有修改过此文件,同样建议执行以上命令。

相关文章

精彩推荐