login后立即踢出SSH和Console

我正在运行的Ubuntu 10.04,我突然有这个问题,我通过SSH或在控制台login后立即踢出来。 以下是启动时的样子:

Using IPI No-Shortcut mode registered taskstats version 1 blkfront: xvdb: barriers enabled xvdb: unknown partition table XENBUS: Device with no driver: device/console/0 md: Waiting for all devices to be available before autodetect md: If you don't use raid, use raid=noautodetect md: Autodetecting RAID arrays. md: Scanned 0 and added 0 devices. md: autorun ... md: ... autorun DONE. EXT3-fs: barriers not enabled kjournald starting. Commit interval 5 seconds EXT3-fs (xvda): mounted filesystem with writeback data mode VFS: Mounted root (ext3 filesystem) readonly on device 202:0. Freeing unused kernel memory: 412k freed Write protecting the kernel text: 5704k Write protecting the kernel read-only data: 1384k NX-protecting the kernel data: 3512k hwclock[998]: segfault at 810b4a6 ip 0810b4a6 sp bfe87568 error 15 in bash[810b000+1000] init: hwclock main process (998) killed by SEGV signal sh uses obsolete (PF_INET,SOCK_PACKET) device eth0 entered promiscuous mode fsck from util-linux-ng 2.17.2 /dev/xvda: clean, 109013/966656 files, 2348914/3840000 blocks * Starting Postfix Mail Transport Agent postfix [ OK ] * To enable saslauthd, edit /etc/default/saslauthd and set START=yes * Starting NTP server ntpd [ OK ] * Starting web server apache2 [Thu Sep 20 05:59:30 2012] [warn] The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias. [ OK ] Ubuntu 10.04 LTS mycomputer.com hvc0 

我猜我的问题可能来自“segfault …在bash …”? 但是,如果是这样,我不知道如何解决这个问题。 我可以启动恢复磁盘。 任何人都可以给我任何指针?

谢谢!

首先,在你的系统上运行memtest86。 可能有RAM故障。

如果没有,你应该编辑/etc/passwd并使用livecd设置你的shell不是bash(可能是/bin/sh或者/bin/tcsh或者其他的shell)。 然后,加载你的系统并更新bash,改回你的shell,然后重试。

问题似乎是bash segfaulting肯定。 但是,导致此问题的其他事情是将您的shell设置为/ bin / false或未安装的东西。