dcopy for Mac? (Emulation MSX Fora)MSX Resource Center MSXdev 2008 - MSX1 development bonanza!           
            
English Nederlands Español Português Russian         
 Nieuws
   Voorpagina
  Nieuws archief
  Nieuws onderwerpen

 Informatie
   MSX Fora
  Artikelen
  Recensies
  Beursverslagen
  Fotoreportages
  Beurzen en meetings
  Enquêtes
  Links
  Zoek

 Software
   Downloads
  Webshop

 MRC
   Wie we zijn
  Kom bij ons team
  Doneren
  Policies
  Contact met het MRC
  Link naar Ons
  Statistieken

 Zoek
 
  

  

 Login
 

Gebruikersnaam

Wachtwoord




Ben je nog niet lid? Klik hier en word MSX vriend!


 Statistieken
 

Er zijn 46 gasten en 2 MSX vrienden online

Je bent een anonieme bezoeker.
 

MSX Fora


MSX Fora

Emulation - dcopy for Mac?

Schrijver

dcopy for Mac?

Mirg
msx lover
Berichten: 84
Geplaatst: 12 September 2005, 18:10   
Is there a utility that works like dcopy for Macs? I have an external diskdrive for my Mac, and it seems to read my 2DD disks just fine. Problem is, I don't really know how to copy .DSK files to disk so that my MSX can read them.

Any tips?
manuel
msx guru
Berichten: 3451
Geplaatst: 12 September 2005, 19:51   
If you're using Mac OS X, you can probably use the unix methods described on the http://faq.msxnet.org/
BodyHammeR
msx addict
Berichten: 487
Geplaatst: 12 September 2005, 20:40   
He propably means either:

dd if=dev/fd0 of=mirg.dsk

or

cat /dev/fd0 > mirg.dsk


Mirg
msx lover
Berichten: 84
Geplaatst: 12 September 2005, 20:54   
Thanks, found exactly what I needed.

Just trying to cat a DSK to the USB drive didn't work, but trying to compile the openMSX snapshot yielded a treasure of UNIX "knowledge", so I figured out how to get the thing working by myself. So... For anyone using Mac OS X with a USB diskdrive:

- Connect your USB diskdrive and insert a floppy
- Open up the terminal
- Type: mount
- Check how the drive got named. Mine's "/dev/disk1"
- Type: sudo umount /dev/disk1

It's important to unmount the diskdrive like this. If you unmount the drive using the Finder, it will remove /dev/disk1 completely. If you don't unmount the drive at all, everything you try to do with it will only yield a "Resource busy" error.

Now...

To copy a DSK imagefile to a real disk:

- Type: cat /path/to/image.dsk > /dev/disk1

And to create a DSK imagefile from a real disk:

- Type: cat /dev/disk1 > /path/to/image.dsk
msxgamesbox
msx freak
Berichten: 222
Geplaatst: 12 September 2005, 22:19   
Why make it so complicated? You just have to open the DSK files using either DiskCopy (OS 9) or Disk Utility (OS X)... then drag and drop the files on your real floppy.
--------------------------------------------------------------------------------------------

How to open Disk Images and copy / delete files on it?

OS 9: You need Apple's DiskCopy 6.3.3, an empty disk image (download) and ideally use a HexEditor like BrainHex (Shareware)

Open the empty disk image (empty.dsk) with DiskCopy. Copy / Delete the files you want to it. Unmount.
Your file is very likely to work with fMSX Mac but since OS 9 ads a 4Kb resource fork to the file when mounting / unmounting it, it becomes unreadable on PC emulators like BlueMSX...
There is a trick, once your image unmounted (meaning when you are sure you will not amend the files on it anymore) - open the Data Fork of your disk image with BrainHex (not the resource fork!) and save your file as... this will bring it back to 720Kb (737280 bytes) so it becomes recognised by *all* MSX emulators cross-platforms.


OS X: You need Apple's Disk Utility (you'll find it in Applications/Utilities) and an empty disk image (download).

First replace your disk image extension .dsk by .dmg - then launch Apple's Disk Utility and open the file from the Images/Open menu. This will mount the image on your desktop. Put the files you want on it. Unmount and rename your file with the .dsk extension. Fairly easy and it works!
If you have an problems with this method you can also try the OS 9 methodology in working in Classic mode. One thing though, you need to rename your .dsk file to .img before you can open it with DiskCopy!
Mirg
msx lover
Berichten: 84
Geplaatst: 13 September 2005, 15:57   
I can't get the disk-image (renamed to .dmg, although) to mount properly in Disk Utility somehow. It keeps telling me I should try to run First Aid to repair the image.

Ah well, I can copy disk-images to and from my 2DD disks just fine with cat. I don't copy that much anyways.
 
 







(c) 1994 - 2008 Stichting MSX Resource Center. MSX is een trademark van MSX Licensing Corporation.