{"id":9423,"date":"2011-10-11T07:00:00","date_gmt":"2011-10-11T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2011\/10\/11\/why-does-copying-a-file-to-my-usb-thumb-drive-say-that-the-parameter-is-incorrect\/"},"modified":"2011-10-11T07:00:00","modified_gmt":"2011-10-11T07:00:00","slug":"why-does-copying-a-file-to-my-usb-thumb-drive-say-that-the-parameter-is-incorrect","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20111011-00\/?p=9423","title":{"rendered":"Why does copying a file to my USB thumb drive say that the parameter is incorrect?"},"content":{"rendered":"<p>\nConsider the following sequence of operations, assuming that F: is a\nUSB thumb drive with plenty of disk space.\n<\/p>\n<pre>\nC:\\Users\\Bob\\Downloads&gt; copy readme.txt F:\\\n        1 file(s) copied.\nC:\\Users\\Bob\\Downloads&gt; copy Update.iso F:\\\nThe parameter is incorrect.\n<\/pre>\n<p>\nWhy is the second file copy failing?\n<\/p>\n<p>\nThe hint is the file extension: *.iso, which suggests that this\nis a CD or DVD image, and DVD images have the feature that they\ntend to be really big.\n<\/p>\n<p>\nLike more than\n4<a HREF=\"http:\/\/blogs.msdn.com\/oldnewthing\/archive\/2009\/06\/11\/9725386.aspx\">GB<\/a>\nbig.\n<\/p>\n<p>\nUSB thumb drives tend to be formatted with the FAT32 file system\nrather than\n<a HREF=\"http:\/\/blogs.msdn.com\/oldnewthing\/archive\/2004\/04\/05\/108205.aspx\">\nwith NTFS<\/a>.\nAnd\n<a HREF=\"http:\/\/support.microsoft.com\/kb\/314463\">\nFAT32 has a maximum file size of 4GB minus one byte<\/a>.\n<\/p>\n<p>\nThe user confirmed that the <code>Update.iso<\/code> file was\nlarger than 4GB and that the USB thumb drive was formatted as FAT32.\n<\/p>\n<p>\nMind you, the error message doesn&#8217;t help at all in identifying\nthat this is what&#8217;s going on.\nI don&#8217;t know where it&#8217;s coming from, but my guess is that\nsomewhere inside the <code>copy<\/code> command, it tries to create\nthe destination file and set its file size.\nSince the file size is out of range for FAT32, the call fails\nwith the error <code>ERROR_INVALID_PARAMETER<\/code>,\nand that&#8217;s what ends up bubbling out to the user.\n<\/p>\n<p>\nBut at least now you know what the confusing error message is trying\nto tell you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Consider the following sequence of operations, assuming that F: is a USB thumb drive with plenty of disk space. C:\\Users\\Bob\\Downloads&gt; copy readme.txt F:\\ 1 file(s) copied. C:\\Users\\Bob\\Downloads&gt; copy Update.iso F:\\ The parameter is incorrect. Why is the second file copy failing? The hint is the file extension: *.iso, which suggests that this is a CD [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-9423","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>Consider the following sequence of operations, assuming that F: is a USB thumb drive with plenty of disk space. C:\\Users\\Bob\\Downloads&gt; copy readme.txt F:\\ 1 file(s) copied. C:\\Users\\Bob\\Downloads&gt; copy Update.iso F:\\ The parameter is incorrect. Why is the second file copy failing? The hint is the file extension: *.iso, which suggests that this is a CD [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/9423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=9423"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/9423\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=9423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=9423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=9423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}