Creating a bootable USB flash drive with HirensBootCD in mac os

Foreword: in my case, I needed a bootable usb drive with "HirensBootCD", but I spent a day and did not find a normal article on how to make it from under mac os, and they were all based on installing an image using "Unetbootin and Eather".







As a result, it all ends with the fact that the usb drive is not loaded. Why is that ?







Take "Unetbootin", it simply does not create a bootable area on a usb drive, at least in mac os, and "Eather" cannot create a bootable area if it is not originally in the iso image, but live linux installation images like this are successfully loaded.







So, let's begin.







What we need: a usb drive of at least 2GB, a mac os terminal, the file "mbr.bin" will be followed by a link, "HirensBootCD" or any other image and the "Unetbootin" program can be found by searching the Internet.







Step one



We look at how we have mounted a usb drive using the terminal







We write in the terminal: diskutil list







In my case, the answer looks like this:







/dev/disk2 (external, physical):
0: FDisk_partition_scheme *2.0 GB disk2
1: DOS_FAT_32 BOOTUSB 2.0 GB disk2s1

      
      





In the future, all actions will be described with / dev / disk2 - this point is mounted on my system, but in yours it may be different.







Step two



usb diskutil MBRFormat.







:







sudo diskutil eraseDisk FAT32 BOOTUSB MBRFormat /dev/disk2
      
      





usb .







: diskutil unmountDisk /dev/disk2















fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
Enter 'help' for information
      
      





!







, usb .







( ):







sudo fdisk -e /dev/disk2
print
f 1
write
print
exit
diskutil unmountDisk /dev/disk2
      
      







syslinux ( syslinux-5.00.zip).







"mbr", .







MBR.







: sudo dd conv=notrunc bs=440 count=1 if=mbr.bin of=/dev/disk2









"Unetbootin" "HirensBootCD" usb .







Then go to the "HBCD" folder in the root directory of the usb drive and rename the isolinux.cfg file to syslinux.cfg, then copy it to the root of the drive's usb.







The bootable usb drive is ready and can be used for its intended purpose.








All Articles