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)