ChinaUnix.net
相关文章推荐:

linuxrc

系统启动后执行linuxrc 但脚本执行到exec $BB chroot . sh dev/console 这一句就不执行了?? 脚本如下: [code] #!/bin/sh BB=/bin/busybox $BB mkdir /proc $BB mount -t proc /proc /proc $BB mkdir /tmpfs echo "Mounting a TMPFS filesystem..." $BB mount -t tmpfs /dev/root /tmpfs -o size=110M $BB umount /proc cd /tmpfs $BB mkdir initrd echo "Pivoting..." $BB pivot_root . initrd cd initrd exec $B...

by rmqh - 内核/嵌入技术 - 2006-12-23 20:05:39 阅读(1248) 回复(3)

相关讨论

Reading data from NAND FLASH without ECC is not recommended VFS: Mounted root (cramfs filesystem) readonly. Mounted devfs on /dev Freeing init memory: 92K Failed to execute /linuxrc. Attempting defaults... Kernel panic - not syncing: No init found. Try passing init= option to kernel. 移植了内核2.6.14.1 自己制作了文件系统cramfs, #touch linuxrc #chmod 777 linuxrc #ls -al -rwxrwxrwx 1 502 root...

by antione - 内核/嵌入技术 - 2006-08-17 15:08:15 阅读(4271) 回复(5)

做嵌入式根文件系统时,有linuxrc如下: #!/bin/sh echo "mount /etc as ramfs" /bin/mount -n -t ramfs ramfs /etc 这里的ramfs是从哪儿来,做的根目录没有这个,挂这个的目的是干吗 /bin/cp -a /mnt/etc/* /etc echo "re-create the /etc/mtab entries" # re-create the /etc/mtab entries /bin/mount -f -t cramfs -o remount,ro /dev/bon/2 / /bin/mount -f -t ramfs ramfs /etc exec /sbin/init 这里是映象的还是根...

by solomoon - 系统管理 - 2006-03-15 14:23:25 阅读(718) 回复(1)

fc5 的 initrd 中没有 linuxrc 文件吗?

by tips_luo - 系统管理 - 2006-10-31 20:16:26 阅读(754) 回复(0)

做嵌入式根文件系统时,有linuxrc如下: #!/bin/sh echo "mount /etc as ramfs" /bin/mount -n -t ramfs ramfs /etc 这里的ramfs是从哪儿来,做的根目录没有这个,挂这个的目的是干吗 /bin/cp -a /mnt/etc/* /etc echo "re-create the /etc/mtab entries" # re-create the /etc/mtab entries /bin/mount -f -t cramfs -o remount,ro /dev/bon/2 / /bin/mount -f -t ramfs ramfs /etc exec /sbin/init 这里是映象的还是根...

by solomoon - 内核/嵌入技术 - 2006-03-16 17:03:44 阅读(1734) 回复(2)

请教一下, 如果root=/dev/ram0 , 启动后是否会执行 /linuxrc 和 /init ? 我测试好像没有执行。 我想 root 用 ramdisk, 而etc 放在磁盘上, 要在init 执行前 把 etc mount 上。主要是希望修改文件系统后保留原来的 /etc 配置. 有什么好办法? kernel 2.6.16.22 谢谢

by connet - 内核/嵌入技术 - 2006-11-24 13:19:55 阅读(1206) 回复(7)

#!/bin/sh PATH="/RMF/lib:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/X11R6/lib:." TERM=linux #设置路径 PS1="lsmedia> " #未知? PS2='>' export PATH TERM PS1 PS2 VERSION PKGSRC BOOT PKGSRC BOOTFS FLCFG FXCFG PKGLIST FIXED umask 022 #使用者权根设为rw-r--r--参考UMASK的使用说明 [ -d /etc/proc ] || mkdir -p /etc/proc #建立目录/etc/proc确保目录名称存在,不存在的...

by lame - 内核/嵌入技术 - 2006-08-28 20:41:41 阅读(1009) 回复(2)