Skip to contentSkip to conversation

GRUB question

DISCUSSION horseriver 5 participants 9 messages Jan 27, 2013 – Jan 29, 2013

lore
Share & tools
lore

horseriver

author
#0 lore raw

hi:)

Is /boot/initrd.img a root filesystem? what is the filetype of it?

Can I put initrd.img in a floppy to boot system ?

thanks!

author
#2 lore raw
In reply to Mandeep Sandhu
Quoted 5 lines · Mandeep Sandhu
Quoted 3 lines · horseriver

hi:)

Is /boot/initrd.img a root filesystem? what is the filetype of it?

Quoted 8 lines

Yes, it's a rootfs with minimal stuff needed for booting a workable system. why does this matter. doing 'file /boot/initrd.img....' on my system shows its a gzip compressed file.

Quoted 2 lines

Can I put initrd.img in a floppy to boot system ?

I think you can. Provided you have the floppy driver compiled into your kernel.

Thanks!

Does this /boot/initrd.img file come out when building kernel ? how to build it?

Quoted 18 lines

CMIIW.

-mandeep

Quoted 7 lines

thanks!

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

author
#4 lore raw
In reply to Mulyadi Santosa
Quoted 5 lines · Mulyadi Santosa
Quoted 2 lines · horseriver

Does this /boot/initrd.img file come out when building kernel ? how to build it?

you use your distro supplied /sbin/mkinitrd or /sbin/mkinitramfs

Thanks!

I mean its content is from where ?
After /sbin/mkinitrd , what stuff is needed to fill it ?

Quoted 14 lines
Signature · 13 lines
-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
#1 lore raw
In reply to horseriver
Quoted 3 lines · horseriver

hi:)

Is /boot/initrd.img a root filesystem? what is the filetype of it?

Yes, it's a rootfs with minimal stuff needed for booting a workable system. why does this matter. doing 'file /boot/initrd.img....' on my system shows its a gzip compressed file.

Quoted 2 lines

Can I put initrd.img in a floppy to boot system ?

I think you can. Provided you have the floppy driver compiled into your kernel.

CMIIW.

-mandeep

Quoted 7 lines

thanks!

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

#3 lore raw
In reply to horseriver
Quoted 2 lines · horseriver

Does this /boot/initrd.img file come out when building kernel ? how to build it?

you use your distro supplied /sbin/mkinitrd or /sbin/mkinitramfs

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
#5 lore raw
In reply to horseriver
Quoted 8 lines · horseriver
Quoted 1 line · Mulyadi Santosa

On Mon, Jan 28, 2013 at 5:10 AM, horseriver <[email protected]>

Quoted 4 lines · wrote:
Quoted 2 lines

Does this /boot/initrd.img file come out when building kernel ? how to build it?

you use your distro supplied /sbin/mkinitrd or /sbin/mkinitramfs

Quoted 7 lines

Thanks!

I mean its content is from where ?
After /sbin/mkinitrd , what stuff is needed to fill it ?

Third link if you search make initrd

http://www.ibm.com/developerworks/linux/library/l-initrd/index.html

Nowadays distros use more sophisticated programs like dracut.
https://dracut.wiki.kernel.org/index.php/Main_Page

Quoted 20 lines
Quoted 7 lines

--
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

Quoted 7 lines

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Signature · 6 lines
Thank you
Warm Regards
Anuz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130128/415e21e1/attachment.html 
#6 lore raw
In reply to horseriver
Quoted 6 lines · horseriver
Quoted 5 lines · Mandeep Sandhu
Quoted 3 lines · horseriver

hi:)

Is /boot/initrd.img a root filesystem? what is the filetype of it?

Quoted 8 lines
Quoted 8 lines

Yes, it's a rootfs with minimal stuff needed for booting a workable system. why does this matter. doing 'file /boot/initrd.img....' on my system shows its a gzip compressed file.

Quoted 2 lines

Can I put initrd.img in a floppy to boot system ?

I think you can. Provided you have the floppy driver compiled into your kernel.

And assuming the initrd fits on a floppy (which is actually unlikely - even without any kernel modules on it, the initrd to get LVM launched comes in at around 8M. A default Fedora initramfs is closer to 20M. Good luck fitting that on a floppy :)

Of course, an initrd on floppy is kind of silly, because you still need to find someplace else to fit the actual kernel - which hasn't fit on a floppy for quite some time.

Quoted 4 lines

Thanks!

Does this /boot/initrd.img file come out when building kernel ? how to build it?

Your system should have either 'mkinitrd' or 'dracut' to build the
initrd image. Some older systems will have 'mkinitramfs'.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130128/7ffb28af/attachment.bin

author
#7 lore raw
Quoted 4 lines

Of course, an initrd on floppy is kind of silly, because you still need to find someplace else to fit the actual kernel - which hasn't fit on a floppy for quite some time.

Do we must need initrd.img to boot system ?

Quoted 6 lines
Quoted 3 lines

Does this /boot/initrd.img file come out when building kernel ? how to build it?

Your system should have either 'mkinitrd' or 'dracut' to build the initrd image. Some older systems will have 'mkinitramfs'.

I know how to make a initrd image file , but put what data into it?

Thanks!

#8 lore raw
Quoted 6 lines · horseriver
Quoted 4 lines

Of course, an initrd on floppy is kind of silly, because you still need to find someplace else to fit the actual kernel - which hasn't fit on a floppy for quite some time.

Do we must need initrd.img to boot system ?

If your kernel is able to find the root filesystem without any assistance, based on just the built-in drivers and the root= kernel commandline value, you don't need an initrd. However, most distros build basically an 'allmodconfig', which means the required drivers for devices and filesystems are modules and need to be loaded before the root filesystem can be mounted. Also, if you use root-on-LVM or similar, you will need an initrd to issue the LVM command to start up the disks.

Quoted 4 lines
Quoted 2 lines

Your system should have either 'mkinitrd' or 'dracut' to build the initrd image. Some older systems will have 'mkinitramfs'.

I know how to make a initrd image file , but put what data into it?

You put in what's needed to get your root filesystem mounted and get
/sbin/init or whatever started. This will, of course, depend on your exact
hardware, disk, and kernel configuration (my system only needs to do the
LVM thing, as all drivers are built-in. Your system will probably differ). -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130129/345bed60/attachment.bin