Page 1 of 1

Read sectors of a hard disk without INT 13

Posted: Sun Dec 01, 2013 2:30 pm
by Hercules
How to read sector of a HDD without use INT?

Re: Read sectors of a hard disk without INT 13

Posted: Sun Dec 01, 2013 2:43 pm
by bwat
Disassemble the int 13h handler and see.

Re: Read sectors of a hard disk without INT 13

Posted: Sun Dec 01, 2013 3:32 pm
by iansjack
It doesn't give a very good impression when you ask a question that is fairly comprehensively answered on the Wiki. Honestly, if you can't find the answer to your question with a little research then you'll be happier with a less demanding hobby.

Re: Read sectors of a hard disk without INT 13

Posted: Wed Dec 04, 2013 5:22 am
by nerdguy
Looking at your question it seems you're using Protected Mode or Long Mode,
There are a lot of operating systems that do this checkout the projects section.
Also you didn't search the wiki
http://wiki.osdev.org/ATA_read/write_sectors
Also there is an existing question
http://forum.osdev.org/viewtopic.php?t=12268
As a lazy, old, stupid way you can switch back to pure real mode (I think v8086 has some complications regarding this, Win 95 suffered crashes and halts during Disk access) and use int 0x13 normally and then switch back to protected mode.

Re: Read sectors of a hard disk without INT 13

Posted: Wed Dec 11, 2013 7:22 am
by Hercules
nerdguy wrote:Looking at your question it seems you're using Protected Mode or Long Mode,
There are a lot of operating systems that do this checkout the projects section.
Also you didn't search the wiki
http://wiki.osdev.org/ATA_read/write_sectors
Also there is an existing question
http://forum.osdev.org/viewtopic.php?t=12268
As a lazy, old, stupid way you can switch back to pure real mode (I think v8086 has some complications regarding this, Win 95 suffered crashes and halts during Disk access) and use int 0x13 normally and then switch back to protected mode.
How to switch back to protected mode at windows operating systems after use INT 13h?

Re: Read sectors of a hard disk without INT 13

Posted: Wed Dec 11, 2013 11:07 pm
by thepowersgang
You don't. If you're running under windows, you let it do the disk access. If you're running in your own 32-bit OS, you use native drivers (ATA and FDD drivers are quite simple). If you're running in a boot loader, then you may switch between real and protected modes and use the BIOS. Instructions on how to do so are in the Intel Manuals.