问题描述
我正在寻找一种读取/写入(实际上是编程)USB大容量存储设备的主启动记录(或可能是VBR)的方法.实际上,它是我要对其MBR进行编程的闪存驱动器,因此,每当将其插入任何计算机时,都会执行一个程序(存储在我的闪存驱动器中的文件中).
我知道很多汇编语言,但是我不知道如何编写MBR.请帮助
谢谢
如果使用的是Linux,则可以简单地打开设备文件/dev/sdXY并将其写入,MBR将是前512个字节./p>
I'm looking for a method of reading/writing (actually programming) the Master Boot Record (or maybe VBR) of a usb mass storage device. Actually its a flash drive whose MBR I want to program, so that whenever I plug it into any computer, a program (stored on my flash drive in a file) gets executed.
I know quite a bit of assembly but I don't know how to go about programming MBRs..Please help
Thanks
If you're using linux, you can simple open the device file /dev/sdXY and write to it, the MBR will be the first 512 bytes.
这篇关于如何读/写(编程)闪存驱动器的MBR/VBR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!