一个操作系统的实现中使用的命令和工具

对书中所使用到的工具和命令进行记录,方便查看!

ndisasmv

bximage

dd

xxd

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
sudo losetup -f

mkdir /mnt/floppy

losetup /dev/loop5 pm.img

sudo mount /dev/loop5 /mnt/floppy
sudo cp pmtest3.com /mnt/floppy
umount /mnt/floppy

sudo mount -t msdos -o loop pm.img /mnt/floppy


x/4xw 0x7c14

qemu-system-i386 -hda /home/hys/code/6828/src/orange/ch1/a.img -gdb tcp::26000 -S

错误集锦:
hys@hys:~/code/6828/src/orange/ch3/b$ sudo mount -t msdos -o loop pm.img /mnt/floppy
mount: /mnt/floppy: wrong fs type, bad option, bad superblock on /dev/loop22, missing codepage or helper program, or other error.

需启动bochs
然后进行初始化: format b:
然后再执行mount命令