日期:2014-05-16  浏览次数:22505 次

蛋疼的can't run '/etc/init.d/rcS': No such file or directory
内核启动出现这样的错误:can't run '/etc/init.d/rcS': No such file or directory;简单的启动信息如下:
rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
rtc-pcf8563 0-0051: retrieved date/time is not valid.
rtc-pcf8563 0-0051: hctosys: invalid date/time
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
Freeing init memory: 116K
can't run '/etc/init.d/rcS': No such file or directory

Processing /etc/profile... Set search library path in /etc/profile
Set user path in /etc/profile
Set PS1 in /etc/profile
Done

[root@/]#
这个rcS的权限已经设置为777了,rcS文件也没有乱码,其内容如下:

#! /bin/sh
echo "----------mount all"
/bin/mount -a


echo "----------Starting mdev......"
/bin/echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s

mount -t yaffs /dev/mtdblock6 /usr

syslogd -O /usr/PGS/log/messages -s 2 -l 7


在同一个内核下,烧写以前的根文件系统却没有问题,能正常启动rcS,他的启动信息如下:
rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
rtc-pcf8563 0-0051: retrieved date/time is not valid.
rtc-pcf8563 0-0051: hctosys: invalid date/time
Failed to execute /linuxrc. Attempting defaults...
----------mount all
----------Starting mdev......
yaffs: dev is 32505862 name is "mtdblock6"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.6, "mtdblock6"
yaffs: block 2000 is marked bad
block 2001 is bad
yaffs_read_super: isCheckpointed 0

Processing /etc/profile... Set search library path in /etc/profile
Set user path in /etc/profile
Set PS1 in /etc/profile
Done
[root@/]#



求高手指点迷津,这问题已经搞了1个星期了,毫无思绪~~~~


------解决方案--------------------
can't run '/etc/init.d/rcS': No such file or directory确认这个rcs有没有,再把权限改为544试试。
------解决方案--------------------
明显没有此文件。
启动后,ls /etc/init.d/rcS看看。
------解决方案--------------------
/etc/init.d/rcS 有没可能你这是个链接文件。