Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to learn the GNU/Ubuntu-Linux in a detailed way.

I was reading 00_header, which run first when grub loads, and I saw

for i in ${GRUB_PRELOAD_MODULES} ; do
  echo "insmod $i"
done

As I know, insmod is a module loader used by Kernel. If the grub is running; there must be no Kernel loaded. How can this code run?

Thanks for any replies.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Ooops!

Pardon me for that, but I just found it.

It is just a similarity of name. I found it under /boot/grub/insmod

share|improve this answer
    
Indeed, grub has loadable modules in a similar fashion to the kernel often for similar things such as file system support. The modules are completely unrelated however. –  Andy Apr 17 '12 at 13:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.