当前位置: 技术问答>linux和unix
高手帮忙:自己建的文件系统,引导时不能登陆
来源: 互联网 发布时间:2016-03-02
本文导语: 输入用户、root直接跳过,乱输入个用户,还要求输入密码的。group passwd shadow三个文件是直接从我的radhat拷过来的,用在我做的文件系统里。为何登陆不了 具体信息如下: Probing IDE interface ide0... NET4: Linux TCP/IP 1....
输入用户、root直接跳过,乱输入个用户,还要求输入密码的。group passwd shadow三个文件是直接从我的radhat拷过来的,用在我做的文件系统里。为何登陆不了
具体信息如下:
Probing IDE interface ide0...
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
eth0: Phy @ 0x0, type LXT971 (0x001378e2)
IP-Config: Gateway not on directly connected network.
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Looking up port of RPC 100003/2 on 10.212.43.54
Looking up port of RPC 100005/1 on 10.212.43.54
VFS: Mounyted root (nfs fesystem).
Foreeing unused kemory: 76k init
init started: BusyBox v1.1.2 (2008.01.05-09:08+0000) multi-call binary
Starting pid 11, console /dev/console: '/etc/init.d/rcS'
Bummer, could not run '/etc/init.d/rcS': No such file or directory
Bummer, could not run '/etc/init.d/rcS': No such file or directory
Starting pid 12, console /dev/console: '/sbin/getty'
icecube login: zju
Process '/sbin/getty 115200 ttyS0' (pid 12) exited. Scheduling it for restart.
Starting pid 13, console /dev/console: '/sbin/getty'
[color=#FF0000]icecube login: root
Process '/sbin/getty 115200 ttyS0' (pid 13) exited. Scheduling it for restart.
Starting pid 14, console /dev/console: '/sbin/getty'[/color]
具体信息如下:
Probing IDE interface ide0...
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
eth0: Phy @ 0x0, type LXT971 (0x001378e2)
IP-Config: Gateway not on directly connected network.
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Looking up port of RPC 100003/2 on 10.212.43.54
Looking up port of RPC 100005/1 on 10.212.43.54
VFS: Mounyted root (nfs fesystem).
Foreeing unused kemory: 76k init
init started: BusyBox v1.1.2 (2008.01.05-09:08+0000) multi-call binary
Starting pid 11, console /dev/console: '/etc/init.d/rcS'
Bummer, could not run '/etc/init.d/rcS': No such file or directory
Bummer, could not run '/etc/init.d/rcS': No such file or directory
Starting pid 12, console /dev/console: '/sbin/getty'
icecube login: zju
Process '/sbin/getty 115200 ttyS0' (pid 12) exited. Scheduling it for restart.
Starting pid 13, console /dev/console: '/sbin/getty'
[color=#FF0000]icecube login: root
Process '/sbin/getty 115200 ttyS0' (pid 13) exited. Scheduling it for restart.
Starting pid 14, console /dev/console: '/sbin/getty'[/color]
|
根据你的信息,可能如下原因:
(1)配置文件 /etc/passwd /etc/shadow 的问题
其实你可以自己写一个passwd文件,按照passwd的格式(man passwd),密码设置为空.看能否直接得到shell?
(2)检查你的getty和login程序,既然getty 和 login有source,那么
hack them,在里面加入调试信息来帮助问题解决
(3)关于init, getty和login的关系,你是否弄清楚了?
http://www.comptechdoc.org/os/linux/startupman/linux_suiglog.html
PS: linux的man手册很有用,多研究,对你这个问题,你起码要好好看看man inittab, man getty, man login等
(1)配置文件 /etc/passwd /etc/shadow 的问题
其实你可以自己写一个passwd文件,按照passwd的格式(man passwd),密码设置为空.看能否直接得到shell?
(2)检查你的getty和login程序,既然getty 和 login有source,那么
hack them,在里面加入调试信息来帮助问题解决
(3)关于init, getty和login的关系,你是否弄清楚了?
http://www.comptechdoc.org/os/linux/startupman/linux_suiglog.html
PS: linux的man手册很有用,多研究,对你这个问题,你起码要好好看看man inittab, man getty, man login等
|
自己做的文件系统? 你说的分区吧。看样子好像你的分区里莫有一些初始化文件呀。或者你自己写一个简单/sbin/getty试试。
|
重新mount一下根文件系统
mount -n -o remount,rw /dev/ram /
mount -n -o remount,rw /dev/ram /