Howto: Change your grub and boot process splash image

Discussion in 'Linux' started by blackhawk, Sep 19, 2008.

  1. blackhawk

    blackhawk

    Joined:
    Aug 19, 2008
    Messages:
    122
    Likes Received:
    0
    Boring with this one?

    [attachment=1:1dhvvt3d]splash.jpg[/attachment:1dhvvt3d]

    WARNING:
    I am not responsible for any damage you made by following this guide, be carefull!

    Fix your grub bootloader:
    - Save your original stage2 file:
    Code:
      $ sudo mv /usr/share/grub/i386-redhat/stage2 /usr/share/grub/i386-redhat/stage2.orig
    - Copy stage2 file included here to /usr/share/grub/i386-redhat:
    Code:
      $ sudo cp stage2 /usr/share/grub/i386-redhat
    - Update your grub bootloader
    Code:
      $ sudo grub-install hd0
    - Change grub.conf timeout value to 5:
    Code:
      $ sudo mousepad /boot/grub/grub.conf
      ...
      timeout=5
      ...
    
    - Reboot

    Grub background image:
    - I have prepared a nice 640x480 image in thundercats_blue directory
    Code:
      $ cd thundercats_blue
    - Convert it as 14 colors indexed pixmap, you can use Gimp
    - Compress it as a gzip archieve
    Code:
      $ gzip -9c splash.xpm > thundercats_blue.xpm.gz
    - Copy it to /boot/grub directory
    Code:
      $ sudo cp thundercats_blue.xpm.gz /boot/grub
    - Change your grub.conf file
    Code:
      $ sudo mousepad /boot/grub/grub.conf
      ...
      splashimage=(hd0,0)/boot/grub/thundercats_blue.xpm.gz
      ...
    
    - Reboot. Your grub have a new background image:

    [attachment=0:1dhvvt3d]thundercats_blue.jpg[/attachment:1dhvvt3d]

    Change your bootsplash:
    - Since my English not good enough to explain, look at thundercats_blue directory
    Code:
      $ cd thundercats_blue
    - You can use the original initrd as a template, but we no need the original bootsplash:
    Code:
      $ gzip -dc /boot/initrd-splash.img | gzip -9c > initrd-thundercats_blue.img
    - To add a new bootsplash to initrd-thundercats_blue.img:
    Code:
      $ ../splash -s -f bootsplash.cfg >> initrd-thundercats_blue.img
    - Copy the new initrd to /boot directory
    Code:
      $ sudo cp initrd-thundercats_blue.img /boot/
    - Add a new entry to your grub.conf file
    Code:
      $ sudo mousepad /boot/grub/grub.conf
      ...
      title Linpus Linux Thundercats Splash
              rootnoverify (hd0,0)
              kernel /boot/bzImage ro root=LABEL=linpus vga=0x311 splash=silent loglevel=1 console=tty1 quiet elevator=noop
              initrd /boot/initrd-thundercats_blue.img
    
    - Reboot and press any key when grub appear, select Linpus Linux Thundercats Splash entry. The bootsplash will have similar image as grub background image.

    [attachment=0:1dhvvt3d]thundercats_blue.jpg[/attachment:1dhvvt3d]

    A nice bonus, please try initrd-playmate.img. The source image not included ;)

    Runtime test your own bootsplash:
    - Disable DontVTSwitch option in xorg.conf
    Code:
      $ sudo mousepad /etc/X11/xorg.conf
      ...
            Option "DontVTSwitch" "no"
      ...
    
    - Reboot
    - Test your bootsplash:
    Code:
      $ cd thundercats_blue
      $ sudo ../splash -s -n bootsplash.cfg
    
    - Press Ctrl + Alt + F1 to switch to console mode, you will see your new bootsplash on screen
    - Press Ctrl + Alt + F7, you will back to X

    Download the attachment from here. This forum have very limited space for user attachment :(

    For complete bootsplash documentation and source code, go to http://www.bootsplash.org/
     
    blackhawk, Sep 19, 2008
    #1
  2. blackhawk

    smlh

    Joined:
    Oct 10, 2008
    Messages:
    3
    Likes Received:
    0
    Has anyone managed to change the boot image successfully? Not working for me at all, Googled some too but that didn't help me. Would be great to be able to change it to a more personal image, if anyone done it some info would be really helpful ;)
     
    smlh, Oct 10, 2008
    #2
  3. blackhawk

    blackhawk

    Joined:
    Aug 19, 2008
    Messages:
    122
    Likes Received:
    0
    Yes, I did :) What's the problem? You can use my bootsplash file on rapidshare link as a template and follow my guide carefully.
     
    blackhawk, Oct 10, 2008
    #3
  4. blackhawk

    smlh

    Joined:
    Oct 10, 2008
    Messages:
    3
    Likes Received:
    0
    Hi Blackhawk, thank you for your reply.

    Well at first, when I run grub-install I get following,

    Code:
    [smlh@localhost online-updater]$ sudo grub-install hd0
    Could not find device for /dev/mapper/*
    Could not find device for /dev/mapper/*
    Could not find device for /dev/mapper/*
    Installation finished. No error reported.
    This is the contents of the device map /boot/grub/device.map.
    Check if this is correct or not. If any of the lines is incorrect,
    fix it and re-run the script `grub-install'.
    
    (hd0)   /dev/sda
    
    I tried ignoring it, continued with all the steps mentioned in your thread. At grub it just showed a black screen for 5 secs, before it timed out, then it went on to show the default Aspire One boot splash. Any ideas?
     
    smlh, Oct 14, 2008
    #4
  5. blackhawk

    blackhawk

    Joined:
    Aug 19, 2008
    Messages:
    122
    Likes Received:
    0
    It's OK, your boot loader updated successfuly but I guess you still have original stage2 file from Linpus. You can use my stage2 file or re-install grub package from Fedora repo.
    Code:
    # rpm -ivh grub*fc8.rpm --force
    # grub-install hd0
    
    Reboot. If you leave grub.conf as is, you will see Linpus bad logo as grub background :p
     
    blackhawk, Oct 15, 2008
    #5
  6. blackhawk

    HappyHarry

    Joined:
    Nov 28, 2008
    Messages:
    159
    Likes Received:
    0
    hi i have tried your guide but when i get to the

    ../splash -s -f bootsplash.cfg >> initrd-mysplash.img

    i get this error

    [user@localhost Downloads]$ ../splash -s -f bootsplash.cfg >> initrd-mysplash.img
    bash: ../splash: No such file or directory

    any idea what's up?

    thanks
     
    HappyHarry, Nov 29, 2008
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.