How does it work install the system to disk?
Posted: Sun Aug 01, 2021 8:08 pm
Hi, I currently have a ridiculously simple and small operating system, but I was wondering how this idea of loading an operating system onto a disk, HD, SSD works, as mine is currently on the bootable pendrive and when it shuts down, everything is lost.
The bootloader loads my approximately 150b kernel at address 0800h:0000h if I were to load this to disk, would I have to load an exact copy of the same kernel that I load in memory, just on hd? (and all other files)
That's assuming I've already developed a filesystem and drivers to read and write to hd, which isn't the case.
And as would be the mechanics of an installer like Windows, I would have to load in main memory a kind of "installer kernel" that installs the file system on hd (or a partition), and then load the kernel and the whole program . on hd?
but to do that this "installer kernel" would already have to have driver support to detect hd and write to it, and many other things
How does it usually work?
Obs: if there is a typo, understand that I translated on google translator
The bootloader loads my approximately 150b kernel at address 0800h:0000h if I were to load this to disk, would I have to load an exact copy of the same kernel that I load in memory, just on hd? (and all other files)
That's assuming I've already developed a filesystem and drivers to read and write to hd, which isn't the case.
And as would be the mechanics of an installer like Windows, I would have to load in main memory a kind of "installer kernel" that installs the file system on hd (or a partition), and then load the kernel and the whole program . on hd?
but to do that this "installer kernel" would already have to have driver support to detect hd and write to it, and many other things
How does it usually work?
Obs: if there is a typo, understand that I translated on google translator