{"id":539,"date":"2013-07-14T09:00:28","date_gmt":"2013-07-14T14:00:28","guid":{"rendered":"http:\/\/appleii.ivanx.com\/a2cloud\/?p=539"},"modified":"2023-09-10T11:48:35","modified_gmt":"2023-09-10T16:48:35","slug":"use-disk-images","status":"publish","type":"post","link":"https:\/\/appleii.ivanx.com\/a2cloud\/use-disk-images\/","title":{"rendered":"15. Use disk images"},"content":{"rendered":"<p>Once you&#8217;ve <a title=\"A2CLOUD: browse &amp; download\" href=\"https:\/\/appleii.ivanx.com\/a2cloud\/a2cloud-browse-and-download\/\">downloaded stuff to your P<\/a>i, or <a title=\"A2CLOUD: make a floppy or image\" href=\"https:\/\/appleii.ivanx.com\/a2cloud\/a2cloud-make-a-floppy\/\">copied stuff on to it from another computer on your network<\/a>, you can <a title=\"A2CLOUD: \u201cinsert\u201d a disk image\" href=\"https:\/\/appleii.ivanx.com\/a2cloud\/a2cloud-insert-a-disk-image\/\">immediately use the\u00a0<code>vsd1<\/code>\u00a0or\u00a0<code>vsd2<\/code>\u00a0commands<\/a> for an uncompressed disk image file (.DSK, .DO, .PO, .RAW, .HDV, .2MG. ISO) containing ProDOS files, and then access them from your Apple II. The image file will be &#8220;inserted&#8221; into virtual drive 1 or 2, and accessible from VSDRIVE at S2,D1 or S2,D2.<\/p>\n<p>If what you download is an archive file (.SHK, .SDK, .BXY, .ZIP, .TAR.GZ, etc.), you&#8217;ll need to expand it first, which you can read about how to do in the next post.<\/p>\n<p>If you&#8217;re not sure whether the disk image you downloaded is ProDOS format or not, you can type\u00a0<code>a2cat imageFileName<\/code>\u00a0on your Pi, and it will catalog the disk and tell you the format at the bottom of the listing.<\/p>\n<p>If it&#8217;s a DOS 3.3 disk, you can type\u00a0<code>dos2pro imageFileName<\/code>\u00a0to copy the files to a new ProDOS \u00a0image, or\u00a0<code>dos2pro imageFileName DOSFILENAME<\/code>\u00a0to copy a single file. Some programs may not work when copied to ProDOS.<\/p>\n<p>Or, you can use ADTPro to transfer the image file to a floppy disk.\u00a0To make a disk image available to ADTPro, you need to move it into into the ADTPro disk images directory (\/usr\/local\/adtpro\/disks) by typing\u00a0<code>forfloppy imageFileName<\/code>. To access the files inside that directory, you can also refer to it as $ADTDISKS (e.g.\u00a0<code>ls $ADTDISKS<\/code>).<\/p>\n<p>You can also use\u00a0<code>vsd1<\/code>\u00a0or\u00a0<code>vsd2<\/code>\u00a0for non-ProDOS disks, but you won&#8217;t be able to access them from within ProDOS. However, you can use a ProDOS utility which knows how to access the format (e.g. System Utilities can copy files from DOS 3.3 and Pascal disks).<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\">Some commands for working with Apple II disk images:<\/span><\/p>\n<p><code>mkpo -b totalBlocks newImageFileName PRODOS.VOL.NAME<\/code>\u00a0will make a new disk image that has the capacity specified in\u00a0<code>totalBlocks<\/code>. (A block is 512 bytes, or half a KB.) The maximum block count is 65535, though if you plan to use the disk image with VSDRIVE, a realistic maximum is 8192. If you omit\u00a0<code>-b totalBlocks<\/code>, you&#8217;ll get an 800K disk image, unless your image name ends in &#8220;.dsk&#8221;, in which case you&#8217;ll get a 140K disk image. You can also omit\u00a0<code>PRODOS.VOL.NAME<\/code>\u00a0to get an untitled disk image.<\/p>\n<p><code>dopo imageFileName<\/code>\u00a0will convert a DOS-ordered 140K disk image to a ProDOS-ordered image, or vice-versa. The original ordering will not be kept.<\/p>\n<p><code>acmd<\/code>\u00a0will do lots of stuff with Apple II disk images (many formats, including ProDOS, DOS 3.3, and Pascal, are supported). Type\u00a0<code>acmd<\/code>\u00a0by itself to see usage; syntax for copying files in and out of images will be mentioned in the next post on transferring things to your Apple II. (<code>cppo<\/code>\u00a0is an alternative, but it&#8217;s even slower. It does preserve dates, however.)<\/p>\n<p><code>$VSD1<\/code>\u00a0and\u00a0<code>$VSD2<\/code>\u00a0can be used in commands to refer to the disk images assigned to virtual drives 1 and 2, rather than typing out the full path.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Once you&#8217;ve downloaded stuff to your Pi, or copied stuff on to it from another computer on your network, you can immediately use the\u00a0vsd1\u00a0or\u00a0vsd2\u00a0commands for an uncompressed disk image file (.DSK, .DO, .PO, .RAW, .HDV, .2MG. ISO) containing ProDOS files, and then access them from your Apple II. The image file will be &#8220;inserted&#8221; into [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5,2,4],"tags":[],"_links":{"self":[{"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/posts\/539"}],"collection":[{"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/comments?post=539"}],"version-history":[{"count":10,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/posts\/539\/revisions"}],"predecessor-version":[{"id":870,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/posts\/539\/revisions\/870"}],"wp:attachment":[{"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/media?parent=539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/categories?post=539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appleii.ivanx.com\/a2cloud\/wp-json\/wp\/v2\/tags?post=539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}