📄 mkhd-nbi.sh
字号:
#! /bin/sh# Make an NBI hard disk image using MTOOLS & DOS files# Requires a bootsector from your target OS in file 'bootsect.bin'# Make this once from a bootable floppy with the command:# dd if=/dev/fd0 of=bootsect.bin bs=512 count=1mv ~/.mtoolsrc ~/.mtoolsrc.tmpecho drive x: file=\"$1.img\" > ~/.mtoolsrc# comment out the line below if image is a VFAT aware OS (Win9X+)echo 'mtools_no_vfat=1' >> ~/.mtoolsrcrm -f $1.img# Capacity in bytes = (cyls)*(heads)*(sectors_per_track)*512# example for a 10MB disk (10485760 = 320 * 8 * 8 * 512)mformat -C -t 320 -h 4 -n 16 -B bootsect.bin x:mcopy io.sys x:mcopy msdos.sys x:mcopy command.com x:# additional files below this line# additional files above this linemknbi-dos --harddisk $1.img > $1.nbirm $1.imgrm -f ~/.mtoolsrcmv ~./mtoolsrc.tmp ~/.mtoolsrc
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -