Create a bootable USB drive from the ﬁles of the Restored HBCD email@example.com
We describe how the ﬁles of the restored/extended Hiren’s BootCD (HBCD) can be transferred to a USB memory stick (ﬂash drive) and how the later can be made bootable using exclusively tools provided by the HBCD. The quickest and most accurate method is to use Linux command line tools, however Windows can be also used with equally good results. The restored edition of Hiren’s Boot CD employs a combination of the bootloaders syslinux and grub4dos; so the method described in Hiren’s web page1 does not work for the restored edition. If your computer does not have an optical drive read the relevant section below.
• Insert Hiren’s Restored BootCD, boot the computer from it and select Parted Magic Linux (the 5th option of the main menu). • Insert a 4GB (or larger) USB stick.2 Warning: All data on the USB stick will be erased. • Open a console window (e.g. LXTerminal) and type the following commands exactly as they appear in the list bellow after you replace the xx’s with what is appropriate for your USB ﬂash drive e.g. sdb1 or sdc1.3 Warning: If you get xx wrong you may erase your hard disk. Command umount /dev/sdxx mkfs.vfat -F32 -n HBCD /dev/sdxx mkdir /mnt/cdrom mount /dev/sdxx /mnt/usb mount /dev/sr0 /mnt/cdrom cp -Rfv /mnt/cdrom/* /mnt/usb/ syslinux -i -d isolinux /dev/sdxx dd if=/usr/share/syslinux/mbr.bin of=/dev/sdx parted /dev/sdx set 1 boot on sync Explanation In case the stick has been already automounted, unmount it ﬁrst. Format the stick. Create a CD mountpoint. Mount the stick. Mount the CD. Copy ﬁles to the stick, and wait for some time... Install the bootloader. Install the bootloader’s MBR. Make the stick active, i.e. bootable. Flush any pending buﬀered data.
• Note: In the last two commands before sync, sdx must be a device e.g., sdb or sdc, and not a partition sdb1 or sdc1. • Reboot the computer and test the stick for booting. 1...
Please join StudyMode to read the full document