Jump to content











Photo
- - - - -

Add hirens to USB BOOT


  • Please log in to reply
6 replies to this topic

#1 rocheiro

rocheiro
  • Members
  • 4 posts
  • Location:AZORES
  •  
    Portugal

Posted 06 April 2016 - 10:26 AM

Hello i have a doubt, i have a bootable usb, already have a many Windows and tool, now I want add a Hirens in Tools.

I copy the hirens to tools folder and edit the tools_setup

 

title Hirens Boot CD 15.2
map --unmap=0:0xff
map --unhook && map --rehook
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
set /a dev=*0x8280&0xff
root (%dev%,0)
set ISO=/ISO/Hirens_Boot_CD_15_2.iso
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
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
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
set /a dev=*0x82a0&0xff
debug 1
parttype (%dev%,3) | set check=
debug off
set check=%check:~-5,4%
if "%check%"=="0x00" partnew (%dev%,3) 0 0 0 && partnew (%dev%,3) 0x00 %ISO%
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
map --rehook
root (0xff)
chainloader (0xff)
 
 
 
 
I try but have a error  
 
Booting Hirens boot Cd
 
128(HEX:0x80)
Filesystem type ins fat, partition type 0x0c
Fatal error mapping /ISO/Hirens_Boot_cd.iso,  please check file is present and defragmented
Press any key to return to main menu.
 
Sorry my bad english :/
 
thanks a lot


#2 steve6375

steve6375

    Platinum Member

  • Developer
  • 6462 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 06 April 2016 - 10:30 AM

Is the ISO contiguous?

 

try

 

blocklist /ISO/Hirens_Boot_CD_15_2.iso



#3 rocheiro

rocheiro
  • Members
  • 4 posts
  • Location:AZORES
  •  
    Portugal

Posted 06 April 2016 - 10:59 AM

I did Download, I dont know if is continguous, how can know ?

 

I try set ISO=blocklist/ISO/Hirens_Boot_CD_15_2.iso 

 

dont work :/



#4 steve6375

steve6375

    Platinum Member

  • Developer
  • 6462 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 06 April 2016 - 11:01 AM

blocklist /ISO/Hirens_Boot_CD_15_2.iso

This is a console command. type it from the grub4dos shell.



#5 steve6375

steve6375

    Platinum Member

  • Developer
  • 6462 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 06 April 2016 - 11:17 AM

To add Hirens ISO to grub4dos see

http://www.rmprepusb...utorials/hirens


  • Nuno Brito likes this

#6 rocheiro

rocheiro
  • Members
  • 4 posts
  • Location:AZORES
  •  
    Portugal

Posted 06 April 2016 - 01:14 PM

I  got It , now I can remove some Iso, i already remove the iso but i can not see in themenu. I have  

 

title Windows Vista/7/8/8.1/10 

map --unhook
map --unmap=0:0xff && map --rehook
savedefault +1
ls /shifthd.bat > nul || find --set-root --devices=hf /shifthd.bat
/shifthd.bat
if "%RDSK%"=="" pause Fatal error while swapping hard disk order, cannot continue! && configfile /menu.lst
root (hd%RDSK%,0)
chainloader /BOOTMGR
 
In Shifthd.bat I have 

Edited by rocheiro, 06 April 2016 - 01:47 PM.

  • Nuno Brito likes this

#7 rocheiro

rocheiro
  • Members
  • 4 posts
  • Location:AZORES
  •  
    Portugal

Posted 07 April 2016 - 11:25 AM

someone ? :/






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users