I was making some changes to
/etc/fstab, when this chicken and egg question occurred to me - if
/etc/fstab contains the instructions for mounting the file systems, including the root partition, then how does the OS read that file in the first place?
When the boot loader calls the kernel it passes it a parameter called
Depending on your configuration and on the init system that you use, there can be multiple other steps between the ones that I mentioned. Currently the most popular init systems on Linux are SysVInit (the traditional one), Upstart and Systemd. You can find more details about the boot process in this wikipedia article.
Here is a simplified example of my Grub config. The important part to answer your question is on the second to last line, there is a
In many configurations the kernel mounts