Installing Haiku to a USB flash drive from Windows

IMPORTANT!!!! YOU USE AT YOUR OWN RISK. THE AUTHOR WILL NOT BE LIABLE FOR DATA LOSS, DAMAGES, LOSS OF PROFITS OR ANY OTHER KIND OF LOSS WHILE USING OR MISUSING THIS SOFTWARE.

Note: When entering commands shown quotes, do not enter the actual quote characters!

0) Connect Your Flash Drive.

1) First download the latest Haiku raw image from [http://haiku-files.org/raw/ HERE] and the latest [http://shounen.ru/soft/flashnul Flashnul] program from HERE.

2) Extract both files to a new directory (e.g. c:\haiku). Rename the raw image to haiku.img.

3) Open a Command Line (Start → Run, type “cmd”, and press enter.) You will see a black window appear with a blinking cursor. You can use basic DOS commands to navigate the directory of the image and the Flashnul. For example “cd \haiku”.

4) Type ”'flashnul -p'” to list the available devices.

Example:

Flashnul>flashnul -p

Available physical drives:
0 size = 81961123328 (76 Gb)
1 size = 1000341504 (954 Mb) 

As you can see, I have 2 physical disks, the first is 76Gb, and the second is 954 Mb. The second is my Flash drive, shown at index 1. The list will vary depending on your own storage setup. It is very important that you use the number that your listing shows!!! Use the media size as an extra clue to identify the correct media.

5) Write image to flash drive In step 4 we listed the available devices. We need the index of the Flash drive to write the image to it.

To write the image to Flash drive use the following command ('Check the number 3 times before You press enter!!!!!'):

"flashnul number_of_Your_flashdrive -L haiku.img"

Example:

Flashnul>flashnul 1 -L haiku.img

Disk PhysicalDrive1 (UNC name: \\.\PhysicalDrive1)
------------------------------------------------------------[Drive geometry]--
Cylinders/heads/sectors = 121/255/63
Bytes per sector = 512
CHS size = 995258880 (949 Mb)
---------------------------------------------------------------[Device size]--
Device size = 1000341504 (954 Mb)
delta to near power of 2 = 73400320 (70 Mb), 7%
Surplus size = 5082624 (4963 kb)
-----------------------------------------------[Adapter & Device properties]--
Bus type = (7) USB
Removable device = Yes
Command Queue = Unsupported
Device vendor = Kingston
Device name = DataTraveler 2.0
Revision = PMAP
--------------------------------------------------------------[Hotplug info]--
Device hotplug = Yes
Media hotplug = No

Selected operation: load file content
Selected drive: PhysicalDrive1, 1000341504b (954 Mb)

THIS OPERATION IS DESTRUCTIVE!!!
Type 'yes' to confirm operation. All other text will stop it.

Really destroy data on drive PhysicalDrive1? :yes

-----------------------------------------------------------------------[Log]--
Running operation [load file content] for drive PhysicalDrive1

Writing 0xf9f0000 (250 Mb), 899733 b/s
image load finished

----------------------------------------------------------[Operation result]--
passes: 1
errors: 0
write bytes: 262144000 (250 Mb)
avg. write speed: 899731 (878 kb/s)
max/min write speed: 0 (0 b/s) / 0 (0 b/s)

Press ENTER to exit. 

Ta-Da! Your Boot-able Haiku Flash Drive is ready!

6) Reboot Your computer and open the BIOS, select USB device for first boot device, and save the changes. After rebooting the computer will boot from the USB disk. It can take a long time, so please be patient.

I wish you good luck! Thank You for EuanK for the spell correcting.

ByE! miqlas

tutorials/install-haiku-to-usb-flash-drive-from-windows.txt · Last modified: 2010/08/23 19:58 by karl
Back to top