LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-05-2006, 03:50 PM   #1
bvdeynse
LQ Newbie
 
Registered: Feb 2006
Location: belgium
Distribution: Debian
Posts: 11

Rep: Reputation: 0
Question kernel panic after changing initrd for bootsplash


im running debian (etch) on a 2.6.15 kernel, which i just recompiled so i could use bootsplash. i backed up my initrd file and then did

splash -s -f /etc/bootsplash/themes/current/config/bootsplash-1024x768.cfg >> /boot/initrd.img-2.6.15.4

when i rebooted, i got my pretty bootsplash theme, but i also got this:

RAMDISK: Couldn't find valid RAM diskimage starting at 0
VFS: CAnnot open root device "hda0" or unknown block (0,0)
Please append a correct root= boot option
Kernel panic- no suncing: VFS: unable to mount fs on unknown - block
(0,0)

pointing grub to my backup initrd file solves the problem, but then i dont get the nice debblue background.

so whats the problem? the splash command above obviously isnt making a working initrd file, but why not? and how do i get past this problem? google has shown me that lots of people have had this problem, but no one has given any solutions...
 
Old 03-05-2006, 04:12 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
You surely adapted your grub config-file - could you post it? ( along with your disk-layout: fdisk -l )
 
Old 03-05-2006, 05:00 PM   #3
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
Thats because debian has switched from cramfs to initramfs. I have posted very specific instructions on how to add the bootsplash to your initrd for recent debian kernels on the bootsplash mailing list. Someone else has even written a hook for mkinitramfs to do it for you.

Just search their archives.
 
Old 03-06-2006, 08:43 AM   #4
bvdeynse
LQ Newbie
 
Registered: Feb 2006
Location: belgium
Distribution: Debian
Posts: 11

Original Poster
Rep: Reputation: 0
I found out the simply running this script fixes the problem, this is just manually adding the bootsplash to the initrd as described in the troubleshout section in this site

wiki.debianforum.de/bootsplash

thanx anyway dracae
 
Old 06-07-2006, 09:09 PM   #5
gringer
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Rep: Reputation: 0
clarification / expansion on bootsplash for 2.6.15+

Okay, here is a summary of the mkinitramfs-related stuff at [URL="http://www.debianforum.de/wiki/Bootsplash"]
  1. download the bootsplash mkinitramfs script from http://www.x-quadraht.de/debian/bootsplash, and place that in /usr/share/initramfs-tools/hooks/bootsplash
  2. chmod u+x /usr/share/initramfs-tools/hooks/bootsplash
  3. add a line to /etc/default/bootsplash for your screen resolution
    Code:
    # Resolution of splash screen
    SPLASH_SIZE="1024x768"
  4. update-initramfs -uv

There might be other places with an English version of these instructions. Hopefully this should give you enough of a start so that you can have a hunt through archives and such for more useful / specific instructions.
 
Old 06-18-2007, 01:15 PM   #6
yoonix2
LQ Newbie
 
Registered: Jun 2007
Posts: 1

Rep: Reputation: 0
initramfs vs bootsplash solution

I actually created an user id so I can answer your question.

I am not sure if you found a solution or installed ubuntu or some other linux distro.

I had same problem yesterday.

The main problem is you can not do

splash -c -f "config" >> /boot/initrd.img.<your kernel version>

Debian uses initramfs and it's compressed so you can't just append splash images to the end. This has been explained in the bootsplash.org. But no real solution other than 'ya look up my comment in archieve'.

All you had to do is remove your initrd.img and run

update-initramfs -c -k <your kernel version>

OR you can go back and make the old format of initrd using mkinitrd.

I still had to modify "/etc/initramfs-tools/hooks/bootsplash" line 51 from "splash -s -f $blahblah" to "/usr/sbin/splash -s -f .."
 
  


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
bootsplash causes kernel panic after modifying initrd bewareofthesnowman Linux - Software 2 02-28-2006 06:33 PM
Bootsplash kernel panic half resolved conn-fused Mandriva 1 01-26-2005 03:16 AM
cramfs, kernel-panic...initrd, bootsplash... Outabux Debian 3 10-26-2004 06:42 PM
initrd & kernel panic asjapulk Linux - General 2 01-13-2004 01:35 AM
initrd kernel panic gavares Linux - General 0 08-25-2003 11:40 AM


All times are GMT -5. The time now is 11:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration