Sunteți pe pagina 1din 11

Adding extra boot items http://anarcist69.blogspot.com/2012/04/adding-extra-boot-items.

html
Ok, so HirensBootCD is fairly well equipped with all of the diagnostic tools you will ever need and various other features. So, because Hiren is dedicated to keeping his iso at the size of a CD (700MB) he has left out a few handy tools that you may need. But, don't worry he has definitely left you with the option to add these extra programs. This post will explain how to easily add these extra features. So, first you will need to attach and navigate to your bootable flash drive, which we created in the last post. In, the root directory you will recall we copied three items. (That is grldr, menu.lst and the HBCD folder.) Now we will be working with a file called "menucustom.lst" which is under the HBCD directory (that is X:/HBCD/menu-custom.lst where X: is your flash drive).

Editing the custom menu file.


Firstly, locate the file (menu-custom.lst) and open the file with Notepad (or Notepad++) Now with this file open you will see a lot of text, this text are the menu items for the grub menu that loads when you select "Custom Menu... (Use HBCDCustomizer to add your files)" from the main menu when booted to the flash drive. None of the items in this menu currently work. Hiren has made this "Custom Menu" to make it easier to add these files/programs. You will notice that most of the menu items are .iso files, to make this simpler for novices, in this post we will only work with these items. Notice the entry for AVG Rescue CD: In this entry, the menu item will show up with the title "AVG Rescue CD", and it will find and load the file "avg.iso" in the root directory of the drive (that is "X:/avg.iso:"). To make this a bit tidier we will put all of the boot items in the directory "Boot" (X:/Boot) by creating a new folder in the root of the drive and adding all of the iso files. So, we will first edit the menu item to find the file "X:/Boot/avg.iso". Edit the highlighted lines to look like this:

Adding the iso file.


Next we simply download the iso file. This iso being a bootable CD image itself, it will simply boot with no modification needed. So, to get the file it is a free download from the AVG website here. We will need the CD Creation (not the one for USB Stick.) Download this file (.iso) and save it in the folder we created (X:/Boot). The file needs to be renamed to avg.iso as it will have all of the version information in the name and be something ridiculously long like "avg_arl_cdi_all_120_120126a4898.iso." We are all done. You should be able to boot to your flash drive and select "Custom Menu..." Then AVG Rescue CD and it will boot with no problems.

Summary
1. Open X:/HBCD/custom-menu.lst with notepad. 2. Locate menu item you wish to add.

3. Add iso file to the associated directory. i.e X:/avg.iso or X:/Boot/avg.iso Notes: Make sure that the file has the same name as in the custom-menu.lst file. Make sure that the file is in the same directory as in the custom-menu.lst file. If you edit the menu item because you changed the directory of the file, make sure that you change both highlighted lines of the menu item.

Conclusion
By using this cusom-menu.lst file we can add a number of new features to our flash drive, including booting to a version of Linux and using it for diagnostics. In this post we added AVG's Rescue CD which has proven to be a very handy tool for me as an IT Workshop Technician as it allows for the scanning and removal of virus' without the need to remove hard drives and also has a handy feature which scans and repairs boot sectors. I personally have added a number of these items to my boot USB as well as a few of my own tools. Including my current project of a bootable Windows 7 Preinstalled Environment. hi :) i've just been playing with this, and now i'm looking for how to integrate the avira rescue CD. looking the custom-menu.lst, it doesn't direct to an .iso, but rather gives title AVIRA AntiVir Rescue CD (Virus Scanner) find --set-root /avira/vmlinuz kernel /avira/vmlinuz edd=off vga=ask initrd=/avira/initrd.gz ramdisk_size=133551 root=/dev/ram0 rw console=/dev/vc/4 initrd /avira/initrd.gz would you know how to integrate the avira rescue.iso ? thanks. Michael SmithSeptember 16, 2012 at 8:17 PM You have two choices here. You can either follow the directions of Hiren and extract the contents of the ISO to the associated folder shown in custom-menu.lst (meaning place all the contents of the iso "X:/avira") This may be the better option as Hiren tests the items before he adds them (It could be done like this for compatibility reasons) Or the second option is to just copy the original iso to your flash drive (X:/Boot/avira.iso) and create a new menu item that looks similar to the AVG one with a few Modifications. title AVIRA Rescue CD find --set-root /Boot/avira.iso map --mem /Boot/avira.iso (hd32) map --hook chainloader (hd32)

Special Information
http://erpxe.org/Hirens_Boot-CD_%28DOS%29

Hiren's BootCD is a bootable software CD containing a number of diagnostic programs such as partitioning agents, system performance benchmarks, disk cloning and imaging tools, data recovery tools, MBR tools, BIOS tools, and many others for fixing various computer problems. Many people consider HBCD an invaluable tool for use in troubleshooting and recovery of computers however, due to a questionable past, it has received little press. As it is bootable, the operating system of the computer need not be available for the tools to be usable. All that is required is that the computer is able to run Microsoft Windows and Linux (but it does not have to have either of these installed at the time of use.) Some of the tools are also available when the operating system is already started.

Installation Instructions
Hiren's Boot CD requires splitting the original image to several applications. This is the complete Hiren's DOS (Freeware) collection. Download hiren151-XXX.tar.gz to /
https://sourceforge.net/projects/erpxe/files/plugins/

Extract hiren151-XXX.tar.gz file to / :


tar -xvzf hiren151-XXX.tar.gz

All Done!

Custom HBCD Image file


We used "MEMDISK" to load an "ima" file that contains a Hard Drive like structure of a MBR and a Partition.

You can create a file up to 2GB in size (FAT limitation) - just remember smaller size reduces load time significantly.

To create your own ima file to contain a different version of Hiren's BootCD: - First download WinImage This is important - any other software might corrupt the ima file - Create a new SDI file using Windows SDI Loader - Creating SDI Image - Mount the SDI and format it to FAT and make it an Active partition.
HBCD Version 11.0 and higher: In HBCD\Dos - folder you'll have dos.gz - extract it to the SDI drive using 7z. (it will contain a few files including autoexec.bat) Create on the SDI drive an HBCD folder Copy \HBCD\Dos folder to the SDI Drive \HBCD\ Copy \HBCD\Boot (without pqmagic - to save space) folder to the SDI Drive \HBCD\ The SDI Drive should have the folders: \HBCD\Dos,\HBCD\Boot HBCD Version 10.6 and lower: In HBCD folder you'll have boot.gz - extract it to the SDI drive using 7z. (it will contain a few files including autoexec.bat)

Copy your HBCD folder to the SDI drive (without the WinTools folder - to save space). You'll need to edit the autoexec.bat file and add - set cdrom=c The SDI Drive should have the folders: \HBCD

- Open WinImage - In the Disk menu - Creating Virtual Hard disk Image from physical drive - Select the SDI mounted drive and create your initial ima file. - In the Image menu - Change Boot Sector properties - click Windows 95/98 and then Save the image. - In the Image menu - Export to an image with a MBR - and save the final ima file. - Replace the original ima file in /tftpboot/er/plugins/hirensbootcd/hirensbootcd.ima

Compress HBCD Image file


You can GZIP the ima file to save some space (optional but recommended):
gzip -9 hirensbootcd.ima

Rename the file back to .ima after compression All Done

mv hirensbootcd.ima.gz hirensbootcd.ima

http://www.ezbsystems.com/cgi-bin/ikonboard.cgi?act=ST;f=1;t=2844 How to make your own Hiren's Boot CD ======================================== Hiren's BootCD has used a lot of programs inside itself and this makes it a little bit hard to users to analyze and edit or change it. In the other look,it uses different methodes of booting CD,In old versions used DOS based Boot,and in new version (v 9.9) uses Linux based Boot. Any way the origional method that is used for making these CD's are almost the same in all versions. Unfortunately there is not any good informations about making this cd in the web pages (at least in my tries).on the other side If i try to talk about all things in this cd it will take a lot of time and pages that is out of my patience. So because of many questions about that in this forum (fe007) and many others in web pages In This tutor i am going to make a mini hiren boot CD,that has just One program to run and you can do almost the same for adding other programs to it. Reading this tutor will make you ready to work by hiren's BootCD,but i recommend you that 1st work by old versions of this CD for example versions 5 or 6 ,and when you got familiar go to work by new versions. Notes: ----------1. Hiren's bootcd works in DOS mode (of course in version 9.9 it uses other way to use mini xp too),so in this tutor you should use programs that can run in DOS. 2.In this tutor i will show you how this boot cd works for making ram disk and running "Partition Magic Pro 8.05".for this purpose i will edite and also delete some files to

make this cd to have and work by just one program (Partition Magic Pro 8.05) 3.because the purpose of this tutor is working by hiren's boot cd ,so i will not use my own files to make the CD and will use hiren's files.ifyou needed to know how to do the same work by your favorite programs,write your notes and i will try to talk about that in other tutor. =============================================== Now lets learn some other things befor starting tutor -----------------1.All process for running hiren's programs are disigned by bootifo of CD in all versions except version 9.9.for getting bootinfo in versions except 9.9 ,load ISO by Ultraiso and save bootinfo some where to work by that later.for version 9.9 the boot informations are located in file ...hiren bootcd\HBCD\boot.gz 2.when you boot by hiren cd ,in the first page you will see 2 lines below: -----1.Boot from hard drive -----2.Start BootCD that you should select 2nd item to see origional menue of hiren CD. This page is made by file "jo.sys" that is located in bootinfo files.if you do not want to have this page ,just delete "jo.sys" from bootinfo files. 3.In Top of hirens boot cd menue you will see line "Hiren's All in 1 BootCD vx.x Menu" if you do not want to have this line in top of menue page,the easiest way is changing "io.sys" inside bootinfo files by "io.sys" from MS-DOS v7.1 4.Hiren boot cd uses several batch files for runing programs that you can see this bat files in all version excpt 9.9 in "bats" directory in bootinfo files folder.and in 9.9 version they are located in extacted boot.gz folder\drivers.cab\temp directory. These bat files are essential for working hirenCD and if you want to make your own bootcd in this way you have to know programming by bat files perfectly. ============================================= I think i have talked more than your patience.So lets to begin the real part of tutor: ============================================= By doing steps below you will have an micro hiren,s BootCD with just one program to run (Partition Magic Pro 8.05).read that carefully,this almost shows how hiren runs any DOS program in ram and if you can understand that perfectly you can extend it to any other your favorite dos programs. Note that i say the process for versions other than 9.9 and if you want to do by version 9.9 you should do the same actions but with "boot.gz" instead of bootinfo files. 1.Open hiren's BootCD.ISO by UltraIso,Click on "Bootable" in menu,then select "Save boot file...".and save that by the name of "hiren.bif" some where (for example in D:\Source). 2.Open hiren's BootCD.ISO by UltraIso, delete all files and directories inside BootCD

directory excpt files below and save: mix.uha pqpm.uha uharc.exe uharcd.exe At this time you will have a micro hiren CD that has just (Partition Magic Pro 8.05) files and some other files that are needed to run that.but if you run that you still have a lot of options in boot cd's menu that are not needed (and will not work too). 3.Open notepad and types lines below on it,then save that as "Autoexec.bat" in D:\source directory: @echo off set ramd=R set keyboard=US startup all :all copy %cdrom%\bootcd\uharcd.exe %ramd%:\>nul IF %config%==PQPM call %config% wbat fill (+cyan on black) smartdrv>nul call loadcd 4.Open notepad and types lines below on it,then save that as "Config.sys" in D:\source directory: [MENU] menuitem=PQPM, Partition Magic Pro 8.05 menudefault=PQPM, menucolor=11,0 [PQPM] devicehigh=himem.sys /testmem:off /numhandles=128 dos=high,umb, fileshigh=40 shell=\command.com /e:2048 /f /p switches=/f [COMMON] LASTDRIVE=Z 5.Open D:\source\hiren.bif by ultraiso,replace autoexec.bat and config.sys inside that by the ones you have made in steps 3 and 4 then save it.(you can delete jo.sys too if you do not want to see first page) ======================================= Now 1st test your iso and be sure you have don OK then study files below to understand how it works and how you can do your own.

autoexec.bat config.sys all bat files inside bootinfo


Edited by madar on Sep. 03 2009,09:49

-------------Shirin Zaban First of all - welcome to this forum @tmy Quote: "Could you explain how to replace this program with the iso of the current program" Note: I'm unsure if @madar has the ability to answer so I'll try to do it You are talking about 'kaspersky', but as far as I know there is no kaspersky in Hiren-15.1 However, Avira AntiVir Personal (07-12-2011 is present in Hiren-15.1. Why don't you simply integrate kaspersky into EasyBoot and in this way have direct access to launch kaspersky avoiding detour to Hiren and then launch kaspersky - I cannot understand the logic to this Anyway... I guess you have your reasons In folder HBCD you have text-file 'menu.lst' Open 'menu.lst' (use notepad) and insert extra text-lines (bold text) so your result is like this: title Mini Windows Xp\nRun Antivirus and other windows programs # example password: test # password --md5 $1$gNe0$KZPOE8wNbTNSKOzrajuoB0 find --set-root /HBCD/XP/XP.BIN chainloader /HBCD/XP/XP.BIN title Dos Programs\nRun Dos Programs find --set-root /HBCD/Dos/dos.gz map --mem /HBCD/Dos/dos.gz (fd0) map --hook chainloader (fd0)+1 rootnoverify (fd0) map --floppies=1 title Linux based rescue environment (Parted Magic 6.7)\nTo manage partitions, backup and recovery set pm=/HBCD/Boot/pmagic.lst find --set-root %pm% set lang=us

set opt= configfile %pm% title Kaspersky Rescue CD iso (Virus Scanner) find --set-root /HBCD/KASPERSKY.ISO map /HBCD/KASPERSKY.ISO (0xff) || map --mem /HBCD/KASPERSKY.ISO (0xff) map --hook root (0xff) chainloader (0xff) Note: you can of course insert kaspersky text-lines where ever you like in menu - it is a question of taste - do as you like Save changes to menu.lst Now copy kaspersky.iso to folder HBCD and rename ISO-file to exactly KASPERSKY.ISO (it's vital you use uppercase=BIG LETTERS to name) Open kaspersky.iso (I use UltraIso) and extract folder 'rescue' and file ' livecd' to the root of your build (folder disk1 is the root in EasyBoot if you wonder) or to the root of DVD-build Still having kaspersky.iso-file opened in UltraIso you delete folder 'rescue' and file 'livecd' (we don't need this folder/file in ISO as it is extracted to the 'root' of your build) Save changes and delete possible backup of ISO that UltraIso might leave. Now you have kaspersky in Hiren.iso Tip! To integrate kaspersky into Easyboot read post nr; 4 HERE balder

Cara Rebuild Hiren v10.6 dan Mengupdate/menambah software2 Favorit


10/18/2011 06:33:00 PM Budi Surya 3 comments Email This BlogThis! Share to Twitter Share to Facebook http://prem2mix.blogspot.com/2011/10/cara-rebuild-hiren-v106-dan.html

Bagi para teknisi, pengoprek dan hobies diseluruh dunia, dari yg advance ampe yg abal2 (kaya gua) pasti pernah menggunakan atau setidaknya pernah mendengar kumpulan program2 yg powerfull ini. tapi sayangnya di Hiren v11 dan diatasnya sudah tidak menarik lagi untuk diunduh dan digunakan, krn banyak program2 yg BERBAYAR telah dibuang pada V11 dan v12, itu dapat dimaklumi, banyak software2 yang tertanam dihiren adalah BAJAKAN (Warez), mungkin Hiren udah bosan di warning ama pemilik software2 tsb. Loh kok tau Hiren diwarning?, Indikasinya jelas, Hiren dibawah versi 10 tak ditemukan tanda "(*) artinya Warning" pada software berbayar yang tertanam diHiren, tp pd versi diatasnya pasti akan kita temukan sign (*), sejatinya pada Hiren v10.6 ini ada tanda warning dan nag screen untuk semua software yang berbayar, ini nanti kita coba akan hilangkan tanda warning dan nag screen tsb.

Dengan Alasan tsb diatas, mengapa saya pilih Hiren v10.6 sbg basenya untuk dioprek, disamping itu krn masih banyak program2 "full" nya belum diremove oleh Hiren v10.6. Penggemar Hirenmania sekalian, jgn berkecil hati masih banyak jalan menuju cilemper, setidaknya dari kacamata para pengoprek (abal2). Hiren Berjalan pd 2 system 1. DOS (CLI) based 2. WinXP Mini (GUI) based Saya akan memberikan contoh Mengupdate/menambah versi software yg lbh baru 1. DOS Based 1. HDD Regenerator 1.71 ke HDD Regenerator 2011 - Mengupgrade 2. Partition Magic 8.05 - copotan dari hiren 9 - menambah - karena PM 8.05 tlh diremove di versi ini 2. GUI based (WinXP) - Menambah 1. PCMAV 4.1 Ragnarok2 Anti Virus 2. Smadav 8.3 Anti Virus 3. Avira AntiVir Personal (Free Antivirus), copotan dari hiren 12 4. HDD.Regenerator 2011 --> utk yg ini tdk dibahas, krn lbh rumit, kpn2 aja eh ngomong2 ada ga istilah "copotan" di dunia IT! Saya akan memberikan contoh Meremove software yg tdk dibutuhkan 1. Nihil 2. Nihil lo... loh ada apa ini. software2 ini aja kurang kok pake dibuang (becanda). tools yang anda butuhkan: 1. gzip 2. UltraISO atau software sejenis 3. Uhard 4. WinImage 5. Fantom CD/DVD emulator atau software sejenis 6. UltraEdit atau Hex editor lain 7. VMware atau software sejenis. 8. Perempuan. ssss...t jng ngawur dulu. (yg masakin, bikinin kopi dlsbnya kan bini gw he..he..he) Download disini All TOOLS (Link di Banned SOFA & FIFA) VMware.Workstation.7.1.0.Build.261024 Langkah awal adalah memanipulasi content Menu, karena ini adalah jantung pengaktif dari files tsb 1. dari DOS files: 1. config.sys 2. MainMenu.pcm 3. HDDMenu.pcm 2. MiniXP file: 1. Autorun.csv MiniXP: Saya mulai dgn mengoprek Mini WinXP, krn ini relatif lebih mudah saran jika ingin memasukkan software favorit anda, carilah yg serba portable dan jgn lbh dari 100 mb, krn mungkun tdk jln mulus (relatif).

langkahnya -- copy semua source hiren ke mis. c:\HBCD cari dan buka Autorun.csv di folder WinTools, file ini bs dibaca oleh MS Excel atau notepad Contoh: pada kolom AntiVirus/Spyware sisip/tambahkan 1. Smadav 8.3 Anti Virus Smadav 8.3 Anti Virus --> file ini akan ditampilkan di mainmenu Smadav.cmd --> file ini akan dibentuk nanti 2. Avira AntiVir Personal (Free Antivirus), copotan dari hiren 12 Avira AntiVir Personal (Free Antivirus) --> file ini akan ditampilkan di mainmenu Avira.cmd --> file ini akan dibentuk nanti 3. PCMAV 4.1 Ragnarok2 Anti Virus PCMAV 4.1 Ragnarok2 Anti Virus --> file ini akan ditampilkan di mainmenu PCMAV.bat --> file ini akan dibentuk nanti pada kolom kategori apapun yg anda sukai sisip/tambahkan 1. HDD.Regenerator 2011 - tp yg ini blm sy akan bhs nanti kepanjangan ceritanya. HDD.Regenerator 2011 ---> ini buat contoh akan tampil di mainmenu HDDReg.bat --> bat/cmd sama aja yp klo berjln di winxp lbh baik pk cmd (relatif) 2. Partition Magic Pro 8.05 - copotan dari hiren jadul Partition Magic Pro 8.05 --> file ini akan ditampilkan di mainmenu PartitionMagic.exe --> INI JENIS FILE PORTABLES LGS DITULIS .EXE, fa perlu buat script ok save Autorun.csv simpan dulu ditempat lain mis: C:\TEST copy autorun.exe dari folder winstool ke C:\TEST sekarang test jalankankan/click autorun.exe .. breeng tampil ga mainmenu yang barusan anda masukkan, klo sdh ok sesuai selera anda. copy Autorun.csv kembali ke c:\HBCD overwrite. selamat anda tlah berhasil memasukkan tittle program yg anda sukai. langkah membuat tampilan menu sudah selesai, selanjutnya jalankan tool file Uhard cari dimana files smadav tsb diinstall, biasanya di Program. Files\smadav, save dgn nama mis: smadav, utk avira copy AviraAntiVir.uha dari hiren 12, ini dimaksudkan utk memudahkan saja, dll buka lg dmana HDD Regenerator 2011 dinstal compress lg dgn Uhard beri nama mis: HDDReg.uha, copy HDDReg.uha, AviraAntiVir.uha, smadav.uha ke c:\HBCD. Ok Proses pengkompresam tlah selesai. selanjutnya jalankan tool file Uhard cari dimana files smadav tsb diinstall, biasanya di Program Files\smadav, save dgn nama mis: smadav, utk avira copy AviraAntiVir.uha dari hiren 12, ini dimaksudkan utk memudahkan saja, dll buka lg dmana HDD Regenerator 2011 dinstal compress lg dgn Uhard beri nama mis: HDDReg.uha, copy HDDReg.uha, AviraAntiVir.uha, smadav.uha ke c:\HBCD. khusus utk PCMAV liat dibwh. Ok Proses pengkompresam tlah selesai. Langkah terakhir, membuat script, membuat script? iiihh serem, jangam panik ini cuma proses ngopi dan sedikit ngedit, copy 1 file apa saja di c:\HBCD\WinTools\*.bat atau *.cmd maksudnya yg berekstensi bat/cmd, mis: AngryIPScanner.cmd rename jadi Avira.cmd edit Avira.cmd. isi dari file Avira.cmdyg tlh direname dr AngryIPScanner.cmd adalah: @echo off ..\uharc.exe x -t"%TEMP%\HBCD\IPScanner" -y+ files\files.uha ipscan.exe

start "" /D"%TEMP%\HBCD\IPScanner" "ipscan.exe" contoh smadav ganti --> %TEMP%\HBCD\IPScanner dgn %TEMP%\HBCD\smadav --> ini folder temp ganti --> files\files.uha ipscan.exe dgn files\smadav.uha --> File akan di uncompress ganti --> start "" /D"%TEMP%\HBCD\IPScanner" "ipscan.exe" dgn --> start "" /D"%TEMP%\HBCD\smadav" "smadav.exe" --> file akan dieksekusi, ingat kita hrs tau files yg mana yg dijalankankan program, tsb. Ok, lakukukan hal yg sama utk hddreg dlsb, klo uda copy semua ke C:\HBCD\WinTools\Files Note: KHUSUS UNTUK PCMAV 4.1 Ragnarok2 Anti Virus!!! buat folder C:\HBCD\WinTools\PCMAV masukkan semua files dari cd atau hd isi folder PCMAV ini. script: @echo off start "" /D"%CDROM%\HBCD\WinTools\PCMAV" "PCMAV.exe" di save dgn nama mis: PCMAV.bat (ingat NAMA HARUS SESUAI DENGAN APA YG SDH KITA TULIS DI MAINMENU). pembuatan script selesai, langkah akhir jalan kan UltraISO buka file iso hiren yg pernah anda download, sblmnya copy dulu buat backup, di UltraISO hapus folder HBCD, copy folder c:\HBCD save ... selesai ? blm test dulu pake virtual Machine, mis VMware.

S-ar putea să vă placă și