Advertisement
sfareg

menu

Jun 28th, 2014
811
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. color black/cyan yellow/cyan
  2. timeout 10
  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.  
  21.  
  22. title Windows XP
  23. map --unmap=0:0xff
  24. map --unhook && map --rehook
  25. savedefault
  26. ls /usbdrive.tag > nul || find --set-root --devices=hf /usbdrive.tag
  27. configfile /winsetup.lst
  28.  
  29. title Windows 7 AIO
  30. map --unhook
  31. map --unmap=0:0xff && map --rehook
  32. savedefault +1
  33. ls /shifthd.bat > nul || find --set-root --devices=hf /shifthd.bat
  34. /shifthd.bat
  35. if "%RDSK%"=="" pause Fatal error while swapping hard disk order, cannot continue! && configfile /menu.lst
  36. root (hd%RDSK%,0)
  37. chainloader /BOOTMGR
  38.  
  39. title Hiren's BootCD.15.2 from partition 0
  40. map --unmap=0:0xff
  41. map --unhook && map --rehook
  42. 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
  43. set /a dev=*0x8280&0xff
  44. root (%dev%,0)
  45. set ISO=/ISO/Hiren_s_BootCD_15_2.iso
  46. 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
  47. 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
  48. 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
  49. #http://reboot.pro/topic/9916-grub4dos-isohybrided/page-2#entry88531
  50. #http://www.rmprepusb.com/tutorials/tails
  51. set /a dev=*0x82a0&0xff
  52. debug 1
  53. parttype (%dev%,3) | set check=
  54. debug off
  55. set check=%check:~-5,4%
  56. if "%check%"=="0x00" partnew (%dev%,3) 0 0 0 && partnew (%dev%,3) 0x00 %ISO%
  57. 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
  58. map --rehook
  59. root (0xff)
  60. chainloader (0xff)
  61.  
  62. title EaseUS Partition Master image from partition 0
  63. map --unmap=0:0xff
  64. map --unhook && map --rehook
  65. 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
  66. set /a dev=*0x8280&0xff
  67. root (%dev%,0)
  68. set ISO=/ISO/EaseUS_Partition_Master_image.iso
  69. 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
  70. 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
  71. 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
  72. #http://reboot.pro/topic/9916-grub4dos-isohybrided/page-2#entry88531
  73. #http://www.rmprepusb.com/tutorials/tails
  74. set /a dev=*0x82a0&0xff
  75. debug 1
  76. parttype (%dev%,3) | set check=
  77. debug off
  78. set check=%check:~-5,4%
  79. if "%check%"=="0x00" partnew (%dev%,3) 0 0 0 && partnew (%dev%,3) 0x00 %ISO%
  80. 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
  81. map --rehook
  82. root (0xff)
  83. chainloader (0xff)
  84.  
  85. title Second part/continue NT6 Setup (Boot first internal disk)
  86. map --unhook
  87. map --unmap=0:0xff && map --rehook
  88. savedefault
  89. ls /shifthd.bat > nul || find --set-root --devices=hf /shifthd.bat
  90. /shifthd.bat
  91. if "%RDSK%"=="" pause Fatal error while swapping hard disk order, cannot continue! && configfile /menu.lst
  92. pause --wait=1 Booting MBR on hd0 ...
  93. chainloader (hd0)+1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement