Difference between revisions of "GRUB"

From Christoph's Personal Wiki
Jump to: navigation, search
 
(External links)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
'''GNU GRUB''' ("'''GRUB'''" for short) is a boot loader package from the [[List of GNU packages|GNU Project]].
 
'''GNU GRUB''' ("'''GRUB'''" for short) is a boot loader package from the [[List of GNU packages|GNU Project]].
 +
 +
==Grub interface==
 +
grub
 +
grub> find /boot/grub/stage1
 +
(hd1,4)
 +
grub> root (hd1,4)
 +
grub> setup (hd1)
 +
grub> quit
  
 
==Grub splash images==
 
==Grub splash images==
*Find gzipped, 640x480, 14 colour only, xpm images (like the ones [http://www.queervisions.com/arch/2007/04/9_grub_splash_i.html here]).
+
*Find gzipped, 640x480, 14 colour only, xpm images (like the ones [http://schragehome.de/splash/ here]).
 
*Put the images in <code>/boot/grub/splashimages/</code>.
 
*Put the images in <code>/boot/grub/splashimages/</code>.
 
*Rename the image you wish to use to '<code>splash.xpm.gz</code>'.
 
*Rename the image you wish to use to '<code>splash.xpm.gz</code>'.
Line 25: Line 33:
 
*[http://supergrub.forjamari.linex.org Super Grub Disk] Cdrom or floppy used for restoring grub to the mbr and much more.
 
*[http://supergrub.forjamari.linex.org Super Grub Disk] Cdrom or floppy used for restoring grub to the mbr and much more.
 
*[[wikipedia:GNU GRUB]]
 
*[[wikipedia:GNU GRUB]]
 +
 +
===Examples===
 +
*[http://www.askapache.com/linux/advanced-linux-grub.html Advanced Linux Debugging using a Bootloader (GRUB)] &mdash; by AskApache
  
 
[[Category:Linux Command Line Tools]]
 
[[Category:Linux Command Line Tools]]

Latest revision as of 23:30, 30 May 2012

GNU GRUB ("GRUB" for short) is a boot loader package from the GNU Project.

Grub interface

grub
grub> find /boot/grub/stage1
(hd1,4)
grub> root (hd1,4)
grub> setup (hd1)
grub> quit

Grub splash images

  • Find gzipped, 640x480, 14 colour only, xpm images (like the ones here).
  • Put the images in /boot/grub/splashimages/.
  • Rename the image you wish to use to 'splash.xpm.gz'.
  • Make a link to /boot/grub/splashimages/splash.xpm.gz and put it in /boot/grub/.
  • Open /boot/grub/menu.lst and below the 'Pretty colours' section add a third line as below:
# Pretty colours
# color cyan/blue white/blue
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

(Note: The hd0,1 refers to hard drive 1 partition 2 where, for an example, a file system could be installed. You'll need to change those numbers if yours differs.)

External links

Examples