LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-06-2011, 12:55 PM   #1
hen770
Member
 
Registered: Oct 2010
Distribution: Arch
Posts: 136

Rep: Reputation: 7
unrecognized initrd file with grub-mkconfig (Arch linux).


Hi,

i am currently learninig for my LPIC-2, and one of the objects is about compile a kernel.

so i have a dediceted netbook to practice on it, i have installed on it Arch linux (kernel ver is: 3.0).

part of the practice that i have did, is to compile a new kernel, so i have successfully compiled the 3.0.4 kernel.
at the end of the compiling proccess (i am doing that manually, as less automation as possible), i have created an initrd* image file with the mkinitcpio program, but my problem arise when i am running the program of Grub2 in order to create an grub.cfg file, it not recognize the initrd file that i have created, although it recognize the kernel.

in order to check if the problem is with my initrd file itself, i have added it manually to the grub.cfg file (with 40_custom), and i was able to boot to the system with the new self-compiled kernel.

so i think that my problem is, how to make grub-mkconfig to recognize my initrd file and add it to the grub.cfg file that it creates.
i know that the above solution is working, but i wanna know if i did something wrong. after all i am preparing to a test.

*initrd == any convention that you wanna call that kind of file.

Edit: my kernel name is: vmlinuz-3.0.4-Hanan
my initrd name is: initramfs-linux-3.0.4-Hanan.img

i have tried change the initrd name to other variation but no joy.


Thanks in advanced.

Last edited by hen770; 09-06-2011 at 02:31 PM.
 
Old 09-06-2011, 01:37 PM   #2
kasl33
Member
 
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Rep: Reputation: 48
Is it possible that you have the actual initrd filename wrong? I let the system take care of the kernel, but here's my bootloader:

Code:
# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz-linux root=/dev/disk/by-uuid/728c4820-b287-464e-b25c-82a1c245311e ro quiet vga=773
initrd /initramfs-linux.img
 
Old 09-06-2011, 02:30 PM   #3
hen770
Member
 
Registered: Oct 2010
Distribution: Arch
Posts: 136

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by kasl_33 View Post
Is it possible that you have the actual initrd filename wrong? I let the system take care of the kernel, but here's my bootloader:

Code:
# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz-linux root=/dev/disk/by-uuid/728c4820-b287-464e-b25c-82a1c245311e ro quiet vga=773
initrd /initramfs-linux.img
i have tried change the initrd name to other variation but no joy.

the names are:

my kernel name is: vmlinuz-3.0.4-Hanan
my initrd name is: initramfs-linux-3.0.4-Hanan.img
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Help me with Arch Linux and Windows XP dualboot, grub.cfg messed!! p3ini Linux - Newbie 4 06-11-2011 02:22 PM
Grub problem 13 triple boot Linux machine Fedora, Ubuntu & Arch kmacphail Linux - General 2 06-21-2009 04:48 PM
How to create new initrd.gz (or initrd.img) file? kkpal Programming 2 12-10-2007 08:38 AM
GRUB question Arch Linux/XP RagingGoose Linux - Newbie 9 09-04-2007 06:09 PM
Stuck at grub config for Arch Linux DeadPenguin Linux - Newbie 1 11-14-2004 01:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:04 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