busybox制作linux文件系统

xiao_m6 48 0 TXT 2018-12-28 17:12:44

脚本文件 #!/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

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2018-12-28 17:12:44

正在摸索编译中

Generic placeholder image 卡了网匿名网友 2018-12-28 17:12:44

我的还是没有跑起来…… 唉,头疼阿