Advertisement
Guest User

menu.lst

a guest
Sep 26th, 2015
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. color black/cyan yellow/cyan
  2. timeout 30
  3.  
  4. #graphicsmode 0x6A
  5. graphicsmode -1 640 480:800 24:32 || graphicsmode -1
  6. ## Menu AutoNumber
  7. write 0x8274 0x2001
  8.  
  9. #graphicsmode -1 800:640 -1 24:32 || graphicsmode -1
  10. #font /unifont.hex.gz
  11.  
  12.  
  13. #clear mappings and set root in case we return from bootmgr
  14. map --unmap=0:0xff
  15. map --unhook
  16. map --rehook
  17. ls /usbdrive.tag > nul || find --set-root --devices=hf /usbdrive.tag > nul
  18. ls /default > nul && default /default
  19.  
  20. title Install Kali Linux
  21. kernel /kali/install/gtk/vmlinuz live-media-path=/kali/install/gtk video=vesa:ywrap,mtrr vga=788 -- quiet
  22. initrd /kali/install/gtk/initrd.gz
  23.  
  24. title Live Kali Linux
  25. kernel /kali/live/vmlinuz boot=live config live-media-path=/kali/live video=vesa:ywrap,mtrr vga=788 -- quiet
  26. initrd /kali/live/initrd.img
  27.  
  28. title debian-live-8.1.0-amd64-gnome-desktop from partition 0
  29. map --unmap=0:0xff
  30. map --unhook && map --rehook
  31. cat --hex --locate=PoLPu@ (md)0x3D0+0x130 > nul && echo Cannot continue if PLoP is active, please start this entry without loading PLoP first && echo && pause Press any key to return to the main menu && configfile /menu.lst
  32. set /a dev=*0x8280&0xff
  33. root (%dev%,0)
  34. set ISO=/ISO/debian-live-8_1_0-amd64-gnome-desktop.iso
  35. ls %ISO% > nul || find --set-root --devices=hf /usbdrive.tag|| echo Error! Could not find usbdrive.tag && echo && pause Press any key to return to the main menu && configfile /menu.lst
  36. ls %ISO% > nul || find --set-root --devices=hf %ISO% || echo Error! Could not find %ISO% && echo && pause Press any key to return to the main menu && configfile /menu.lst
  37. map %ISO% (0xff) || map --heads=0 --sectors-per-track=0 %ISO% (0xff) || echo FATAL ERROR mapping %ISO%, please check if file is present and defragmented && pause Press any key to return to main menu && configfile /menu.lst
  38. #http://reboot.pro/topic/9916-grub4dos-isohybrided/page-2#entry88531
  39. #http://www.rmprepusb.com/tutorials/tails
  40. set /a dev=*0x82a0&0xff
  41. debug 1
  42. parttype (%dev%,3) | set check=
  43. debug off
  44. set check=%check:~-5,4%
  45. if "%check%"=="0x00" partnew (%dev%,3) 0 0 0 && partnew (%dev%,3) 0x00 %ISO%
  46. if not "%check%"=="0x00" echo WARNING: PARTITION TABLE 4 IN BIOS DEVICE %dev% IS ALREADY IN USE! && echo && echo To prevent possible data loss will not continue further && pause && configfile /menu.lst
  47. map --rehook
  48. root (0xff)
  49. chainloader (0xff)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement