{"id":110,"date":"2009-06-10T12:00:41","date_gmt":"2009-06-10T00:00:41","guid":{"rendered":"http:\/\/www.meta.net.nz\/~daniel\/blog\/?p=110"},"modified":"2009-06-10T12:00:41","modified_gmt":"2009-06-10T00:00:41","slug":"creating-a-dos-usb-bootdisk-under-linux","status":"publish","type":"post","link":"https:\/\/www.meta.net.nz\/~daniel\/blog\/2009\/06\/10\/creating-a-dos-usb-bootdisk-under-linux\/","title":{"rendered":"Creating a DOS USB bootdisk under linux"},"content":{"rendered":"<p>Every now and then I need a DOS bootdisk to flash a BIOS or similar, and I only have linux with which to create it. I can never remember the quickest way to do this, so I&#8217;m documenting it here:<\/p>\n<p>Lifted entirely from <a href=\"http:\/\/gebi.supersized.org\/archives\/3-Create-a-bootable-FreeDOS-usb-stick.html\">this webpage<\/a>. I&#8217;m only archiving it here because content disappears over time.<\/p>\n<blockquote><p>\nI needed to upgrade the bios of my Computer (Intel).<\/p>\n<p>But how to do it without windows?<\/p>\n<p>In my case, Intel has many options for bios upgrading and one is the plain old DOS method. This is the best and fastest way to upgrade your bios with linux.<br \/>\nCreate a <a href=\"http:\/\/www.freedos.org\/\">FreeDOS<\/a> based bootable usb-stick<\/p>\n<p>    * Download a FreeDOS image, i&#8217;ll use <a href=\"http:\/\/www.finnix.org\/Balder\">Balder<\/a> for now.<br \/>\n    * Prepare the usb-stick<br \/>\n          o check partition (e.g cfdisk \/dev\/sda)<br \/>\n          o mkfs.msdos \/dev\/sda1<\/p>\n<p>Commands<\/p>\n<p>qemu -boot a -fda balder10.img -hda \/dev\/sda<br \/>\nA:\\> sys c:<br \/>\nA:\\> xcopy \/E \/N a: c:<\/p>\n<p>Check with<\/p>\n<p>qemu -hda \/dev\/sda<\/p>\n<\/blockquote>\n<p>There are, of course, many ways to do this. With recent VirtualBox versions supporting USB passthrough, I could do it entirely from a windows VM. Several other websites suggest installing grub onto the USB disk and having it boot a floppy disk image directly, which also seems like it would work. Your FAT-formatted USB drive would appear as C:, and you can just copy whatever content you like straight onto that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every now and then I need a DOS bootdisk to flash a BIOS or similar, and I only have linux with which to create it. I can never remember the quickest way to do this, so I&#8217;m documenting it here: Lifted entirely from this webpage. I&#8217;m only archiving it here because content disappears over time. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[],"_links":{"self":[{"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/posts\/110"}],"collection":[{"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/comments?post=110"}],"version-history":[{"count":3,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/posts\/110\/revisions"}],"predecessor-version":[{"id":113,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/posts\/110\/revisions\/113"}],"wp:attachment":[{"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/media?parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/categories?post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/tags?post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}