Как я могу поместить скомпилированный загрузочный сектор на карту с интерфейсом USB или диск?

Я на самом деле интересуюсь тем, как ОС работает, от POST по Процессу начальной загрузки к Ядру, GUI, и т.д.

Хорошо я должен запустить вначале: загрузочный сектор

Большинство учебных руководств только указывает, как получить Ваш .bin bootstrapper на карту с интерфейсом USB для пользователей Linux.

Но поскольку я использую XP, который я хотел бы спросить, как я получаю свои 512 байтов .bin на правильную позицию по моему USB, и это определенно не путем копирования его с проводником :D

10
задан Ant Swift 22 February 2012 в 12:18
поделиться

2 ответа

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

use it like so:

dd if=c:\my files\boot.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.

10
ответ дан 4 December 2019 в 01:31
поделиться

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...

0
ответ дан 4 December 2019 в 01:31
поделиться
Другие вопросы по тегам:

Похожие вопросы: