Advertisement
Guest User

grub.cfg example

a guest
Jul 13th, 2017
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. #
  2. # jc__
  3. #
  4.  
  5. insmod all_video
  6. insmod gfxmenu
  7. insmod gfxterm
  8. insmod jpeg
  9. insmod font
  10. insmod gettext
  11.  
  12. set gfxmode=800x600,auto
  13.  
  14. terminal_output gfxterm
  15.  
  16. gfxterm_font=unicode
  17. loadfont /boot/grub/fonts/unicode.pf2
  18.  
  19. set background_image=/boot/grub/splash3.jpg
  20. background_image -m stretch /boot/grub/splash3.jpg
  21.  
  22. # Set menu colors
  23. set menu_color_normal=red/black
  24. set menu_color_highlight=light-gray/red
  25.  
  26. set lang=en_US
  27.  
  28. # Set menu display time
  29. set timeout=-1
  30.  
  31. # Set the default boot entry (first is 0)
  32. set default=0
  33.  
  34. # Set the root variable - grub2 uses this to find files if the
  35. # root device is not specified in the entry itself.
  36. # It can be set explicitly like so:
  37.  
  38. #set root='(hd0,msdos2)'
  39.  
  40. # Or it can be set using grub2's builtin search feature like so:
  41. ## /dev/sdg2: LABEL="500m_ext4" UUID="2c258bfc-984b-4b50-9d5d-858b2187f23e" TYPE="ext4"
  42. ## /dev/sdg3: UUID="682580d2-b93a-4579-96a2-05b55706215e" TYPE="ext4"
  43. ## /dev/sdg1: LABEL="fat32_data" UUID="F461-50CA" TYPE="vfat"
  44. ## /dev/sdg4: UUID="3295a19e-f274-47db-8096-16b1757b5d53" TYPE="swap"
  45. #search --no-floppy --fs-uuid --set root xxxxxxxx-yyyy-zzzz-aaaa-bbbbbbbbbbbb
  46. search --no-floppy --fs-uuid --set root 2c258bfc-984b-4b50-9d5d-858b2187f23e
  47.  
  48. # The string xxxxxxxx-yyyy-zzzz-aaaa-bbbbbbbbbbbb should be replaced with
  49. # the proper UUID for the root device. It can be found using 'blkid' from
  50. # util-linux.
  51.  
  52. # Boot entries:
  53.  
  54. menuentry "PartedMagic" {
  55. insmod part_gpt
  56. set isofile="/boot/pmagic_2013_08_01.iso"
  57. loopback loop $isofile
  58. linux (loop)/pmagic/bzImage iso_filename=$isofile edd=off load_ramdisk=1 prompt_ramdisk=0 rw vga=normal loglevel=9 max_loop=256 vmalloc=512MiB
  59. initrd (loop)/pmagic/initrd.img
  60. }
  61.  
  62. menuentry "Super Grub Disk 1.98" {
  63. insmod part_gpt
  64. insmod memdisk
  65. linux16 /boot/memdisk raw
  66. initrd16 /boot/super_grub_disk_hybrid-1.98s1.iso
  67. }
  68.  
  69. menuentry "Acronis True Image Enterprise Server 9.5 Build 8076" {
  70. insmod part_gpt
  71. insmod memdisk
  72. linux16 /boot/memdisk iso raw
  73. initrd16 /boot/acronisbootable.iso
  74. }
  75.  
  76. menuentry "ntpasswd - Petter Nordahl-Hagen" {
  77. insmod part_gpt
  78. insmod memdisk
  79. linux16 /boot/memdisk iso
  80. initrd16 /boot/ntpasswd/cd140201.iso
  81. }
  82.  
  83. menuentry "DBAN - Darik's Boot and Nuke 2.2.8" {
  84. insmod part_gpt
  85. insmod memdisk
  86. linux16 /boot/memdisk iso
  87. initrd16 /boot/dban-2.2.8_i586.iso
  88. }
  89.  
  90. menuentry 'Ampd Dev on Debian (8.4) (on /dev/sdg3)' --class gnu-linux --class gnu --class os 'osprober-gnulinux-simple-682580d2-b93a-4579-96a2-05b55706215e' {
  91. insmod part_msdos
  92. insmod ext2
  93. search --no-floppy --fs-uuid --set root 682580d2-b93a-4579-96a2-05b55706215e
  94. linux /boot/vmlinuz-3.16.0-4-686-pae root=UUID=682580d2-b93a-4579-96a2-05b55706215e ro quiet splash
  95. initrd /boot/initrd.img-3.16.0-4-686-pae
  96. }
  97.  
  98. menuentry 'Ampd Dev on Debian GNU/Linux, with Linux 3.16.0-4-686-pae (recovery mode) (on /dev/sdg3)' --class gnu-linux --class gnu --class os 'osprober-gnulinux-/boot/vmlinuz-3.16.0-4-686-pae-root=UUID=682580d2-b93a-4579-96a2-05b55706215e ro single-682580d2-b93a-4579-96a2-05b55706215e' {
  99. insmod part_msdos
  100. insmod ext2
  101. search --no-floppy --fs-uuid --set=root 682580d2-b93a-4579-96a2-05b55706215e
  102. linux /boot/vmlinuz-3.16.0-4-686-pae root=UUID=682580d2-b93a-4579-96a2-05b55706215e ro single
  103. initrd /boot/initrd.img-3.16.0-4-686-pae
  104. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement