Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap Hard disk access

I'm trying to write a bootstrap loader for the fun of it, I've been using guides such as:

http://www.omninerd.com/articles/PC_Bootstrap_Loader_Programming_Tutorial_in_ASM

http://hem.passagen.se/danma/nboot.htm

http://en.skelix.org/skelixos/tutorial01.php

I'm able to successfully copy over sectors from a floppy disk but when I try to access a harddisk I'm returned an error code from all int 13 functions other than reset. reset disk doesn't return an error.

Is there something special I have to do before int 13 works for hard disks?

like image 466
Without Me It Just Aweso Avatar asked Jun 01 '26 01:06

Without Me It Just Aweso


1 Answers

Not that I'm aware of. Have you seen http://gaztek.sourceforge.net/osdev/boot/index.html ? That has a list of examples, at least one of which claims to be reading a file from "C:\" (presumably a DOS-formatted harddisk)

like image 134
MSalters Avatar answered Jun 03 '26 23:06

MSalters