Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2018
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. #
  2. # jc__
  3. # 2018 04 03
  4. # custom grub.cfg
  5. #
  6.  
  7. insmod all_video
  8. insmod gfxmenu
  9. insmod gfxterm
  10. insmod jpeg
  11. insmod font
  12. insmod gettext
  13.  
  14. set gfxmode=1024x768x32,auto
  15.  
  16. terminal_output gfxterm
  17.  
  18. gfxterm_font=unicode
  19. loadfont /boot/grub/fonts/unicode.pf2
  20.  
  21. set background_image=/boot/splash.jpg
  22. background_image -m stretch /boot/splash.jpg
  23.  
  24. # Set menu colors
  25. set menu_color_normal=red/black
  26. set menu_color_highlight=light-gray/red
  27.  
  28. set lang=en_US
  29.  
  30. # Set menu display time
  31. set timeout=-1
  32.  
  33. # Set the default boot entry (first is 0)
  34. set default=0
  35.  
  36. # Set the root variable - grub2 uses this to find files if the
  37. # root device is not specified in the entry itself.
  38. # It can be set explicitly like so:
  39.  
  40. #set root='(hd0,msdos2)'
  41.  
  42. # Or it can be set using grub2's builtin search feature like so:
  43.  
  44. #search --no-floppy --fs-uuid --set root xxxxxxxx-yyyy-zzzz-aaaa-bbbbbbbbbbbb
  45. search --no-floppy --fs-uuid --set root 078ecc53-f73c-4cc7-9d45-f78aa534b7c5
  46.  
  47. # The string xxxxxxxx-yyyy-zzzz-aaaa-bbbbbbbbbbbb should be replaced with
  48. # the proper UUID for the root device. It can be found using 'blkid' from
  49. # util-linux.
  50.  
  51. # Boot entries:
  52.  
  53. # Default boot selection. Allows booting of any found OS on this PC.
  54. # may swap Super grub for version 1.98
  55. menuentry "Super Grub Disk" {
  56. insmod part_gpt
  57. insmod memdisk
  58. linux16 /boot/memdisk raw
  59. initrd16 /boot/super_grub2_disk_hybrid_2.02s9.iso
  60. }
  61.  
  62. # Ubuntu16 on USB drive
  63. # Not sure what happens when kernel is updated
  64. # may need to manually update grub.cfg
  65. menuentry 'Ubuntu 16.04.3 LTS (16.04)' --class gnu-linux --class gnu {
  66. insmod part_msdos
  67. insmod ext2
  68. # set root to this OS partition using UUID number
  69. search --no-floppy --fs-uuid --set=root 078ecc53-f73c-4cc7-9d45-f78aa534b7c5
  70.  
  71. # these are the lines that change on kernel update.
  72. linux /boot/vmlinuz-4.4.0-87-generic root=UUID=078ecc53-f73c-4cc7-9d45-f78aa534b7c5 ro
  73. initrd /boot/initrd.img-4.4.0-87-generic
  74. }
  75.  
  76. # Ubuntu14 on USB drive
  77. # Not sure what happens when kernel is updated
  78. # may need to manually update grub.cfg
  79. menuentry 'Ubuntu 14.04.3 LTS (14.04)' --class gnu-linux --class gnu {
  80. insmod part_msdos
  81. insmod ext2
  82. # set root to this OS partition using UUID number
  83. search --no-floppy --fs-uuid --set=root a4654333-ee62-4dac-8c09-79a034e3125d
  84.  
  85. # these are the lines that change on kernel update.
  86. linux /boot/vmlinuz-3.19.0-25-generic root=UUID=a4654333-ee62-4dac-8c09-79a034e3125d ro
  87. initrd /boot/initrd.img-3.19.0-25-generic
  88. }
  89.  
  90. # add some other tools to your USB drive
  91. ## aditional files required
  92. menuentry "ntpasswd - Petter Nordahl-Hagen" {
  93. insmod part_gpt
  94. insmod memdisk
  95. linux16 /boot/memdisk iso
  96. initrd16 /boot/ntpasswd/cd140201.iso
  97. }
  98.  
  99. menuentry "DBAN - Darik's Boot and Nuke 2.2.8" {
  100. insmod part_gpt
  101. insmod memdisk
  102. linux16 /boot/memdisk iso
  103. initrd16 /boot/dban-2.2.8_i586.iso
  104. }
  105.  
  106. ### end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement