Install my OS on the computer

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
pcdever
Posts: 17
Joined: Thu Jul 28, 2016 1:23 am
Libera.chat IRC: pcdever

Install my OS on the computer

Post by pcdever »

Hello Everyone ,

Once Again I am back with another problem or not exactly a problem , can call it a query .
As we see in Operating Systems like Windows , Linux , Macintosh , etc . , when the installation disk is inserted it asks us if we want to install it . If yes then we continue with some steps and the os is installed on the computer and the next time we switch on the computer we find it booting automatically without the need of any disk .
I wanted to know what are the steps involved in this complete process and how can i implement the installation in my os.
And if possible I would appreciate answers as a developer and not as a user because i am more interested in implementing one.

Thanks in Advance.
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Install my OS on the computer

Post by onlyonemac »

You need to write an installation application for your operating system, and burn it to a CD or DVD. It's up to you how you decide what hard disk to install it on, how to install it, and so on, but typically you'll scan for storage devices and let the user select one, then scan the selected device's partition table and let the user select a partition to install into. You might also allow the user to create or delete partitions - it's up to you. Once you know what partition on what device to install into, format the partition with your operating system's filesystem and copy the required files over. Install a VBR to boot your operating system and maybe ask the user if they'd like to install your bootloader in the MBR, or tell them how to configure GRUB, NTLDR, etc. to chainload your VBR.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
Post Reply