Trying to create a Hiren's BootCD on a USB. Not needing anything else such as a dual boot of Ubuntu and Haren or Window's and Haren. All the programs that I can find to complete this either end up directing me on how to create a Ubuntu boot on a usb, or how to do it on Windows. But since it is my Windows computer that I'm trying to fix I need an alternative. Please Help?
9 Answers
Unetbootin does the job of making a bootable USB, but for recent versions of Hiren's CD to work, a small fix must be made for the menu to work:
Open the Software Center and install UNetbootin .
Create the bootable USB using the
Diskimage
option and selecting the downloaded ISO.After the USB is created, mount it in Nautilus (just click the USB drive icon), go into the
HBCD
folder, rename theisolinux.cfg
file tosyslinux.cfg
and copy it to the root of the USB, overwriting the existing file. Change the first line ofsyslinux.cfg
fromDEFAULT /HBCD/Boot/menu.c32
toDEFAULT menu.c32
.
Now the USB boots and menu works fine :)
-
This is THE ANSWER that works in 2015. It should be upvoted.– shivamsCommented Apr 27, 2015 at 13:45
-
It doesn't always work...I get the same
failed to load menu.c32 stuff...
– decvaltsCommented Jul 25, 2015 at 16:44 -
On recent versions, there is no
HBCD
folder norisolinux.cfq
. Probably because it’s made for UEFI now.– anonCommented May 19, 2022 at 22:38
None of the below methods will work. Although you will get a bootable USB, it doesn't chainload anything out of the Grub Menu. This is especially true for the 'revised' edition of Hiren's Boot CD (the one with the mini-version of Windows XP)
Here is the correct procedure:
Insert your USB drive into your PC and start Ubuntu's partition Manager. Format the drive to FAT32, primairy partition and give a nice label. While you are at it, note the device's mount location (for example /dev/sdb)
When it is done, close the partition manager and start a terminal.
sudo grub-install /dev/device location
Where 'device location' is the location of your USB drive you noted earlier.
Now place the Hirens Boot CD iso-file in a new folder. Right-click the file and choose 'extract here' When it is done, delete the iso file and copy all the rest of the content to the root your USB drive.
There should be 1 folder called HBCD on the drive now, and 4 small other files. Now open the folder called HBCD and copy the files 'grldr' and 'menu.lst' to the root of the drive. Be sure to copy them, do not cut.
That is it, you're done. It should work now as a bootable USB drive aswel as a tool you can use inside a MS Windows environment.
-
How is this an answer? We want to know what works not what doesn't Commented Apr 24, 2013 at 13:37
-
I tried exactly the steps, booted from the USB stick I get error: no such device: xxxxxxxxxxxxxxxxx grub rescue>– MontaroCommented May 22, 2013 at 21:49
-
3
grub-install: warning: File system
fat' doesn't support embedding.` Then,grub-install: error: embedding is not possible, but this is required for cross-disk install.
sigh Commented Oct 9, 2014 at 17:45 -
@YanickRochon: Same error here, both when trying device as
/dev/sdd
(the USB drive itself) or/dev/sdd1
(its first partition). Commented Feb 7, 2015 at 20:28 -
Notice that on UEFI-based machines you may need to install the
grub-pc-bin
package (notgrub-pc
) to make grub-install succeed. Commented Aug 31, 2016 at 12:27
Open the Software Center and install UNetbootin . From there you just run it and the rest explains itself.
-
1Following this approach I only get an error message "Failed to load COM32 file menu.c32" when booting from the usb (using Hiren’s BootCD 15.2 and UNetbootin v. 603-1).– WonkoCommented Dec 28, 2014 at 18:44
-
UNetbootin solution needs a little tweak as provided here: askubuntu.com/a/582853/351841– shivamsCommented Apr 27, 2015 at 13:47
Ok I found a solution here
This approach use grub2 and so it is very convenient if you want to do a multi boot usb
- install grub 2 on the usb driver (
grub-install --force --no-floppy --boot-directory=[PATH_TO_USB] /dev/sd[X]
- extract Hiren iso files on the usb ( you should have a folder /HBCD in the root of the usb )
- copy grub.exe (can be found in hbcd\dos\dos.gz, inside the .img file)
- copy menu.lst from the hbcd folder to the root of the usb drive
- add the following menu entry to grub.cfg on the usb:
Here the menu entry:
menuentry "HBCD" {
linux16 /grub.exe --config-file="find --set-root /HBCD/menu.lst; configfile /HBCD/menu.lst"
}
Once compleated you can reboot or test it with qemu:
qemu-system-x86_64 -hda /dev/sd[X]
get hiren's Iso into your HDD. insert your USB pendrive or whatever, download rufus http://rufus.akeo.ie/ and proceed with burning the hiren.ISO file into the USB. once you succeeded, you need to restart your pc and check that your BIOS is configured in such a way that your boot order has your harddrive as the last thing to boot from. Also make sure, that as you reboot your pc again, and you have your USB burned and plugged, you dont have anything else that your pc might boot from. Hope it helps (btw, i just did this 30 minutes ago...) Cheers!
-
1rufus is for windows... (.exe)– user56673Commented Aug 1, 2016 at 18:51
There is a easy way of installing Hiren's Boot CD 15.2 on Linux (Ubuntu, Linuxmint, etc.).
Download the Universal USB Installer
https://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
and open in WINE. Choose Hirens Boot CD and everything is working like you would do it under Windows.
-
1
Another unusual approach that just saved me in this situation and hence should be mentioned here, is, that GRUB2 can boot ISO images directly!
The Ubuntu help describes it as such:
- Install
grml-rescueboot
. - Place your ISO in
/boot/grml/
. - Run
sudo update-grub
This will automatically create a boot entry for every ISO in that directory, using loopback and chain-loading.
So as long as you got a working Linux partition of any kind that has GRUB2 (wich is much easier and reliable to achieve), you can boot any ISO, even if it’s a problematic one.
Saving a normal Linux user from even needing any external medium. (Though loopbacks can boot isos from other partitions/media too, if you are willing to not use grml-rescueboot and do the GRUB2 config manually.)
-
Source: help.ubuntu.com/community/Grub2/ISOBoot#grml-rescueboot– anonCommented May 19, 2022 at 22:50
Grub 2 - Tutorial
Format your USB-Stick with FAT32 and:
Open a terminal and type
sudo su
// orsu
to get root accessType
fdisk -l
(and note which device is your USB)Type
mkdir /mnt/USB && mount /dev/sdx1 /mnt/USB
(replacing x with your actual usb device)Type
grub-install --force --removable --boot-directory=/mnt/USB/boot /dev/sdx
(replacing x with your actual USB device)Type
cd /mnt/USB/boot/grub
Create a file /mnt/USB/boot/grub/grub.cfg with the following content:
set default=0 menuentry "HBCD" { linux16 /grub.exe --config-file="find --set-root /HBCD/menu.lst; configfile /HBCD/menu.lst" }
Copy the content of the hirens.iso to the root directory of your USB-Stick (like /mnt/USB/ )
Greetings Tom
-
grub.exe source not specified. From solution below: copy grub.exe (can be found in hbcd\dos\dos.gz, inside the .img file)– iFredCommented Jul 5, 2017 at 19:44
-
There is no directory named HBCD in modern Hirens– anonCommented May 20, 2022 at 10:29
You can make a bootable USB on Ubuntu from any (bootable) .ISO image using dd
command:
dd if=./someisofile.iso of=/dev/sdb
however, I'd like to warn you that dd
is a very dangerous command and you should only proceed if you fully understand the meaning of its parameters, in particular, the of
one.
If you google for something like "dd iso usb", you'll fins quite a few tutorials, for example this one from Fedora, this one from Linux Mint, or this one from ArchLinux
-
6This works only for "hybrid" ISOs. It will NOT work for just any old bootable ISO with the standard ISO9660 boot sector. Note that Hiren's web site itself says you need to install Grub4DOS to be able to boot from USB.– ishCommented Jun 4, 2012 at 0:44