Linux根文件系统突然出了点问题

来源:互联网 发布:深蓝色windows梦幻背景 编辑:程序博客网 时间:2024/06/02 07:50
一 , 原来屏幕根本不会打出来 
process '/sbin/getty 38400 tty6' (pid 876) exited. Scheduling it for restart.

这样讨厌的信息, 不知道改了busybox 选项改了哪里了, 就出现这个问题了。 

解决办法: 两个办法: 1 > delete /etc/inittab 文件即可。 
2> 就是建立 /dev/tty6 节点 : cd /dev/; mknod tty6 c 4 6 

就没有讨厌的信息。 

二 ,发现一个讨厌的问题:

内核启动后:
Pv4 over IPv4 tunneling driver
TCP bic registered
NET: Registered protocol family 1
eth0: using half-duplex 10Base-T (RJ-45)
Sending DHCP and RARP requests ...... timed out!
IP-Config: Reopening network devices...
eth0: using half-duplex 10Base-T (RJ-45)
Sending DHCP and RARP requests ...... timed out!
IP-Config: Reopening network devices...
eth0: using half-duplex 10Base-T (RJ-45)
Sending DHCP and RARP requests ...... timed out!
IP-Config: Reopening network devices...
eth0: using half-duplex 10Base-T (RJ-45)
Sending DHCP and RARP requests ...... timed out!
IP-Config: Reopening network devices...
eth0: using half-duplex 10Base-T (RJ-45)
Sending DHCP and RARP requests .....

原来是为了支持NFS作为根文件系统 ,我选了 networking -》networking options -》IP:Kernel level autoconfiguration 

但是,切记一定不能选 下面三个子项 , 否则就会出现上面的问题嘞。 

三 ,进入系统后, 发现 mount nfs 不能正常工作, 但是发给Lei的版本却可以work , 奇怪。 

mount -tnfs 192.168.167.150:/work/nfs /mnt/ 老是提示下面的错误:

portmap: server localhost not responding, timed out
RPC: failed to contact portmap (errno -5).
lockd_up: makesock failed, error=-5
portmap: server localhost not responding, timed out
RPC: failed to contact portmap (errno -5).
lockd_down: no lockd running.

后来才知道应该加这个参数 -t nolock 就可以。
mount -tnfs -o nolock 192.168.167.150:/work/nfs /mnt/

还可以加更多的参数, 我试验过, 确实没有timeout的现象发生。
mount -t nfs 192.168.167.162:/home/leibian/nfs/initrd /mnt -o nolock,rsize=1024,wsize=1024,timeo=15
原创粉丝点击