{"id":306,"date":"2010-09-05T12:56:34","date_gmt":"2010-09-05T12:56:34","guid":{"rendered":"http:\/\/poojanwagh.opalstacked.com\/techblog\/?p=306"},"modified":"2010-09-05T12:59:47","modified_gmt":"2010-09-05T12:59:47","slug":"installing-freebsd-from-usb-created-using-windows","status":"publish","type":"post","link":"https:\/\/tech.poojanblog.com\/blog\/unix-linux\/installing-freebsd-from-usb-created-using-windows\/","title":{"rendered":"Installing FreeBSD from USB (created using Windows)"},"content":{"rendered":"<p>Be careful. You&#8217;re creating a FreeBSD boot image using Windows. It&#8217;s sometimes difficult to see which hard disk you&#8217;re writing to. See here:<br \/>\n<a href=\"http:\/\/koitsu.wordpress.com\/2009\/11\/03\/writing-freebsd-memstick-img-to-a-usb-drive-in-windows\/\">Writing FreeBSD memstick.img to a USB drive in Windows \u00ab Koitsu&#8217;s Blog<\/a><\/p>\n<p>Download <i>dd for Windows<\/i> here: <a href=\"http:\/\/www.chrysocome.net\/download\">chrysocome.net &#8211; download<\/a>. I chose beta 0.6.3. Unzip it, and take a look at the options:<\/p>\n<code><br \/>\ndd [bs=SIZE] [count=BLOCKS] [if=FILE] [of=FILE] [seek=BLOCKS] [skip=BLOCKS] [&#8211;s SIZE and BLOCKS may have one of the following suffix:<br \/>\n k = 1024<br \/>\n M = 1048576<br \/>\n G = 1073741824<br \/>\n default block size (bs) is 512 bytes<br \/>\n skip specifies the starting offset of the input file (if)<br \/>\n seek specifies the starting offset of the output file (of)<br \/>\n <\/code>\n<p>I had to run CMD and then dd as administrator (on Windows 7). Unless I did that, I couldn\u2019t see the <em>NT Block Device Objects<\/em>. When I ran as administrator, i got the following (in addition to other outputs):<\/p>\n<code><br \/>\nNT Block Device Objects<br \/>\n \\\\?\\Device\\CdRom0<br \/>\n \t size is 2147483647 bytes<br \/>\n \\\\?\\Device\\CdRom1<br \/>\n \t size is 2147483647 bytes<br \/>\n \\\\?\\Device\\Harddisk0\\Partition0<br \/>\n \t link to \\\\?\\Device\\Harddisk0\\DR0<br \/>\n \t Fixed hard disk media. Block size = 512<br \/>\n \t size is 80000000000 bytes<br \/>\n \\\\?\\Device\\Harddisk0\\Partition1<br \/>\n \t link to \\\\?\\Device\\HarddiskVolume1<br \/>\n \\\\?\\Device\\Harddisk0\\Partition2<br \/>\n \t link to \\\\?\\Device\\HarddiskVolume2<br \/>\n \\\\?\\Device\\Harddisk1\\Partition0<br \/>\n \t link to \\\\?\\Device\\Harddisk1\\DR1<br \/>\n \t Fixed hard disk media. Block size = 512<br \/>\n \t size is 250000000000 bytes<br \/>\n \\\\?\\Device\\Harddisk1\\Partition1<br \/>\n \t link to \\\\?\\Device\\HarddiskVolume3<br \/>\n \\\\?\\Device\\Harddisk2\\Partition0<br \/>\n \t link to \\\\?\\Device\\Harddisk2\\DR2<br \/>\n \\\\?\\Device\\Harddisk2\\Partition1<br \/>\n \t link to \\\\?\\Device\\HarddiskVolume4<br \/>\n \\\\?\\Device\\Harddisk3\\Partition0<br \/>\n \t link to \\\\?\\Device\\Harddisk3\\DR6<br \/>\n \t Removable media other than floppy. Block size = 512<br \/>\n \t size is 4007657472 bytes<br \/>\n \\\\?\\Device\\Harddisk3\\Partition1<br \/>\n \t link to \\\\?\\Device\\HarddiskVolume8<br \/>\n \t Removable media other than floppy. Block size = 512<br \/>\n \t size is 25600000 bytes<br \/>\n <\/code>\n<p>Then, I ran the dd command. I got a file permission error problem. I went over to the Windows volume manager and formatted the drive I was interested in. Windows formatting of the drive failed, too. It created a partition with a size of 24MB. After that, though, I could run dd:<\/p>\n<code><br \/>\nD:\\Users\\Poojan\\Downloads\\dd-0.6beta3&gt;dd bs=10240 if=..\\8.1-RELEASE-amd64-all\\FreeBSD-8.1-RELEASE-amd64-memstick.img of=\\\\?\\Device\\H<br \/>\n arddisk3\\Partition0 &#8211;progress<br \/>\n rawwrite dd for windows version 0.6beta3.<br \/>\n Written by John Newbigin &lt;jn@it.swin.edu.au&gt;<br \/>\n This program is covered by terms of the GPL Version 2.<\/p>\n<p><\/code>\n<p>It has been running for quite a while. It\u2019s up to a count of 470,000,000 right now.<\/p>\n<p>After about 30 minutes, it\u2019s finally done:<\/p>\n<code>   D:\\Users\\Poojan\\Downloads\\dd-0.6beta3&gt;dd bs=10240 if=..\\8.1-RELEASE-amd64-all\\FreeBSD-8.1-RELEASE-amd64-memstick.img of=\\\\?\\Device\\H<br \/>\narddisk3\\Partition0 &#8211;progress<br \/>\nrawwrite dd for windows version 0.6beta3.<br \/>\nWritten by John Newbigin &lt;jn@it.swin.edu.au&gt;<br \/>\nThis program is covered by terms of the GPL Version 2. <\/p>\n<p>1,075,384,320   105018+0 records in<br \/>\n105018+0 records out<br \/>\n<\/code>\n<\/p>\n<div class='wp_likes' id='wp_likes_post-306'><a class='like' href=\"javascript:wp_likes.like(306);\" title='Like' ><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/tech.poojanblog.com\/blog\/wp-content\/plugins\/wp-likes\/images\/like.png\" alt='' border='0'\/><\/a><span class='text'><b>2<\/b> people like this post.<\/span><\/p>\n<div class='like' ><a href=\"javascript:wp_likes.like(306);\">Like<\/a><\/div>\n<div class='unlike' ><a href=\"javascript:wp_likes.unlike(306);\">Unlike<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Be careful. You&#8217;re creating a FreeBSD boot image using Windows. It&#8217;s sometimes difficult to see which hard disk you&#8217;re writing to. See here: Writing FreeBSD memstick.img to a USB drive in Windows \u00ab Koitsu&#8217;s Blog Download dd for Windows here: chrysocome.net &#8211; download. I chose beta 0.6.3. Unzip it, and take a look at the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[114,12,113,115],"class_list":["post-306","post","type-post","status-publish","format-standard","hentry","category-unix-linux","tag-dd","tag-freebsd","tag-usb-install","tag-windows"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/comments?post=306"}],"version-history":[{"count":6,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/306\/revisions"}],"predecessor-version":[{"id":312,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/306\/revisions\/312"}],"wp:attachment":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/media?parent=306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/categories?post=306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/tags?post=306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}