Using dd for Windows to install Haiku
This advice is for woz who is trying to use dd in Windows to create a USB install disk for Haiku.
(this post has turned into a novel, so I've split it into two parts)
Woz, you have done most of the hard stuff already, IMO. You have downloaded and extracted
the Haiku anyboot image. You have found the "dd for Windows" utility and downloaded it. And
you have already created a partition to install Haiku on -- easily the hardest part of all.
From here, you will need to:
1. run dd to create the USB install disk
2. reboot from this USB disk
3. run the Haiku installer
4. run BootManager
5. reboot and enjoy
Firstly, the error you are getting about "dd is not recognized..." is because you don't have dd.exe
located in a path that the command shell knows about. This means you either have to enter the full path
of the dd program at the command line, or better yet, just change to this directory first.
For simplicity, we'll assume that dd.exe is at the root of the C drive
In fact, you can just copy it there, then the remainder of the commands shown below will work perfect.
From the Windows taskbar, enter "cmd" (no quotes, of course) to bring up the command shell.
No, you don't have to run this as administrator -- regular user is fine.
By default, the command shell will be in the Users\<username> directory, so
to change to the root of the C drive, where we have put dd.exe.
Incidentally, for those reading who don't have "dd for Windows", go here:
You can download dd from there, and it also has some nice instructions covering its use.
and it will show all the drives.
First do this without the USB stick in, then again after inserting the USB stick.
The new entry that shows up the second time will obviously be the drive info for the USB stick.
As an example, mine reads:
\\.\Volume<01a7cdb7-2ce8-11e0-868f-0013721d25ab>\ link to \\?\Device\HarddiskVolume6 removeable media Mounted on \\.\g:
The fact that it shows "removeable media" is a good hint that we've got the right drive.
Furthermore, it shows that it is mounted as "g:", which is easy to verify as my USB stick shows
as G: in Explorer when I browse the files. Of course, your info will be different.
So, using this example, we would use "\\?\Device\HarddiskVolume6" as the drive path
for the USB stick. Thus we can construct a sample command line for dd
dd if=haiku-hrev43898-anyboot.image of=\\?\Device\Harddisk6\Partition0 bs=1M --size --progress
Naturally, use the correct revision number if its not hrev43898.
Notice that we append "\Partition0" to the USB drive path. This is essential.
You have to write to partition 0 on the drive you are writing to.
After you have run this dd command, and it is finished, you can power off the computer.
Leave the USB stick in.
Now power back on.
See next post for more.