Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # jc__
- # 2018 04 03
- # custom grub.cfg
- #
- insmod all_video
- insmod gfxmenu
- insmod gfxterm
- insmod jpeg
- insmod font
- insmod gettext
- set gfxmode=1024x768x32,auto
- terminal_output gfxterm
- gfxterm_font=unicode
- loadfont /boot/grub/fonts/unicode.pf2
- set background_image=/boot/splash.jpg
- background_image -m stretch /boot/splash.jpg
- # Set menu colors
- set menu_color_normal=red/black
- set menu_color_highlight=light-gray/red
- set lang=en_US
- # Set menu display time
- set timeout=-1
- # Set the default boot entry (first is 0)
- set default=0
- # Set the root variable - grub2 uses this to find files if the
- # root device is not specified in the entry itself.
- # It can be set explicitly like so:
- #set root='(hd0,msdos2)'
- # Or it can be set using grub2's builtin search feature like so:
- #search --no-floppy --fs-uuid --set root xxxxxxxx-yyyy-zzzz-aaaa-bbbbbbbbbbbb
- search --no-floppy --fs-uuid --set root 078ecc53-f73c-4cc7-9d45-f78aa534b7c5
- # The string xxxxxxxx-yyyy-zzzz-aaaa-bbbbbbbbbbbb should be replaced with
- # the proper UUID for the root device. It can be found using 'blkid' from
- # util-linux.
- # Boot entries:
- # Default boot selection. Allows booting of any found OS on this PC.
- # may swap Super grub for version 1.98
- menuentry "Super Grub Disk" {
- insmod part_gpt
- insmod memdisk
- linux16 /boot/memdisk raw
- initrd16 /boot/super_grub2_disk_hybrid_2.02s9.iso
- }
- # Ubuntu16 on USB drive
- # Not sure what happens when kernel is updated
- # may need to manually update grub.cfg
- menuentry 'Ubuntu 16.04.3 LTS (16.04)' --class gnu-linux --class gnu {
- insmod part_msdos
- insmod ext2
- # set root to this OS partition using UUID number
- search --no-floppy --fs-uuid --set=root 078ecc53-f73c-4cc7-9d45-f78aa534b7c5
- # these are the lines that change on kernel update.
- linux /boot/vmlinuz-4.4.0-87-generic root=UUID=078ecc53-f73c-4cc7-9d45-f78aa534b7c5 ro
- initrd /boot/initrd.img-4.4.0-87-generic
- }
- # Ubuntu14 on USB drive
- # Not sure what happens when kernel is updated
- # may need to manually update grub.cfg
- menuentry 'Ubuntu 14.04.3 LTS (14.04)' --class gnu-linux --class gnu {
- insmod part_msdos
- insmod ext2
- # set root to this OS partition using UUID number
- search --no-floppy --fs-uuid --set=root a4654333-ee62-4dac-8c09-79a034e3125d
- # these are the lines that change on kernel update.
- linux /boot/vmlinuz-3.19.0-25-generic root=UUID=a4654333-ee62-4dac-8c09-79a034e3125d ro
- initrd /boot/initrd.img-3.19.0-25-generic
- }
- # add some other tools to your USB drive
- ## aditional files required
- menuentry "ntpasswd - Petter Nordahl-Hagen" {
- insmod part_gpt
- insmod memdisk
- linux16 /boot/memdisk iso
- initrd16 /boot/ntpasswd/cd140201.iso
- }
- menuentry "DBAN - Darik's Boot and Nuke 2.2.8" {
- insmod part_gpt
- insmod memdisk
- linux16 /boot/memdisk iso
- initrd16 /boot/dban-2.2.8_i586.iso
- }
- ### end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement