Best ways to make the OS load from HDD

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Thunderbirds747
Member
Member
Posts: 83
Joined: Sat Sep 17, 2016 2:14 am
Location: Moscow, Russia

Best ways to make the OS load from HDD

Post by Thunderbirds747 »

Hello, I feel like making a bootloader which loads directly from the hard drive and not the floppy. Any examples or suggestions?
Sincerely, Tim.
Coffee is not airplane fuel.
Octocontrabass
Member
Member
Posts: 5587
Joined: Mon Mar 25, 2013 7:01 pm

Re: Best ways to make the OS load from HDD

Post by Octocontrabass »

You already wrote hard disk bootloaders and posted them in this thread.
User avatar
Thunderbirds747
Member
Member
Posts: 83
Joined: Sat Sep 17, 2016 2:14 am
Location: Moscow, Russia

Re: Best ways to make the OS load from HDD

Post by Thunderbirds747 »

Octocontrabass wrote:You already wrote hard disk bootloaders and posted them in this thread.
Really?
Coffee is not airplane fuel.
User avatar
iansjack
Member
Member
Posts: 4706
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Best ways to make the OS load from HDD

Post by iansjack »

Only if you have parsed the partition table to find the location of the partition containing your kernel.
azblue
Member
Member
Posts: 147
Joined: Sat Feb 27, 2010 8:55 pm

Re: Best ways to make the OS load from HDD

Post by azblue »

Booting from a hard drive is literally 100% the same as booting from a floppy, unless you're reading past 8GB, in which case you need to use LBA. (Look up RBIL to learn how to use LBA).
Post Reply