{"id":136,"date":"2018-12-30T19:55:47","date_gmt":"2018-12-30T19:55:47","guid":{"rendered":"https:\/\/immerhax.com\/?p=136"},"modified":"2019-01-01T12:28:37","modified_gmt":"2019-01-01T12:28:37","slug":"converting-a-t64-file-to-d64-in-linux-ubuntu","status":"publish","type":"post","link":"https:\/\/immerhax.com\/?p=136","title":{"rendered":"Converting a T64 file to D64 in Linux (Ubuntu)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">So I had a lot of Commodore 64 games saved as T64 &#8220;images&#8221; which is very space conserving. I however had to use these on a SD2IEC which does not support T64, so the obvious choice was to convert them to D64, although it takes more space (as each D64 is a disk image, whatever remaining space there will be, will be &#8220;slack&#8221; space). Anyways, who cares about space in the age of 100&#8217;s of GB SD cards costing $20. The &#8220;best&#8221; option I guess would be to directly extract the PRGs but I haven&#8217;t gotten to that, and this page is more or less a reminder to myself&#8230; Anyways, I started to go through the internet to find a quick solution to convert all these games, and I found a lot of different options, mainly Windows stuff that would need to run in wine and most likely be non-scriptable to extract. Some mentioned <strong>c1541<\/strong> which is a part of the <strong>VICE<\/strong> project, which is included in many Linux distros. As I use Ubuntu, this was also the case, so <strong>apt-get install vice<\/strong>, and it&#8217;s in. c1541 starts a &#8220;shell&#8221; to take commands in, but they can also be given directly from the command line. So without further ado, the one-liner that converts a .T64 file to a .D64 is:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">c1541 -format &lt;DISKLABEL&gt;,00 d64 &lt;DSTFILENAME&gt;.D64 8 -tape &lt;SRCFILENAME&gt;.T64<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>&lt;DISKLABEL><\/strong> should be replaced with the desired label name of the disk.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>&lt;DSTFILENAME><\/strong> is the D64 filename (without the .D64 suffix).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>&lt;SRCFILENAME><\/strong> is the source filename of the T64 (without the .T64 suffix).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example (for Blue Max):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">c1541 -format BLUEMAX,00 d64 BLUEMAX.D64 8 -tape BLUEMAX1.T64<br><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This yields:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Unit: 0<br>Formatting in unit 8...<br>Writing `blue max+' ($0801 - $5618) to drive 8.<br>Writing `blue max spic' ($0801 - $1A1A) to drive 8.<br>Writing `blue max+ crazy' ($0801 - $6324) to drive 8.<br><br>3 files copied.<br><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">And we&#8217;re good! Gonna look into the direct to PRG stuff&#8230;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I had a lot of Commodore 64 games saved as T64 &#8220;images&#8221; which is very space conserving. I however had to use these on a SD2IEC which does not support T64, so the obvious choice was to convert them to D64, although it takes more space (as each D64 is a disk image, whatever &hellip; <a href=\"https:\/\/immerhax.com\/?p=136\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Converting a T64 file to D64 in Linux (Ubuntu)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-136","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/immerhax.com\/index.php?rest_route=\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/immerhax.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/immerhax.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/immerhax.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/immerhax.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=136"}],"version-history":[{"count":2,"href":"https:\/\/immerhax.com\/index.php?rest_route=\/wp\/v2\/posts\/136\/revisions"}],"predecessor-version":[{"id":138,"href":"https:\/\/immerhax.com\/index.php?rest_route=\/wp\/v2\/posts\/136\/revisions\/138"}],"wp:attachment":[{"href":"https:\/\/immerhax.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/immerhax.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/immerhax.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}