LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-03-2008, 09:18 AM   #1
huhaizhi
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
Who can explain this files---vmlinuz?


vmlinuz?
I don't know the meaning of this file.
who can explain it?
 
Old 05-03-2008, 09:23 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
http://www.linfo.org/vmlinuz.html
 
Old 05-04-2008, 09:46 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
When you start the computer, a "boot loader" runs to let you choose which system you want to start. If you choose Linux, the boot loader has to locate the kernel-image that needs to be brought into memory. That's "vmlinuz."

Now... why the "z?" Well, that refers obscurely to the fact that the kernel-image is compressed. The kernel-image file is first loaded into memory, then it automagically un-compresses itself.

Once the kernel-image is loaded into memory (and uncompressed), the boot loader hands-over control to it.
 
Old 05-06-2008, 06:17 AM   #4
huhaizhi
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Original Poster
Rep: Reputation: 0
thanks for your reply!
when I installed virtual linux in XP,I met two files---vmlinuz &initrd.img.
what's the meaning of initrd.img?
i always think it is the bootloader in linux.
Is it true? why ? Who can explain it?
thanks!
 
Old 05-06-2008, 08:29 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
initrd.img is an image that is loaded into RAM during the boot process. It is not always used. Details: http://www.google.com/search?q=initr...L_enUS177US235

The bootloader is code stored in the MBR and other drive sectors, and is responsible for finding and loading the kernel.
 
Old 05-06-2008, 10:44 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Here's the skinny about initrd...

When a "distro" writer is putting together their system, the thing they've got to figure-out is just how to make their distro "run on anything." (And, oh yeah, "make it look easy.")

So... they might need to be able to do things before Linux, itself, actually starts booting. They might need to detect hardware and load some device-drivers, for example, just so that Linux will be able to locate and access "this particular hard-drive." And so it goes.

So... what the kernel folks came up with is, believe it or not, "a virtual 'boot floppy.'" It's a tiny, absolutely-stripped-down environment that can run before Linux itself does, in a "John the Baptist sort of way," to "prepare the way for the Linux."

That's initrd. It's the one that puts up that very nice-looking splash screen, by the way, that you see during most of the time that a typical Linux-distro boots. (Wanna get technical? OS/X and Windows do it the same way, too.)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysterius files, hard to explain in topic tripmix Linux - Newbie 2 05-27-2006 05:32 AM
vmlinuz DigiCrime Linux - Software 4 01-07-2005 05:44 PM
Explain me bzImage, /vmlinuz to build kernel letdoit Slackware 3 05-23-2004 09:38 PM
What are these files ? vmlinuz and vmlinux raees Linux - General 4 03-20-2004 06:16 AM
how do you play mpeg files on redhat 9?? pelase explain it simple because i am a noob qod Linux - Newbie 8 10-25-2003 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration