English 中文(简体)
How can i put a compiled boot sector onto a USB stick or disk?
原标题:

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

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

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

最佳回答

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

use it like so:

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

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

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.

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.

问题回答

Maybe you could use rawritewin to do the job for you?

The other way is to use UNetBootIn but from my experience in messing with it, it requires an ISO to be burned onto a USB.. so that may not work in your case but you could try creating an ISO in preparation to be written to the USB...





相关问题
Develop a Bootloader In Assembly

I ve already done a part of my OS in Assembly, but now I want to build a own bootloader for it too instead of using GRUB. When I was developing my test OS in Assembly I remember that I boot it like ...

Basic OS boot question

I have some kinda basic question to the boot process of a computer and the part where the bootloader calls the OS. So I know that the BIOS copies the first 512 bytes from a bootable drive into memory ...

Graphics on a bootloader

Managed to create a simple bootloader... and with VESA 2.0 I managed to change the resolution to 1024x768x32, also managed to setup a Linear Frame Buffer... Where can I find tutorials for using the ...

OS bootstraping process

I try to understand os bootstraping process. Some questions are not clear to me. One of them is : How does bootstrap code in Volume boot record know about absolute LBA address of 0 sector of patition ...

Sample Android BSP(Source) for ARM

I am looking for a ARM processor version of Android BSP to port it for one of my experimental boards. Where can I download this?

热门标签