Boot sector
Posted: Thu Dec 07, 2023 8:54 pm
With GPT we have this code as Boot Sector: section .text
Here we create .bin
nasm -f bin boot_sector.asm -o boot_sector.bin
create .img
fsutil file createnew boot_disk.img 1474560
copy
copy /B boot_sector.bin + boot_disk.img /B boot_disk.img
-----------------------------
after Oracle VM Box has decline this format, he recomend to convert
VBoxManage clonehd C:\boot_disk.img C:\boot_disk.vdi --format VDI
How do You think, can this work in principe? I not very trust GPT instruction.
Code: Select all
org 0x7C00
mov bp, 0x7C00
mov sp, bp
mov ah, 0x0E
mov al, 'O'
int 0x10
mov al, 'p'
int 0x10
mov al, 'S'
int 0x10
mov al, 'y'
int 0x10
mov al, 's'
int 0x10
mov al, '1'
int 0x10
jmp $
times 510-($-$$) db 0
dw 0xAA55
nasm -f bin boot_sector.asm -o boot_sector.bin
create .img
fsutil file createnew boot_disk.img 1474560
copy
copy /B boot_sector.bin + boot_disk.img /B boot_disk.img
-----------------------------
after Oracle VM Box has decline this format, he recomend to convert
VBoxManage clonehd C:\boot_disk.img C:\boot_disk.vdi --format VDI
How do You think, can this work in principe? I not very trust GPT instruction.