1

During Linux booting how is the contents of grub.conf read since the file system is not mounted yet?

nitins
  • 2,527
  • 15
  • 42
  • 65
  • 1
    If I am correct as soon as MBR is loaded it executes first 512 KB of your boot-able disk and Grub has understanding of file system whereas Lilo does not understand file system. Also Grub is in the first partition on the first hard drive, which is (hd0,0) by default until not modified or changed. initrd plays major role for loading basic drivers on the ram while boot up process. Hope this makes some sense. – Pratap Dec 20 '12 at 09:31

1 Answers1

4

Grub is able to read from your root file system all by itself. It is in essence a miniature operating system: it has driver code to talk to (some of) your hardware, and it has file system code to understand the layout of your filesystem.

Take a look in /boot/grub. The *.mod files are driver modules: ata.mod for ATA hard drives, ext2.mod for ext2/3 file systems, ...

Kristof Provost
  • 323
  • 2
  • 5