man mkinitrd
codice:
...
A simple example: Build an initrd for a reiserfs root partition:
mkinitrd -c -m reiserfs
Another example: Build an initrd image using Linux 2.6.7 kernel modules for a system with an ext3 root
partition on /dev/hdb3:
mkinitrd -c -k 2.6.7 -m jbd:ext3 -f ext3 -r /dev/hdb3
If run without options, mkinitrd will rebuild an initrd image using the contents of the $SOURCE_TREE
directory, or, if that directory does not exist it will be created and populated, and then mkinitrd will
exit. These options are handy for building an initrd mostly by hand. After creating /boot/initrd-tree/,
you can add modules and edit files by hand, and then rerun mkinitrd to create the initrd.
Once the initrd is created, you'll need to tell your boot loader to load it. If you boot with LILO, you
will need to add an initrd line to /etc/lilo.conf. Here's a section of lilo.conf that shows how to set
this up:
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-2.6.7
initrd = /boot/initrd.gz
root = /dev/hda6
label = Linux267
read-only
# Linux bootable partition config ends
Once you've created the initrd and editing /etc/lilo.conf, you will need to run 'lilo' to write out the
changed boot block. The next time you reboot the initrd should be loaded along with the kernel.
Have fun!
AUTHOR
Patrick J. Volkerding <volkerdi@slackware.com>
[edit]
scusate per lo sconquasso sul layout
[/edit]