Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 14-06-2007, 02:24 PM   #1 (permalink)
Alpha Geek
 
sachin_kothari's Avatar
 
Join Date: Dec 2004
Location: Pune
Posts: 569
Red face Boot Problems after Upgrading Kernel


I am using Debian Etch on my system having default kernel as 2.6.18.
I downloaded the latest kernel 2.6.21.5 from kernel .org and compiled and installed it.
Everything was fine till here.
I rebooted my system and when i try to boot from the new kernel i get this error message
Code:
VFS: Cannot open root device "hda3" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
I rebooted to my old kernel finally.
Help me boot to my new kernel.
sachin_kothari is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 14-06-2007, 02:31 PM   #2 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Boot Problems after Upgrading Kernel

As root, in your old kernel, delete the new one and try reupdating using your package manager from the terminal. For example i updated my kernel in Fedora using this in the terminal:

Code:
yum update kernel
yum is the package manager for RedHat/Fedora. Also your problem may be because some dependencies for the kernel were not updated. yum downloaded 3 dependencies to be updated.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 14-06-2007, 02:34 PM   #3 (permalink)
Alpha Geek
 
sachin_kothari's Avatar
 
Join Date: Dec 2004
Location: Pune
Posts: 569
Default Re: Boot Problems after Upgrading Kernel

how do u do that in debian?
sachin_kothari is offline  
Old 14-06-2007, 02:38 PM   #4 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Boot Problems after Upgrading Kernel

Quote:
Originally Posted by sachin_kothari
how do u do that in debian?
Which packman is installed? dpkg or apt-get?

See this googled result if it helps you: http://www.google.com/search?hl=en&c...update&spell=1
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 14-06-2007, 07:27 PM   #5 (permalink)
Alpha Geek
 
sachin_kothari's Avatar
 
Join Date: Dec 2004
Location: Pune
Posts: 569
Default Re: Boot Problems after Upgrading Kernel

i got what the problem is. but no solution yet.
the problem is

Code:
title		Debian GNU/Linux, kernel 2.6.21.5
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.21.5 root=/dev/hda3 ro 
savedefault

title		Debian GNU/Linux, kernel 2.6.18-4-k7
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.18-4-k7 root=/dev/hda3 ro 
initrd		/boot/initrd.img-2.6.18-4-k7
savedefault
the initrd entry is missing in the new kernel.
how do i get this entry?
how do i create the initrd.img file?
sachin_kothari is offline  
Old 14-06-2007, 07:39 PM   #6 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: Boot Problems after Upgrading Kernel

if u made the kernel debian way(its easy!) u can make initrd image by appending "--initrd" to the end of make-kpkg kernel_image kernel_headers to get initrd generated.EDIT:U need to check in kernel menuconfig "CONFIG_BLK_DEV_INITRD=y" to enable generation of initrd.normally it works as it just copies ur current kernels /boot/config-2.xx as /usr/src/.config which supports initrd generation.else u can generate initrd image(tried longback) using tools like yaird,mkinitrd,mkinitramfs etc.u can make a kernel that doesnt need initrd.mostly initrd is used when file system support is made as modules.make it compiled into the kernel with (*) symbol.
Debian uses patched kernel-source which can be obtained via apt as apt-get install linux-source-*
http://howtoforge.com got nice explanation on debian/ubuntu custom kernel compilation.else install "newbiedoc" from apt.
do research "man make-kpkg" and "man for initrd tools" u need to manually copy the initrd image to /boot directory and it needs to match kernel version exactly if u generate initrd the non-debian way.GIYF.always use the debian way for kernel compiling.it generates packages(.deb) for kernel image,headers,modules,initrd and more.
initrd guides:
http://wiki.linuxquestions.org/wiki/Mkinitrd
http://www.redhat.com/docs/manuals/l...el-initrd.html
http://www.faqs.org/docs/evms/x3834.html
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org

Last edited by praka123; 14-06-2007 at 07:48 PM.
praka123 is offline  
Old 14-06-2007, 08:40 PM   #7 (permalink)
Alpha Geek
 
sachin_kothari's Avatar
 
Join Date: Dec 2004
Location: Pune
Posts: 569
Default Re: Boot Problems after Upgrading Kernel

i did what u told appended --initrd at the end of make-kpfg.
the initrd entry is now ok.

but now a new problem
while booting i go this error
Code:
Begin: Waiting for root file system ... ...
nothing happens after that.
sachin_kothari is offline  
Old 14-06-2007, 08:47 PM   #8 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Boot Problems after Upgrading Kernel

Did you try my suggestion?
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 14-06-2007, 08:49 PM   #9 (permalink)
Alpha Geek
 
sachin_kothari's Avatar
 
Join Date: Dec 2004
Location: Pune
Posts: 569
Default Re: Boot Problems after Upgrading Kernel

yes i used dpkg, that problem is solved. but what about my new problem?
sachin_kothari is offline  
Old 14-06-2007, 08:50 PM   #10 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: Boot Problems after Upgrading Kernel

Sorry, i can't understand it.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 14-06-2007, 09:23 PM   #11 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: Boot Problems after Upgrading Kernel

What file system are you using? And how did you compile the new kernel?
mehulved is offline  
Old 14-06-2007, 09:25 PM   #12 (permalink)
Alpha Geek
 
sachin_kothari's Avatar
 
Join Date: Dec 2004
Location: Pune
Posts: 569
Default Re: Boot Problems after Upgrading Kernel

ext3
and i used this tutorial for compiling
http://www.holtmann.org/linux/kernel/debian.html
with a change of appending --initrd to make-kpkg
sachin_kothari is offline  
Old 15-06-2007, 06:41 AM   #13 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Smile check for modules built for basic ext3/ext2 support

the guide u r following is quiet old and for 2.4 kernels and seems obsolete.use the one at http://howtoforge.com and debian itself has a package called newbiedoc which installs a complete guide for debian including kernel compiling the debian way too.
http://howtoforge.com/roll_a_kernel_debian_ubuntu_way
http://howtoforge.com/kernel_compilation_debian_etch
the error may be due to fs support not built as @mehul said.
go to ur /usr/src/.config or ur new kernel's /boot/config-2.6.xx to check below options be there.this kernel below uses initrd.u can check initrd by mounting it as cpio file(mostly.earlier kernels differ).
Code:
CONFIG_EXT2_FS=m
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
# CONFIG_EXT2_FS_XIP is not set
CONFIG_EXT3_FS=m
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 15-06-2007, 09:28 AM   #14 (permalink)
Alpha Geek
 
sachin_kothari's Avatar
 
Join Date: Dec 2004
Location: Pune
Posts: 569
Default Re: Boot Problems after Upgrading Kernel

the config file shows all the options exactly as you mentioned.
anyway i will be using the new tutorial u provided for kernel compilation.
will post the results after that.
thankyou.

edit: the new tutorial worked exactly fine.
i have now booted into my new kernel.
thanks all for all the help.

Last edited by sachin_kothari; 15-06-2007 at 12:39 PM.
sachin_kothari is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Super Grub Disk for fixing your boot problems freebird Open Source 4 21-02-2007 08:24 PM
Boot Sector problems saurabh.sauron Open Source 2 07-11-2006 11:27 AM
boot problems ashfame Software Q&A 5 07-05-2006 04:25 PM
new custom kernel problems mailbinoy Open Source 1 01-07-2005 12:02 PM
How to upgrade to linux kernel 2.6 from kernel 2.4? kjayasurya Open Source 7 18-12-2004 02:23 PM

 
Latest Threads
- by Sujeet
- by soumya
- by clmlbx
- by Charan

Advertisement




All times are GMT +5.5. The time now is 12:42 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2