单独一人??就是single user。可是这有什么好讲的,大家都知道的,就是在开机时的grub内的开机指令里面找到载入kernel中加个single就行了。可是在Ubuntu 10.04中却有另一个作法。
因为我喜欢嚐鲜,所以前几天我就在现在在用的Ubuntu 10.04中安装unity,结果整个画面变成空白,其他的Terminal也无法出现。这种情形以前遇到的时候就是进single user mode移除刚刚安装的套件。我就在开机的Grub选单中选择要用的kernel版本那一行,然后在载入kernel那一行的最后打上"single"然后继续开机,但是还是无法正常显示terminal。弄了几次以后还是不行,只好再上网找其他的方法,后来找到这篇Boot to single user mode in Ubuntu 10.04 Lucid Lynx
This is symptomatic of how often I break X.org but I often need to boot my Ubuntu 10.04 machine into single user mode and fix some configuration file before rebooting into the GUI. I forget how to do it every time so here is how: 1. Hold the Shift key at boot to display the Grub boot menu. 2. Select the top Grub entry, it will be similar to: Ubuntu, with Linux 2.6.32-22-generic-pae 3. Hit e to edit the the Grub entry. 4. Find the line that looks like this: linux /boot/vmlinuz-2.6.32-22-generic-pae root=UUID=xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx ro vga=794 quiet splash 5. Change the line to: linux /boot/vmlinuz-2.6.32-22-generic-pae root=UUID=xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx init=/bin/sh rw 6. Hit crtl+x to bootYour machine will now do a one time boot into single user mode. Once you reboot the changes you just made to Grub will be reverted.
原来还有这招,就把它拿来试试,可是出现了类似single user mode的terminal但是却没看到常见的提示符号prompt像是#之类,那现在到底可不可以下指令了?在没招的的情形下,我就打了ls,居然出现output。喔,原来这是不会出现prompt符号的single user mode。我就把刚装的unity移除后就正常了。看来对于Ubuntu还不是很了解,为了怕以后忘记,特此纪录。