|
-
November 8th, 2007, 01:24 AM
#4
You need an initrd if the modules required to pivot root to your root device are not statically compiled in the kermel. eg. If your root drive is an Nvidia SATA the nvsata needs to be compiled in, if your root fs is resierfs, then reiserfs needs to be compiled in. If you do not include ALL the required modules in the kernel than you must create an initial ramdisk (initrd) that will allow the kernel to load the modules dynamically in order to locate and access the root filesystem, this is easier for most people since statically compiling them in requires you to understand your hardware and the associated linux modules in detail, whereas the initrd tools generally determine what is required for you. There is more than on way to create an initrd, in SuSE I imagine you will need the 'mkinitrd' package installed (check yast) I assume it works properly now although 'mkinitrd' had trouble with udev in the past, other options are 'yaird' (yet another initial ramdisk) and 'mkinitramfs'. The syntax for these tools are all fairly simliar. An example would be:
mkinitrd -o /boot/initrd.img-2.6.22.5.img 2.6.22.5
This tells initrd to create the output file in /boot and then specifies the kernel version. The initrd program will check the modules in /lib/modules/{kernel version} (2.6.22.5 in this case) for the proper modules, assuming you have done a 'make modules_install' from your kernel source directory. you must then update GRUB to make sure the initrd is passed at boot time from grub. The command 'update-grub' will add your new kernel to your /boot/grub/menu.list but you should go check that file and insure there is a line pointing to your initrd as sometimes the update command will not add this for you. (I think you need to name it exactly the way grub likes it, the above example is probably close but check the naming convention of existing initrd's in /boot) If the entry under 'kernel' is not a line for your initrd add it in. (You should see the syntax from the previous entry) Hope this helps.
-Maestr0
\"If computers are to become smart enough to design their own successors, initiating a process that will lead to God-like omniscience after a number of ever swifter passages from one generation of computers to the next, someone is going to have to write the software that gets the process going, and humans have given absolutely no evidence of being able to write such software.\" -Jaron Lanier
Similar Threads
-
By gore in forum Operating Systems
Replies: 83
Last Post: June 1st, 2017, 01:33 PM
-
By gore in forum Other Tutorials Forum
Replies: 12
Last Post: May 18th, 2005, 04:58 AM
-
By gore in forum Operating Systems
Replies: 0
Last Post: September 2nd, 2004, 07:14 AM
-
By rajunpl in forum Operating Systems
Replies: 43
Last Post: July 1st, 2004, 07:30 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|