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

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

问题描述

从引导过程中的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

大多数教程仅指定如何为Linux用户将.bin引导程序带到USB记忆棒上.

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

但是当我使用XP时,我想问我如何将512字节的.bin放入USB上的正确位置,那绝对不是通过使用Explorer: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 files \ boot.bin of = \\.\ z:bs = 512 count = 1

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

其中"z:"是已安装的USB驱动器的驱动器号,"if"是输入文件,"of"是输出设备,bs是块大小,计数是要读取的块数复制

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.

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

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