busybox制作linux文件系统
脚本文件 #!/bin/sh echo "creatint rootfs dir......" mkdir rootfs cd rootfs echo "making dir : bin dev etc lib proc sbin sys usr" mkdir bin dev etc lib mnt proc sys tmp var root #必备的8个目录 # mkdir usr/bin usr/lib usr/sbin lib/modules # Don't use mknod ,unless you run this Script as root ! # mknod -m 600 dev/console c 5 1 # mknod -m 666 dev/null c 1 3 # echo "making dir : mnt tmp var" # mkdir mnt tmp var chmod 1777 tmp # mkdir mnt/etc mnt/jffs2 mnt/yaffs mnt/da ta mnt/temp #mkdir var/lib var/lock var/log var/run var/tmp # chmod 1777 var/tmp #echo "making dir : home root boot" # mkdir home root boot echo "done" 执行chmod +x xxx ta mnt/temp #mkdir var/lib var/lock var/log var/run var/tmp # chmod 1777 var/tmp #echo "making dir : home root boot" # mkdir home root boot echo "done" 执行chmod +x xxx