LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2005, 12:20 PM   #16
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15

mkinitrd -k <kernel> -i <initrd>


ok, help out in the statement:

<kernel> is this where I am naming and placing the initrd file, or directing where to locate the kernel image file

I tried:
mkinitrd -k /boot/initrd-2.6.11.3.img -i 2.6.11.3

Root device: /dev/hdc1 (mounted on / as reiserfs)
Module list: reiserfs
No kernel image /boot/initrd-2.6.11.3.img found
 
Old 03-31-2005, 12:27 PM   #17
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
I usually run mkinitrd in /boot, in this case I do not need to use full paths. <kernel> refers to the kernel binary, in your case vmlinuz-2.6.11.3y, <initrd> to the name you would like to give the ramdisk, e.g. initrd-2.6.11.3y (SUSE naming). If you run mkinitrd from outside /boot, the command could look like this:

mkinitrd -k /boot/vmlinuz-2.6.11.3y -i /boot/initrd-2.6.11.3y
 
Old 03-31-2005, 12:46 PM   #18
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
I'm sure you are getting tired of walking me thru this, but I really do appreciate it.

Created the initrd file correctly, I think.

Error popped up that modules.dep may need to be updated. I may have jumped the gun, but I tried to reboot with the new kernel and got nothing. No errors, no nothing. After I selected the net kernel, screen went blank and nothing else happened. I did reconfigure the menu.lst file to include the new kernel image and initrd file.That is the only difference from the old configuration.

Is the modules.dep my problem now?

DA nono
 
Old 03-31-2005, 12:51 PM   #19
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Maybe something with your framebuffer configuration went wrong. In my favourite kernel howto (unfortunately in german) I found the following:
Code:
CONFIG_INPUT=y<
CONFIG_VT=y
CONFIG_VGA_CONSOLE=y
CONFIG_VT_CONSOLE=y
These parameters need to be set in your kernel config, otherwise blackout.

I think you can ignore the modules.dep error in the moment. This came during ramdisk creation and you didn't even get so far yet.

Last edited by abisko00; 03-31-2005 at 12:57 PM.
 
Old 03-31-2005, 01:37 PM   #20
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
All of those lines are present in the config-2.6.11.3 file and are not commented out. Could there be a problem in the menu.lst file?

title linux
kernel (hd0,0) /boot/vmlinuz-2.6.11.3 root=/dev/hdc1 vga=791
initrd (hd0,0) /boot/initrd-2.6.11.3

That is the entry for the new kernel. The file names match what is in the boot dir. Does the initrd need to be a symbolic link instead of the actual gzip file?

DA nono
 
Old 03-31-2005, 02:10 PM   #21
APB_4
Member
 
Registered: Nov 2004
Location: England
Distribution: Ubuntu 9.04; Crunchee; EEE Xandros
Posts: 291

Rep: Reputation: 31
hd0,0 = hda1 in /dev. hdc1 should be hd2,0 I think.
 
Old 03-31-2005, 02:22 PM   #22
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
Changed to this:

kernel (hd2,0) /boot/vmlinuz-2.6.11.3 root=/dev/hdc1 vga=791
initrd (hd2,0) /boot/initrd-2.6.11.3

Error 21: Selected disk does not exist

Changed to (hd0,2) in both lines:

Error 15: File not found

Changed to (hd0,1) in both lines:

Error 17: Cannot mount selected partition

I think my hair is getting thinner by the minute!

DA nono
 
Old 03-31-2005, 02:36 PM   #23
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
A little progress!!!!!!!!!

Removed the vga=791 and set to (hd0,0)

THE SYSTEM STARTED TO BOOT!

But, it only got as far as:

rootfs: /dev/hdc1 major=22 minor=1 dev_t-5633
Kernel panic-not syncing: VFS: Unable to mount root fs on unknown-block(22,1)

Anyone seen this before?

DA nono
 
Old 03-31-2005, 03:00 PM   #24
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
rootfs: /dev/hdc1 major=22 minor=1 dev_t-5633
Kernel panic-not syncing: VFS: Unable to mount root fs on unknown-block(22,1)

Is this part of the error telling me where in the config file the problem is?

This line in my config file is:

CONFIG_LOCAL_VERSION="y"
 
Old 04-01-2005, 02:15 AM   #25
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
Sorry, I went home yesterday, but I see you still had help

Not mounting rootfs can have several causes:

1. rootfs could not be found due to false parameters in the bootloader
2. rootf could not be mounted because the HDD controller driver or the filesystem driver was not present at that stage. This could either be a unreadable ramdisk (you should see if the kernel reads the ramdisk) or that the driver was not included into ramdisk.

Did you see whether the HDD was recognised and the initrd properly loaded?
 
Old 04-01-2005, 07:02 AM   #26
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Rep: Reputation: 30
looks like your using grub, with that hd(0,0) = hda1, hd(1,1) = hdb2 etc.
 
Old 04-01-2005, 07:27 AM   #27
edanono
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
RAMDISK driver initialized: 16 RAM disks of 64000k size 1024 block size

This is one of the lines. Is this what I am looking for?

DA nono
 
Old 04-04-2005, 02:44 AM   #28
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

Rep: Reputation: 58
I think the more interesting part comes thereafter. Are the drivers (e.g. reiserfs) loaded from ramdisk, are the drives properly recognised.
BTW: did you upgrade the package mkinitrd before? Have a look here, if not:
http://www.linuxforums.org/forum/top...tml&highlight=
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Hitting walls with Real and mplayer Louis_Carole Linux - Newbie 2 11-15-2004 11:08 AM
Themes/Walls TrickFinlay22 Slackware 4 09-12-2004 03:33 PM
Installation - Hitting a brick wall stuseed Red Hat 1 12-23-2003 07:01 PM
Kernel 2.6 hitting the mainstream? navarre9 Linux - General 10 12-22-2003 09:43 AM
802.11b brick 50yard greendusk Linux - Wireless Networking 1 10-16-2003 12:00 PM


All times are GMT -5. The time now is 02:39 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration