资源预览内容
第1页 / 共10页
第2页 / 共10页
第3页 / 共10页
第4页 / 共10页
第5页 / 共10页
第6页 / 共10页
第7页 / 共10页
第8页 / 共10页
第9页 / 共10页
第10页 / 共10页
亲,该文档总共10页全部预览完了,如果喜欢就下载吧!
资源描述
http:/pan.baidu.com/share/link?shareid=256036 /etc/setup_usr /dev/hd2 /etc/setup_root 的使用说明: Usage:setup_root device ram_size hd1_size hd2_size hd3_size hd4_size /etc/setup_usr 的使用说明:/etc/setup_usr /dev/hd1 minix.bxrc 配置文件: romimage: file=$BXSHAREBIOS-bochs-latest, address=0xf0000 megs: 16 vgaromimage: $BXSHAREVGABIOS-elpin-2.40 floppya: 360k=“univ_boot.01“, status=inserted ata0-master: type=disk, path=“minix.img“, mode=flat, cylinders=487, heads=16, spt=63 boot: a log: bochsout.txt parport1: enable=0 vga_update_interval: 300000 keyboard_serial_delay: 200 keyboard_paste_delay: 100000 floppy_command_delay: 50000 ips: 4000000 mouse: enabled=0 private_colormap: enabled=0 fullscreen: enabled=0 screenmode: name=“sample“ 下面是/etc/setup_root 脚本文件内容: case $# in 6) ; *) echo “Usage: setup_root device ram_size hd1_size hd2_size hd3_size hd4_size“ exit 1 ; esac old_dir=pwd # save current directory if /etc/mount $1 /user then : # successful mount else echo “Unable to mount $1. Root file system not created.“ exit 1 fi # Make the directories cd /user mkdir bin dev etc lib tmp user usr chown bin bin dev etc lib tmp user usr chgrp bin bin dev etc lib tmp user usr chmod 777 bin dev etc lib tmp user usr # Make the special files. cd dev /etc/mkdev $2 $3 $4 $5 $6 # Copy /bin and /etc cpdir -m /bin /user/bin cpdir -m /etc /user/etc fixbin /user/bin /user/bin /dev/null 2; *) echo Please specify the special file for the MINIX partition echo For example: /etc/setup_usr /dev/hd1 exit 1 ; esac cd / /etc/umount /dev/hd1 /dev/null 2 then disk=expr $STOP - 1; fi # Establish base name case $dir in include) base=/user/include ; ast) base=/user/ast ; bin) base=/user/bin ; etc) base=/user/etc ; usrlib) base=/user/lib ; kernel) base=/user/src/kernel ; fs) base=/user/src/fs ; mm) base=/user/src/mm ; tools) base=/user/src/tools ; test) base=/user/src/test ; elle) base=/user/src/elle ; amoeba) base=/user/src/amoeba ; lib) base=/user/src/lib ; commands) base=/user/src/commands ; LAST_DISK) base=/tmp ; *) base=/user/$dir ; esac cd / # cpdir creates pipes in current dir cpdir -m /usr/$dir $base done disk=expr $disk + 1 cd / /etc/umount /dev/fd0 done #All the disks have now been loaded. Unpack them. echo Loading finished. Please remove the last diskette from the drive. echo The files will now be unpacked. cd / fixbin /user/bin /user/bin /dev/null 2 do ar x $j /dev/null 2 done rm -f *.a 2/dev/null chown bin * . done # link commands/nroff/tmac.an to lib/tmac/tmac.an ln /usr/src/commands/nroff/tmac.an /usr/lib/tmac/tmac.an rm -rf /usr/LAST_DISK 2/dev/null chown bin /usr/* cd /usr/lib chmod 755 cem cpp cg opt echo Installation completed. exit 0 作者 email:chenghao at gmail.com 同步发布到: http:/blog.csdn.net/sitelist/article/details/8570112
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号