Advertisement
Monarch73

various grub2 menuentries to boot from iso

Jul 20th, 2014
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.69 KB | None | 0 0
  1. menuentry "Start Kubuntu 1510" {
  2.         set isofile="/kubuntu-15.10-desktop-i386.iso"
  3.     set gfxpayload=keep
  4.         loopback loop (hd0,msdos1)$isofile
  5. ### linux   (loop)/casper/vmlinuz.efi  file=/cdrom/preseed/kubuntu.seed boot=casper maybe-ubiquity quiet splash ---
  6.     linux   (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
  7.     initrd  (loop)/casper/initrd.lz
  8. }
  9.  
  10. menuentry "Start Ubuntu 1510" {
  11.         set isofile="/Ubuntu-15.10-desktop-i386.iso"
  12.     set gfxpayload=keep
  13.         loopback loop (hd0,msdos1)$isofile
  14. ### linux   (loop)/casper/vmlinuz.efi  file=/cdrom/preseed/kubuntu.seed boot=casper maybe-ubiquity quiet splash ---
  15.     linux   (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
  16.     initrd  (loop)/casper/initrd.lz
  17. }
  18. menuentry "Windows" {
  19. set root=(hd0,1)
  20. chainloader +1
  21. }
  22.  
  23. menuentry "Mini.iso" {
  24. linux /casper/linux priority=low vga=788 --
  25. initrd /casper/initrd.gz
  26. }
  27.  
  28. menuentry "USBUbuntu" {
  29. set root=(hd1,msdos1)
  30. linux /vmlinuz root=/dev/sdb1
  31. initrd /initrd.img
  32. }
  33.  
  34. menuentry "monabuntu" {
  35. set isofile="/casper/monix.iso"
  36. loopback loop (hd0,2)$isofile
  37. linux (loop)/casper-vmlinuz boot=casper persistent iso-scan/filename=$isofile noprompt noeject
  38. initrd (loop)/casper-initrd.img
  39. }
  40.  
  41. menuentry "ubuntu-14.04-desktop-i386.iso" {
  42.          set isofile="/casper/ubuntu-14.04-desktop-i386.iso"
  43.          # or set isofile="/<username>/Downloads/ubuntu-12.04-desktop-i386.iso"
  44.          # if you use a single partition for your $HOME
  45.          loopback loop (hd0,2)$isofile
  46.          linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
  47.          initrd (loop)/casper/initrd.lz
  48.  }
  49.  
  50.  
  51.  
  52. mkisofs -r -J -l -o output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement