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
TimothyARyazanov
Member
Member
Posts: 89
Joined: Sat Sep 17, 2016 2:14 am
Location: Moscow, Russia

Best ways to make the OS load from HDD

Post by TimothyARyazanov »

Hello, I feel like making a bootloader which loads directly from the hard drive and not the floppy. Any examples or suggestions?
Sincerely, Tim.
Freedom is slavery.
War is peace.
Ignorance is strength.

Quote from 1984 by George Orwell.
Octocontrabass
Member
Member
Posts: 6293
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
TimothyARyazanov
Member
Member
Posts: 89
Joined: Sat Sep 17, 2016 2:14 am
Location: Moscow, Russia

Re: Best ways to make the OS load from HDD

Post by TimothyARyazanov »

Octocontrabass wrote:You already wrote hard disk bootloaders and posted them in this thread.
Really?
Freedom is slavery.
War is peace.
Ignorance is strength.

Quote from 1984 by George Orwell.
User avatar
iansjack
Member
Member
Posts: 4941
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