{"id":7,"date":"2009-04-21T21:25:58","date_gmt":"2009-04-22T02:25:58","guid":{"rendered":"https:\/\/www.falatic.com\/?p=7"},"modified":"2009-09-06T03:05:49","modified_gmt":"2009-09-06T08:05:49","slug":"fun-with-bootable-flash-drives","status":"publish","type":"post","link":"https:\/\/www.falatic.com\/index.php\/7\/fun-with-bootable-flash-drives","title":{"rendered":"Fun with bootable flash drives!"},"content":{"rendered":"<p>I&#8217;ve been fiddling with making bootable flash drives lately, via <a title=\"UBCD4Win homepage\" href=\"http:\/\/www.ubcd4win.com\/\" target=\"_blank\">UBCD4Win<\/a> for the most part.\u00a0 It&#8217;s actually come in handy a few times in the last month alone and the new v3.50 just came out today!\u00a0 In the course of this I&#8217;ve learned a couple of useful things that might be worthwhile to others working on this.<\/p>\n<p><!--more--><\/p>\n<hr \/>\n<h3>Flash Drives and The Removable Bit<\/h3>\n<p>Something I stumbled upon today was a Lexar utility that can flip the removable bit on a flash drive.\u00a0 <span style=\"color: #800000;\"><span style=\"text-decoration: underline;\"><strong>Disclaimer: this may not work for you or could even cause problems!<\/strong><\/span><\/span> As you may have noticed a flash drive appears as a &#8220;removable disk&#8221; in explorer, and (as I understand it) cannot be partitioned in XP or lower (Vista doesn&#8217;t seem to care as much from what I can tell).Indeed, it works, making the drive go from &#8220;removable&#8221; to &#8220;basic&#8221; (that is, fixed or local).<\/p>\n<p>As I was doing all this in Vista with UAC enabled I was alarmed when it appeared that once I flipped the bit there was no flipping it back!\u00a0 It&#8217;s not necessarily bad but I prefer to keep it removable unless otherwise necessary.\u00a0 After lots of flailing (and finding a few posts alluding to this one-way trip problem &#8211; but no answers) <span style=\"text-decoration: underline;\">I ran the utility via the &#8220;Run as administrator&#8221; option<\/span>. This allowed BootIt to see the &#8220;fixed&#8221; disks (which the flash drive becomes a part of after flipping the bit).\u00a0 <strong>Be VERY careful not to mess with the wrong drive of course! <\/strong> I think Vista is more protective of the fixed disks, thus the unexpected hurdle.<\/p>\n<p>Note: I was able to flip the removable bit on Lexar and A-DATA drives, <strong>but I had no luck with<\/strong> my 4GB OCZ Rally2, a Sandisk Cruzer Micro or with an old Pocket Disk brand 128MB drive (handy for small images) which all stayed resolutely removable.<\/p>\n<p>Read more about the <em><strong>Lexar BootIt (Flip the Removable Media Bit)<\/strong><\/em> tool <a href=\"http:\/\/freestickdownload.blogspot.com\/2008\/05\/bootit-lexar-usb-flip-romovable-media.html\" target=\"_blank\">here<\/a> and <a href=\"http:\/\/www.downloadsquad.com\/tag\/usb-flash-drive\/\" target=\"_blank\">here<\/a> (I used v1.07, which I think is the only one out there).<\/p>\n<hr \/>\n<h3>Adding bootable ISO images to UBCD4Win images<\/h3>\n<p>It&#8217;s pretty easy to add bootable ISO images to UBCD4Win (this is tested with v3.22 and should work with v3.50 equally well).\u00a0 Today I had LOTS of &#8220;fun&#8221; dealing with a lost boot manager on my triple-boot laptop (<em>Vista, Ubuntu, Win7, oh my!<\/em>) and I snagged copies of <a title=\"GParted project page\" href=\"http:\/\/gparted.sourceforge.net\/index.php\" target=\"_blank\">GParted<\/a> and <a title=\"Super Grub Disk\" href=\"http:\/\/www.supergrubdisk.org\/\" target=\"_blank\">Super Grub<\/a> to try and save the day.\u00a0 All I did was download them and add the ISOs to the \/images tree on the prepared flash drive.\u00a0 Then I added a couple of entries in \/menu.lst as follows:<\/p>\n<pre>title Super Grub\r\nmap --mem (hd0,0)\/\/Images\/super_grub.iso (hd32)\r\nmap --hook\r\nchainloader (hd32)\r\nrootnoverify (hd32)<\/pre>\n<pre>title GParted\r\nmap --mem (hd0,0)\/\/Images\/gparted-live.iso (hd32)\r\nmap --hook\r\nchainloader (hd32)\r\nrootnoverify (hd32)<\/pre>\n<p>The ISO names must match what&#8217;s in \/images, and I&#8217;d avoid putting spaces in the names too.\u00a0 <span style=\"color: #800000;\"><span style=\"text-decoration: underline;\"><strong>The usual disclaimer applies: I figured this out by trial and error but it worked fine for me.<\/strong><\/span><\/span><\/p>\n<p>Super Grub ended up working and saving the day!\u00a0 GParted, not so much&#8230; I had to put it on a CD to get it to fully work.\u00a0 This is no fault of GParted&#8230; as far as I can tell the same problem would affect ANY partition tool. GParted actually got stuck in a repeating loop of attempting to mount a drive and I think it had to do with how the boot process involved resetting the USB hub (thus resetting the flash drive).\u00a0 Other partition managers that pass through a USB stage also experienced the same issues.\u00a0 Booting GParted from the CD-RW appears to avoid all that.\u00a0 I had the same problem when I attemtped to mount and install the Ubuntu 9.04 ISO from that USB drive today&#8230; it worked fine from a DVD.\u00a0 So, while this method works in theory it may not always be practical given the limitations of booting from USB.<\/p>\n<p>What&#8217;s nice is that once I have a small stable of utilities like this I can eventually burn the whole thing onto a DVD for near-universal usage (even on machines that won&#8217;t boot from flash).\u00a0 Pretty handy!\u00a0 \ud83d\ude42<\/p>\n<p><em><strong>Update: <\/strong><\/em>there are better ways to do this menu thing I&#8217;m sure&#8230; and apparently the CD ISO uses an entirely different menu system for some reason.\u00a0 So at a minimum \/BCDW\/BCDW.INI also needs to be updated (but I&#8217;m not yet sure what that should look like).<\/p>\n<!-- wpsso rrssb get buttons: buttons on archive option not enabled -->\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been fiddling with making bootable flash drives lately, via UBCD4Win for the most part.\u00a0 It&#8217;s actually come in handy a few times in the last month alone and the <a href=\"https:\/\/www.falatic.com\/index.php\/7\/fun-with-bootable-flash-drives\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":"","_links_to":"","_links_to_target":""},"categories":[1],"tags":[13,17,14,18,16,12,19,15],"class_list":["entry","author-marty","has-more-link","post-7","post","type-post","status-publish","format-standard","category-uncategorized","tag-flash-drives","tag-gparted","tag-removable-bit","tag-super-grub","tag-uac","tag-ubcd4win","tag-ubuntu","tag-vista"],"_links":{"self":[{"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":0,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}