How to display the splash image of GRUB menu at system startup [go]

Source: Internet
Author: User
1] install a tool to convert normal images to formats supported by grub:

Sudo apt-get install imagemagick

(Note: You can use gimp to save the image in xpm format. Note that the format is 14 colors and the index mode)

[2] The format of the converted image is as follows. In this case, the image file name is splash.png.

Convert-resize 640x480-colors 14 splash.png splashimage. xpm & gzip splash. xpm

(Note; if it is 640x480pix, the-resize 640xpix parameter is not required)

[3] Now I have to make some preparations. Set the permissions for the images and put them in the corresponding folder.

Chmod 644 splash.xpm.gz (optional)

Sudo mkdir/boot/grub/images

Sudo cp splash.xpm.gz/boot/grub/images/

[4] The file is ready. Now you need to modify some grub parameter settings to enable grub to support SplashImage.

Sudo cp/boot/grub/menu. lst/boot/grub/menu. lst_backup

Sudo gedit/boot/GRUB/menu. lst

Find this text:

# Menu. lst-see: grub (8), info grub, update-grub (8)
# Grub-install (8), grub-floppy (8 ),
# Grub-md5-crypt,/usr/share/doc/GRUB
# And/usr/share/doc/grub-DOC /.
...
Set

Splashimage (hd0, 2)/boot/GRUB/images/splash.xpm.gz
After the found text.

Note: The preceding (hd0, 1) represents your Linux boot partition. Not everyone is the same. If you do not know how to write the partition, you can view the menu. the LST file.

(Note: hd0 is a physical hard disk, and 1 is a block of 2nd)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.