LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2004, 03:18 AM   #1
.::deVil::..'o'
LQ Newbie
 
Registered: Nov 2003
Location: Yugoslavia
Distribution: Debian
Posts: 7

Rep: Reputation: 0
Booting problems in Debian


I have a problem with my Debian (SID 3.1). Actually i have problem compiling a new kernel (2.6.8). After running make menuconfig, make, make modules_install, make install, i realize that the initrd.img-2.6.8 file is missing from /boot, so I tried to make it myself:

mkinitrd -o /boot/initrd-2.6.8.img 2.6.8

and the reply was:

cpio: /etc/modprobe.conf: No such file or directory
cpio: /lib/modules/modprobe.conf: No such file or directory

and makes the file.
Then I edit my grub bootloader, and reboot.
When i select the new entry in to boot from, after a few lines of text, stops with this error message:

VFS: Cannot open root device "hde2" or unknown-block(0,0)
Please append a correct "root=" boot option.
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)

I suppose it can't find my Serial ATA disk, and I'm sure that the drivers are compiled in the new kernel (not as modules).

If anyone has any idea how to fix this problem, do not hesitate to send it.
 
Old 08-25-2004, 06:31 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Have you run a 2.6 series kernel prior to this upgrade? If not you will need to install module-init-tools, which is required by the 2.6 series of the kernel.

Also, check out make-kpkg. It makes building Debian packages of locally built kernels very easy as it automatically updates your Grub/Lilo setup and more.


Håkan

Edit:The package that provides make-kpkg is called kernel-package, so just apt-get it.

Last edited by hw-tph; 08-25-2004 at 06:32 AM.
 
Old 08-25-2004, 06:34 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Hmmm. On another note - what SATA drivers did you use? If you use the (preferred) libata drivers under SCSI low level drivers in the kernel configuration, and you previously used the drivers provided in ATA/IDE devices, the device names will have changed from /dev/hde to /dev/sda and so on.


Håkan
 
Old 08-27-2004, 04:06 AM   #4
.::deVil::..'o'
LQ Newbie
 
Registered: Nov 2003
Location: Yugoslavia
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks very much!
I canged the hde to sda, and it worked!
Ofcourse compileing won't be fun if there weren't any more errors :-)
Now i'm getting this message:

pivot_root: No such file or directory
/sbin/init: 424: cannot open dev/console: No such file
Kernel panic: attempt to kill init!

I looked in /dev for the console, and I find it, I eaven gave everyove every permition.
Maybe it's because that cpio error that I get when makeing mkinitrd.
 
Old 08-27-2004, 04:08 AM   #5
.::deVil::..'o'
LQ Newbie
 
Registered: Nov 2003
Location: Yugoslavia
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks very much!
I changed the hde to sda, and it worked!
Of course compiling won't be fun if there weren't any more errors :-)
Now i'm getting this message:

pivot_root: No such file or directory
/sbin/init: 424: cannot open dev/console: No such file
Kernel panic: attempt to kill init!

I looked in /dev for the console, and I find it, I even gave everyone every permission.
Maybe it's because that cpio error that I get when makeing mkinitrd.
 
Old 08-27-2004, 05:28 AM   #6
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Do you have devfs in your kernel? I think it is needed. Also try adding "devfs=mount" to the parameters passed to the kernel. In Grub, simply append "devfs=mount" (without quotes) to the kernel line. If you use Lilo, edit /etc/lilo.conf and add:
Code:
append="devfs=mount"
...and rerun /sbin/lilo.


Håkan
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
dual booting solaris and debian sh4d0w13 Linux - General 1 03-03-2005 01:57 PM
debian booting to xwindows w/ no mouse illennium Linux - Newbie 5 01-22-2005 03:43 PM
booting debian without x yawara Linux - Distributions 12 07-29-2004 07:46 PM
Booting Debian jimscafe Debian 3 01-04-2004 06:20 AM
Trouble booting Debian feyo Linux - Newbie 3 09-14-2003 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:34 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
Open Source Consulting | Domain Registration