linux调试教程之minix安装到硬盘

上传人:206****923 文档编号:45594226 上传时间:2018-06-17 格式:PDF 页数:10 大小:252.88KB
返回 下载 相关 举报
linux调试教程之minix安装到硬盘_第1页
第1页 / 共10页
linux调试教程之minix安装到硬盘_第2页
第2页 / 共10页
linux调试教程之minix安装到硬盘_第3页
第3页 / 共10页
linux调试教程之minix安装到硬盘_第4页
第4页 / 共10页
linux调试教程之minix安装到硬盘_第5页
第5页 / 共10页
点击查看更多>>
资源描述

《linux调试教程之minix安装到硬盘》由会员分享,可在线阅读,更多相关《linux调试教程之minix安装到硬盘(10页珍藏版)》请在金锄头文库上搜索。

1、http:/ /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:

2、 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:

3、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 : # successf

4、ul 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 /e

5、tc/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

6、=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=/us

7、er/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/f

8、d0 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 同步发布到: http:/

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号