如何将编译好的引导扇区放到 U 盘或磁盘上? [英] How can i put a compiled boot sector onto a USB stick or disk?

查看:16
本文介绍了如何将编译好的引导扇区放到 U 盘或磁盘上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实际上对操作系统的工作原理很感兴趣,从引导过程中的 POST 到内核、GUI 等.

I'm actually interested in how an OS works, from the POST over the Boot process to the Kernel, GUI, etc.

我必须从头开始:引导扇区

Well I have to start at the beginning: The bootsector

大多数教程仅指定如何将您的 .bin 引导程序安装到供 Linux 用户使用的 USB 记忆棒上.

Most tutorials only specify how to get your .bin bootstrapper onto an USB stick for Linux users.

但是当我使用 XP 时,我想问一下如何将我的 512 字节 .bin 放到我的 USB 上的正确位置,这绝对不是通过资源管理器复制它:D

But as I'm using XP I would like to ask how do I get my 512 byte .bin onto the right position on my USB, and thats definitely not by copying it with explorer :D

推荐答案

我经常使用的Windows dd.http://www.chrysocome.net/dd

There's dd for Windows which I use regularly. http://www.chrysocome.net/dd

像这样使用它:

dd if=c:my filesoot.bin of=\.z: bs=512 count=1

dd if=c:my filesoot.bin of=\.z: bs=512 count=1

其中'z:'是你挂载的USB驱动器的盘符,'if'是输入文件,'of'是输出设备,bs是块大小,count是块数复制

where 'z:' is the drive letter of your mounted USB drive, 'if' is the input file, and 'of' is the output device, bs is the block size, and the count is the number of blocks to copy

我大约每月执行一次,以了解 Haiku 的开发进展情况.他们提供以这种方式写入 USB 驱动器的原始磁盘映像.

I do this about once a month to see how Haiku development progresses. They offer raw disk images that are written to a USB drive this way.

警告:错误的驱动器号可能会破坏您的引导扇区,因此请确保您先进行备份并熟悉使用 dd.我已经丢失了很多数据.

WARNING: Getting the drive letter wrong can destroy YOUR bootsector, so make sure you do a backup and become comfortable using dd first. I've lost a lot of data to it's power.

这篇关于如何将编译好的引导扇区放到 U 盘或磁盘上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆