{"id":1492,"date":"2009-07-23T02:02:56","date_gmt":"2009-07-23T02:02:56","guid":{"rendered":"http:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm"},"modified":"2012-01-03T20:22:34","modified_gmt":"2012-01-03T20:22:34","slug":"running-windows-from-a-usb-flash-drive","status":"publish","type":"post","link":"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm","title":{"rendered":"Running Windows from a USB flash drive"},"content":{"rendered":"<p><em>I&#8217;ve titled this post as &#8220;Running Windows from a USB flash drive&#8221; because the same principles should be equally applicable to all Windows 7-based operating systems <del datetime=\"2009-09-21T12:54:38+00:00\">(<a href=\"http:\/\/blogs.technet.com\/aviraj\/archive\/2009\/01\/28\/windows-7-boot-from-vhd-first-impression-part-3-booting-vhd-from-vista-sp1-or-later.aspx\">and even Vista if the Windows 7 bootloader is used<\/a>)<\/del> but my specific scenario was based on Hyper-V Server 2008 R2.<\/em><\/p>\n<p>I got this working a few hours after Windows 7, Server 2008 and Hyper-V Server 2008 R2 were released to manufacturing but I was still using release candidate code &#8211; fingers crossed it still works with the final release!<\/p>\n<p>Boot from VHD is a fantastic new technology in Windows 7\/Server 2008 R2 and derivative operating systems and I&#8217;ve often wondered if it&#8217;s possible to use it to run Hyper-V from a USB flash drive (just like the &#8220;embedded&#8221; version of VMware ESXi offered by some OEMs). Well, as it happens it is &#8211; and this post describes the steps I had to take to make it work.<\/p>\n<p>First of all, I needed to create a virtual hard disk and install an operating system onto it. As Keith Combs noted, <a href=\"http:\/\/blogs.technet.com\/keithcombs\/archive\/2009\/06\/17\/automating-boot-from-vhd-os-installation.aspx\">there are various ways to do this but only one is supported<\/a>; however there is also <a href=\"http:\/\/technet.microsoft.com\/en-us\/windows\/dd758779.aspx\">a handy video on TechNet which takes you through the steps of creating a VHD and booting from it<\/a>.<\/p>\n<p>Using the TechNet video as a guide, I issued the following commands from the command prompt to create my virtual hard disk and apply an image from the Hyper-V Server 2008 R2 release candidate DVD:<\/p>\n<p><dirtycode:noclick>diskpart<br \/>\ncreate vdisk file=driveletter:\\virtualharddisk.vhd maximum=15000 type=expandable<br \/>\nselect vdisk file=driveletter:\\virtualharddisk.vhd<br \/>\nattach vdisk<br \/>\nlist disk<\/dirtycode><\/p>\n<p>(make a note of the disk number.)<\/p>\n<p><dirtycode:noclick>select disk disknumber<br \/>\ncreate partition primary<br \/>\nselect partition 1<br \/>\nactive<br \/>\nformat fs=ntfs quick<br \/>\nassign<br \/>\nexit<\/dirtycode><\/p>\n<p>(note the drive letter for the newly mounted VHD.)<\/p>\n<p><dirtycode:noclick>imagex \/info dvddrive:\\sources\\install.wim<\/dirtycode><\/p>\n<p>(identify the correctentry.)<\/p>\n<p><dirtycode:noclick>imagex \/apply dvddrive:\\sources\\install.wim \/check imageindex vhddrive:\\<br \/>\ndiskpart<br \/>\nselect vdisk file=driveletter:\\virtualharddisk.vhd<br \/>\ndetach vdisk<br \/>\nexit<\/dirtycode><\/p>\n<p>At this point, Hyper-V Server had been imaged into my new VHD, which could then be copied to the USB flash drive.<\/p>\n<p>Next, to load the VHD from the Boot Manager, I edited the boot configuration data (which is what would be required in a standard boot from VHD scenario); however, as I found later, a different set of actions is needed for booting from the USB flash drive.<\/p>\n<p><dirtycode:noclick>bcdedit \/copy {current} \/d &#8220;Hyper-V Server 2008 R2&#8221;<br \/>\nbcdedit<\/dirtycode><\/p>\n<p>(make a note of the GUID for the newly created entry.)<\/p>\n<p><dirtycode:noclick>bcdedit \/set {guid} device vhd=[usbdrive:]\\virtualharddisk.vhd<br \/>\nbcdedit \/set {guid} osdevice vhd=[usbdrive:]\\virtualharddisk.vhd<br \/>\nbcdedit \/set {guid} detecthal on<br \/>\nbcdedit \/set {guid} description &#8220;Hyper-V Server 2008 R2&#8221;<\/dirtycode><\/p>\n<p>It&#8217;s worth understanding that the use of drive letters (which are transient in nature) does not cause a problem as the BCD Editor (<code>bcdedit.exe<\/code>) extracts the data about the partition and saves it in the BCD store (i.e. it does not actually save the drive letter).<\/p>\n<p>After rebooting, Hyper-V Server loaded from my USB flash drive and ran through the out of box experience. At this stage I had Hyper-V Server running off the flash drive but only if my original Windows installation (with the boot manager) was available and, as soon as I removed the hard disk (I wanted to be sure that I was booting off the flash drive with no other dependencies), then the whole thing collapsed in a heap. Thanks to Garry Martin, I checked my BIOS configuration and made sure that USB device boots were enabled (they were not) but I then spent about a day playing around with various BCD configurations (as well as various attempts to fix my BCD with <code>bootrec.exe<\/code>) until I stumbled on a post from Vineet Sarda (not for the first time, based on the comments that include one from yours truly a few weeks back!) that discusses <a href=\"http:\/\/blogs.msdn.com\/vineetsarda\/archive\/2009\/05\/21\/boot-from-windows-7-vhd-boot-without-having-any-native-operating-system.aspx\">booting from VHD without a native operating system<\/a>.<\/p>\n<p>Following Vineet&#8217;s example, I booted my system into Windows 7 (I could have used the Windows Recovery Environment), reformatted the USB flash drive before copying my VHD image back onto it, and issued the following commands:<\/p>\n<p><dirtycode:noclick>diskpart<br \/>\nselect vdisk file=usbdrive:\\virtualharddisk.vhd<br \/>\nattach vdisk<br \/>\nlist volume<br \/>\nexit<\/dirtycode><\/p>\n<p>(note the drive letter for the newly mounted VHD.)<\/p>\n<p><dirtycode>bcdboot vhddrive:\\Windows \/s usbdrive: \/v<\/dirtycode><\/p>\n<p>(i.e. copying the BCD from the operating system image contained within the VHD, to the physical USB drive. Note that, when running on a live system it is important to specify the target drive for the BCD in order to avoid overwriting the live configuration.)<\/p>\n<p>I then shut down the system, removed the hard disk and booted from the USB flash drive, after which the Windows Boot Manager loaded an operating system from within the VHD.<\/p>\n<p>Looking at my BCD configuration (shown here for reference), I can see the source of my many hours of confusion &#8211; the Boot Manager resides on the physical media (my USB key &#8211; which was allocated drive D: in this case) and loads an operating system from the virtual disk that is given another drive letter (in this case C:):<\/p>\n<p><em>Windows Boot Manager<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nidentifier\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{bootmgr}<br \/>\ndevice\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0partition=D:<br \/>\ndescription\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Windows Boot Manager<br \/>\nlocale\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0en-us<br \/>\ninherit\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{globalsettings}<br \/>\ndefault\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{current}<br \/>\nresumeobject\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{27f66313-771a-11de-90bb-00037ab36ab6}<br \/>\ndisplayorder\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{current}<br \/>\ntoolsdisplayorder\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{memdiag}<br \/>\ntimeout\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a030<\/code><\/p>\n<p>Windows Boot Loader<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nidentifier\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{current}<br \/>\ndevice\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0partition=C:<br \/>\npath\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\\windows\\system32\\winload.exe<br \/>\ndescription\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Hyper-V Server 2008 R2<br \/>\nlocale\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0en-us<br \/>\ninherit\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{bootloadersettings}<br \/>\nosdevice\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0partition=C:<br \/>\nsystemroot\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\\windows<br \/>\nresumeobject\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{27f66313-771a-11de-90bb-00037ab36ab6}<br \/>\nnx\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0OptOut<br \/>\ndetecthal\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Yes<br \/>\n<\/em><br \/>\nIt took a while to boot (my flash drive was a freebie is not the fastest in the world) but, once loaded into memory, Hyper-V Server seemed to run without any noticeable delay. I figure that, as long as the workload is stored on another disk this should not present any problems and, given suitably fast flash memory, it ought to be possible to improve boot times as well. Running a full Windows operating System (e.g. Windows 7) in this manner is an entirely different matter &#8211; very few USB flash drives will be able to stand the constant writes and further testing would be required.<\/p>\n<p>Now that I have Hyper-V Server running from an inexpensive USB flash drive with no reliance on my PC&#8217;s internal hard disk, all I need to do is inject the correct network drivers and I will have a virtualisation solution for colleagues who want to run a full hypervisor on their corporate notebooks, without deviating from the company&#8217;s standard client build.<\/p>\n<h3>Additional information<\/h3>\n<p>The following notes\/links may provide useful background information:<\/p>\n<ul>\n<li><a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc721886(WS.10).aspx\">Boot Configuration Data Editor Frequently Asked Questions on Microsoft TechNet<\/a>.<\/li>\n<li>Note that the boot from VHD functionality in Windows 7\/Windows Server 2008 R2 does not support the use of BitLocker or hibernation.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve titled this post as &#8220;Running Windows from a USB flash drive&#8221; because the same principles should be equally applicable to all Windows 7-based operating systems (and even Vista if the Windows 7 bootloader is used) but my specific scenario was based on Hyper-V Server 2008 R2. I got this working a few hours after &hellip; <a href=\"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Running Windows from a USB flash drive<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[218],"tags":[76,144,175],"class_list":["post-1492","post","type-post","status-publish","format-standard","hentry","category-technology","tag-hyper-v","tag-windows-7","tag-windows-server-2008-r2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Running Windows from a USB flash drive - markwilson.it<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Running Windows from a USB flash drive - markwilson.it\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve titled this post as &#8220;Running Windows from a USB flash drive&#8221; because the same principles should be equally applicable to all Windows 7-based operating systems (and even Vista if the Windows 7 bootloader is used) but my specific scenario was based on Hyper-V Server 2008 R2. I got this working a few hours after &hellip; Continue reading Running Windows from a USB flash drive\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm\" \/>\n<meta property=\"og:site_name\" content=\"markwilson.it\" \/>\n<meta property=\"article:published_time\" content=\"2009-07-23T02:02:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-01-03T20:22:34+00:00\" \/>\n<meta name=\"author\" content=\"Mark Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@markwilsonit\" \/>\n<meta name=\"twitter:site\" content=\"@markwilsonit\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mark Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2009\\\/07\\\/running-windows-from-a-usb-flash-drive.htm#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2009\\\/07\\\/running-windows-from-a-usb-flash-drive.htm\"},\"author\":{\"name\":\"Mark Wilson\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\"},\"headline\":\"Running Windows from a USB flash drive\",\"datePublished\":\"2009-07-23T02:02:56+00:00\",\"dateModified\":\"2012-01-03T20:22:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2009\\\/07\\\/running-windows-from-a-usb-flash-drive.htm\"},\"wordCount\":1132,\"commentCount\":28,\"publisher\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\"},\"keywords\":[\"Microsoft Virtual Server\\\/Hyper-V\",\"Microsoft Windows 7\",\"Microsoft Windows Server 2008 R2\"],\"articleSection\":[\"Technology\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2009\\\/07\\\/running-windows-from-a-usb-flash-drive.htm#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2009\\\/07\\\/running-windows-from-a-usb-flash-drive.htm\",\"url\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2009\\\/07\\\/running-windows-from-a-usb-flash-drive.htm\",\"name\":\"Running Windows from a USB flash drive - markwilson.it\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#website\"},\"datePublished\":\"2009-07-23T02:02:56+00:00\",\"dateModified\":\"2012-01-03T20:22:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2009\\\/07\\\/running-windows-from-a-usb-flash-drive.htm#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2009\\\/07\\\/running-windows-from-a-usb-flash-drive.htm\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2009\\\/07\\\/running-windows-from-a-usb-flash-drive.htm#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Running Windows from a USB flash drive\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/\",\"name\":\"markwilson.it\",\"description\":\"get-info -class technology | write-output &gt; \\\/dev\\\/web\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\",\"name\":\"Mark Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\",\"width\":800,\"height\":800,\"caption\":\"Mark Wilson\"},\"logo\":{\"@id\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\"},\"description\":\"A Chartered IT Professional, with recent experience in technology leadership, IT strategy and practice management roles, Mark Wilson is an Enterprise Architect in the Advisory and Management Group at risual. During a career spanning more than two decades, Mark has gained widespread recognition as an expert in his field including both industry and national press exposure. In addition to certifications from Microsoft, VMware, Red Hat, The Open Group and Axelos, Mark held a Microsoft Most Valuable Professional (MVP) award for three years and is now part of the MVP Reconnect programme. Mark is also well-known on social media and maintains an award-winning blog.\",\"sameAs\":[\"http:\\\/\\\/www.markwilson.co.uk\\\/\",\"https:\\\/\\\/www.instagram.com\\\/markwilsonuk\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/markawilson\\\/\",\"https:\\\/\\\/x.com\\\/markwilsonit\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCWHlZCoHRTocdvtrOJ2IL4A\"],\"url\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/author\\\/mark-wilson\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Running Windows from a USB flash drive - markwilson.it","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm","og_locale":"en_GB","og_type":"article","og_title":"Running Windows from a USB flash drive - markwilson.it","og_description":"I&#8217;ve titled this post as &#8220;Running Windows from a USB flash drive&#8221; because the same principles should be equally applicable to all Windows 7-based operating systems (and even Vista if the Windows 7 bootloader is used) but my specific scenario was based on Hyper-V Server 2008 R2. I got this working a few hours after &hellip; Continue reading Running Windows from a USB flash drive","og_url":"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm","og_site_name":"markwilson.it","article_published_time":"2009-07-23T02:02:56+00:00","article_modified_time":"2012-01-03T20:22:34+00:00","author":"Mark Wilson","twitter_card":"summary_large_image","twitter_creator":"@markwilsonit","twitter_site":"@markwilsonit","twitter_misc":{"Written by":"Mark Wilson","Estimated reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm#article","isPartOf":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm"},"author":{"name":"Mark Wilson","@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468"},"headline":"Running Windows from a USB flash drive","datePublished":"2009-07-23T02:02:56+00:00","dateModified":"2012-01-03T20:22:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm"},"wordCount":1132,"commentCount":28,"publisher":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468"},"keywords":["Microsoft Virtual Server\/Hyper-V","Microsoft Windows 7","Microsoft Windows Server 2008 R2"],"articleSection":["Technology"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm","url":"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm","name":"Running Windows from a USB flash drive - markwilson.it","isPartOf":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/#website"},"datePublished":"2009-07-23T02:02:56+00:00","dateModified":"2012-01-03T20:22:34+00:00","breadcrumb":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/running-windows-from-a-usb-flash-drive.htm#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.markwilson.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Running Windows from a USB flash drive"}]},{"@type":"WebSite","@id":"https:\/\/www.markwilson.co.uk\/blog\/#website","url":"https:\/\/www.markwilson.co.uk\/blog\/","name":"markwilson.it","description":"get-info -class technology | write-output &gt; \/dev\/web","publisher":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.markwilson.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468","name":"Mark Wilson","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1","url":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1","width":800,"height":800,"caption":"Mark Wilson"},"logo":{"@id":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1"},"description":"A Chartered IT Professional, with recent experience in technology leadership, IT strategy and practice management roles, Mark Wilson is an Enterprise Architect in the Advisory and Management Group at risual. During a career spanning more than two decades, Mark has gained widespread recognition as an expert in his field including both industry and national press exposure. In addition to certifications from Microsoft, VMware, Red Hat, The Open Group and Axelos, Mark held a Microsoft Most Valuable Professional (MVP) award for three years and is now part of the MVP Reconnect programme. Mark is also well-known on social media and maintains an award-winning blog.","sameAs":["http:\/\/www.markwilson.co.uk\/","https:\/\/www.instagram.com\/markwilsonuk\/","https:\/\/www.linkedin.com\/in\/markawilson\/","https:\/\/x.com\/markwilsonit","https:\/\/www.youtube.com\/channel\/UCWHlZCoHRTocdvtrOJ2IL4A"],"url":"https:\/\/www.markwilson.co.uk\/blog\/author\/mark-wilson"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":1494,"url":"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/hyper-v-is-now-supported-on-flash-drives.htm","url_meta":{"origin":1492,"position":0},"title":"Hyper-V is now supported on flash drives","author":"Mark Wilson","date":"Friday 31 July 2009","format":false,"excerpt":"Last week I wrote about booting Windows from a USB flash drive. This had been a \"pet project\" of mine for a few months and, just after I finally got around to doing it, Stephen Rose blogged about a tool to help you prepare the USB drive to boot from\u2026","rel":"","context":"In \"Microsoft Virtual Server\/Hyper-V\"","block_context":{"text":"Microsoft Virtual Server\/Hyper-V","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/hyper-v"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1416,"url":"https:\/\/www.markwilson.co.uk\/blog\/2009\/04\/microsoft-virtualization-the-r2-wave.htm","url_meta":{"origin":1492,"position":1},"title":"Microsoft Virtualization: the R2 wave","author":"Mark Wilson","date":"Friday 17 April 2009","format":false,"excerpt":"The fourth Microsoft Virtualisation User Group (MVUG) meeting took place last night and Microsoft's Matt McSpirit presented a session on the R2 wave of virtualisation products. I've written previously about some of the things to expect in Windows Server 2008 R2 but Matt's presentation was specifically related to virtualisation and\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/www.markwilson.co.uk\/blog\/topic\/technology"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1504,"url":"https:\/\/www.markwilson.co.uk\/blog\/2009\/08\/creating-a-hyper-v-workstation.htm","url_meta":{"origin":1492,"position":2},"title":"Creating a Hyper-V workstation","author":"Mark Wilson","date":"Monday 17 August 2009","format":false,"excerpt":"A couple of years back, I was running Windows Server 2008 on my everyday notebook PC so that I could work with Hyper-V. That wasn't really ideal and, these days, I'm back on a client OS - Windows 7 as it happens... Even so, I've been discussing the concept of\u2026","rel":"","context":"In \"Microsoft Virtual Server\/Hyper-V\"","block_context":{"text":"Microsoft Virtual Server\/Hyper-V","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/hyper-v"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1499,"url":"https:\/\/www.markwilson.co.uk\/blog\/2009\/08\/injecting-network-drivers-into-a-hyper-v-server-or-windows-server-installation.htm","url_meta":{"origin":1492,"position":3},"title":"Injecting network drivers into a Hyper-V Server (or Windows Server) installation","author":"Mark Wilson","date":"Thursday 6 August 2009","format":false,"excerpt":"A couple of weeks ago, I blogged about running Windows from a flash drive - specifically running Hyper-V Server 2008 R2. One thing I hadn't got around to at that time though was injecting the necessary drivers to provide network access to\/from the server - which is pretty critical for\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/www.markwilson.co.uk\/blog\/topic\/technology"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1490,"url":"https:\/\/www.markwilson.co.uk\/blog\/2009\/07\/windows-7-and-server-2008-r2-released-to-manufacturing.htm","url_meta":{"origin":1492,"position":4},"title":"Windows 7 and Server 2008 R2 released to manufacturing","author":"Mark Wilson","date":"Wednesday 22 July 2009","format":false,"excerpt":"After much anticipation, Microsoft has announced that Windows 7 and Windows Server 2008 R2 have been released to manufacturing (RTM). The build numbers are is 7600 and 7200 respectively and my post yesterday highlighted the dates when partners and customers will be able to get their hands on the software.\u2026","rel":"","context":"In \"Microsoft System Center Virtual Machine Manager\"","block_context":{"text":"Microsoft System Center Virtual Machine Manager","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/scvmm"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2512,"url":"https:\/\/www.markwilson.co.uk\/blog\/2011\/04\/microsoft-hyper-v-a-reminder-of-where-were-at.htm","url_meta":{"origin":1492,"position":5},"title":"Microsoft Hyper-V: A reminder of where we&#8217;re at","author":"Mark Wilson","date":"Thursday 14 April 2011","format":false,"excerpt":"Earlier this week I saw a tweet from the MIX 2011 conference that highlighted how Microsoft's Office 365 software as a service platform runs entirely on their Hyper-V hypervisor. There are those (generally those who have a big investment in VMware technologies) who say Microsoft's hypervisor lacks the features to\u2026","rel":"","context":"In \"Linux\"","block_context":{"text":"Linux","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/linux"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=1492"}],"version-history":[{"count":3,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1492\/revisions"}],"predecessor-version":[{"id":3461,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts\/1492\/revisions\/3461"}],"wp:attachment":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=1492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=1492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=1492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}