01-usb-instalation.pdf

(253 KB) Pobierz
707942428 UNPDF
Create a bootable USB drive from the les of the Restored HBCD
proteuss@sdf.lonestar.org
Introduction
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 bootloaderssyslinuxandgrub4dos; so the method described in Hiren's web page 1 does not work for the
restored edition. If your computer does not have an optical drive read the relevant section below.
LinuxMethod
Insert Hiren's Restored BootCD, boot the computer from it and selectPartedMagicLinux(the 5th
option of the main menu).
Insert a 2GB (or larger) USB stick. 2 Warning:AlldataontheUSBstickwillbeerased.
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:Ifyouget xx wrongyoumayeraseyourharddisk.
Command
Explanation
umount/dev/sdxx
In case the stick has been
already automounted,
unmount it rst.
mkfs.vfat-F32-nHBCD/dev/sdxx Format the stick.
mkdir/mnt/cdrom Create a CD mountpoint.
mount/dev/sdxx/mnt/usb Mount the stick.
mount/dev/sr0/mnt/cdrom Mount the CD.
cp-Rfv/mnt/cdrom/*/mnt/usb/
Copy les to the stick,
and wait for some time...
syslinux-i-disolinux/dev/sdxx Install the bootloader.
ddif=/usr/share/syslinux/mbr.binof=/dev/sdx Install the bootloader's MBR.
parted/dev/sdxset1booton Make the stick active, i.e. bootable.
sync Flush any pending buered data.
Note: In the last two commands before sync , sdx must be a device e.g., sdb or sdc , andnota
partition sdb1 or sdc1 .
Reboot the computer and test the stick for booting.
1 http://www.hiren.info/pages/bootcd-on-usb-disk
2 The total size needed is 1.6 GB. The rest is available to store other les.
3 You can determine the correct device letters with the command: \ fsarchiverprobe " or \ fdisk-l ".
707942428.004.png
WindowsMethod
Insert Hiren's Restored BootCD, boot the computer from it and selectMiniWindowsXP.
Insert a 2GB (or larger) USB stick. 1 Warning:AlldataontheUSBstickwillbeerased.
Run theUSBFormatTool, found in the HBCD Program Launcher, under the itemPrograms-Parti-
tion/Boot/MBR,
Format the stick as shown.
Determine the letters of the CD and USB drives (Look in My Computer).
1 The total size needed is 1.8 GB. The rest is available to store other les.
707942428.005.png 707942428.006.png
Copy all the les from CD to USB. For this you may \Drag-and-Drop"(slow) or use one of the
utilities found in the HBCD menu, likeFastCopyorTeraCopy(look for them under Backup) orTotal
Commander, or even use the dos command: xcopyX:\*.*Y:\/E , where X and Y are CD and USB
letters respectively.
Go to MyComputer , nd the CD, right click on the bootprog subfolder and then ' CommandPromt
Here '.
In the console window type the command:
syslinux.exe-maf-disolinuxY:
where Y: is the USB drive. This command installs the bootloader, the MBR and activates the USB
for booting.
Safely remove the stick and test for booting.
AlternativeWindowsMethod
The utilityRMPepUSB(found in Partition/Boot/MBR of the HBCD program launcher menu) can format,
copy the les, and install the bootloader in one go. However it takes a very long time to copy the les.
Set the utility's options as shown below and clickPrepareDrive. Unless you are familiar with this
utility do not meddle with any of the other settings.
707942428.007.png
Wait (copying the les takes a long time with this utility; so be patient) and, when prompted, answer
the two questions as indicated in the screenshots shown below:
When asked type the bootloader folder name: isolinux (withoutbackslash).
707942428.001.png 707942428.002.png 707942428.003.png
Computerswithoutopticaldrive
If your computer has no optical drive and has Windows XP or Windows 7 installed you have the following
options:
Use a CD emulator such asAlcohol120%orDaemonToolsto mount the .iso, start the HBCD Program
Launcher and run the the utilities from the emulated optical drive, as described above. The utilities
are portable and work with all Windows versions.
Use Virtual PC software such asVMwareWorkstation,VirtualBoxandorQemuto create a virtual PC
in your computer and boot the .iso directly. In this case any of the 3 above methods are possible.
If the computer has only Linux, then you need to have the partition editorpartedand the bootloadersyslinux
installed. Test their availability with:
parted--version
and
syslinux--version (need > 4.0).
If not available install them from your distro's repositories.
Then follow the instuctions as above, but instead of the cdrom, mount the .iso with a command like:
mount-oloop,user<path-to-iso-file.iso>/mnt/cdrom
Zgłoś jeśli naruszono regulamin