 |
14-06-2007, 02:24 PM
|
#1 (permalink)
|
|
Alpha Geek
Join Date: Dec 2004
Location: Pune
Posts: 569
|
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.
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
14-06-2007, 02:31 PM
|
#2 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
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:
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
|
|
|
14-06-2007, 02:34 PM
|
#3 (permalink)
|
|
Alpha Geek
Join Date: Dec 2004
Location: Pune
Posts: 569
|
Re: Boot Problems after Upgrading Kernel
how do u do that in debian?
|
|
|
14-06-2007, 02:38 PM
|
#4 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
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
|
|
|
14-06-2007, 07:27 PM
|
#5 (permalink)
|
|
Alpha Geek
Join Date: Dec 2004
Location: Pune
Posts: 569
|
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?
|
|
|
14-06-2007, 07:39 PM
|
#6 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
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.
|
|
|
14-06-2007, 08:40 PM
|
#7 (permalink)
|
|
Alpha Geek
Join Date: Dec 2004
Location: Pune
Posts: 569
|
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.
|
|
|
14-06-2007, 08:47 PM
|
#8 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
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
|
|
|
14-06-2007, 08:49 PM
|
#9 (permalink)
|
|
Alpha Geek
Join Date: Dec 2004
Location: Pune
Posts: 569
|
Re: Boot Problems after Upgrading Kernel
yes i used dpkg, that problem is solved. but what about my new problem?
|
|
|
14-06-2007, 08:50 PM
|
#10 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
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
|
|
|
14-06-2007, 09:23 PM
|
#11 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: Boot Problems after Upgrading Kernel
What file system are you using? And how did you compile the new kernel?
|
|
|
15-06-2007, 06:41 AM
|
#13 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
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
|
|
|
15-06-2007, 09:28 AM
|
#14 (permalink)
|
|
Alpha Geek
Join Date: Dec 2004
Location: Pune
Posts: 569
|
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.
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|