FS-UAE & real Amiga hard drives on OS X [Solved]
In FS-UAE, is there a way to mount real Amiga hard drives? (like in WinUAE)
If not, are there any plans to add support for this in the future? |
It doesn't directly support this, and I have deliberately avoided to add too much functionality which depends on OS-specific code.
But it works on Linux because the device can be opened as a file... It would also (probably) work on OS X for the same reason, except that OS X does not return a file size for the device (I checked this when another OS X user asked the same question). It may work by simply #ifdef'ing in a couple of OS X ioctls to get the size of the device when trying to open the hard drive device as a file. |
See http://eab.abime.net/showthread.php?t=65366 for more information.
But as I indicated, a fix for OS X may be really simple. Perhaps you can compile / try it out if a give a couple of pointers / code to insert? It will require that you give your user access to the raw device, and it would be a good idea to have a backup of the HD ;) |
1 Attachment(s)
Hi Frode,
attached you'll find a patch to correctly determine the size of block devices on osx. With this patch applied you can boot/use a "raw" hdf on e.g. a sd-card. Note that your user must be a member of the group "operator" to access the block device read-only. For write access you have to modify the device's permissions... |
Great! Merged for inclusion in 2.1.15 :)
|
Could you check if 2.1.15 works as expected with block devices on OS X? Thanks.
|
I could test it too, but I need a little assistance how to do this.
|
You must first figure out what device your Amiga HD/CF is, say it is /dev/disk2...
Then, assuming this Amiga HD/CF has an RDB header, just use FS-UAE option hard_drive_0 = /dev/disk2 As noted in a previous post here, you must have permissions to use the device, for full read/write permissions, you can use something like: Code:
chmod a+rw /dev/disk2 Disclaimers: - I have not tried myself on OS X - Don't try to mount your system drives - The instructions may be incorrect - Make sure to have a backup (at least if you enable write access) |
This means I must prepare a SD Card on a real Amiga before I can use it it FS-UAE? Or could I use a plain SD Card and setup with AOS 3.1 (example) in FS-UAE?
|
How can I see, which /dev/... my SD Card is? Any Terminal command for this?
|
Quote:
Code:
hard_drive_0_type = rdb Quote:
Try the naive approach? Run Code:
ls /dev/disk* Alternatively, if it has an OS X-recognized file system, you can mount the card via "Finder" and use the following command in a terminal: Code:
df Edit: Looks like you can also run: Code:
disktool -l |
Command to list all drives is:
Code:
diskutil list Code:
/dev/disk0 |
Yes! It seems to be working fine. I just plugged in my Amiga-formatted flashdrive, put "hard_drive_0 = /dev/disk1" in the config file and it booted right up, all partitions visible.
Thanks lallafa and Frode! :cool Now I just need to find out why my IDE to USB adapter doesn't work. :banghead |
Have tried it and worked also for me.
One hint: The hard drive may not have any partition!! I must first kill all partitions on my SD Card before it worked! |
Quote:
Code:
/dev/disk1 (Sidenote: With FS-UAE you might also store a raw HDF (i.e. only a file system of a single volume) on the SD-Card (without any partitioning scheme!) and use this in FS-UAE but that disk won't work on a real machine and is somewhat pointless...) For creating a RDB paritioning scheme on OS X (and other OSes as well) I use (my own) rdbtool: Example: Code:
sudo ./rdbtool /dev/disk1 init + add size=50% bootable + add You can then use FS-UAE to format and fill the volumes inside the emulator. ... or use xdftool to copy Amiga files directly from OSX: Example: Code:
sudo ./xdftool /dev/disk1 open part=DH0 + repack myhdf.hdf Thats the way I use to quickly setup cards for real Amigas on my OS X console. |
The plain disk could also completely setup in FS-UAE (also with RDB). So I have made it.
It would be cool, if everyone write/has wrote a MacFUSE module for AmigaFFS. On Linux, AFFS should be supported built-in. |
Is it right, that one must redo the permission procedure everytime unplug/plug the disk to the mac, or is there a ability to give permanent read/write permission to the disk?
|
Hi I've got an Amiga partitioned CF disk with Workbench 3.0 installed (this was formatted through WINuae and boots natively in my stock os3.0 A1200), I'm trying to follow the instructions above to mount the drive in FS-UAE as i'd prefer to work on my Mac rather than boot into WINuae in my bootcamp partition, but am falling short of getting it recognised, I don't really understand unix commands through the terminal enough to work out what i need to do, and i'm afraid i'll likely do some irrepairable damage to my HD. I'm working on a Macbook Pro running 10.7.5.
Basically I was wondering if anyone has done an idiot proof guide for how to this? If not any help you can give will be hugely appreciated :) Cheers. |
The information is in this thread.
1. Connect your CF card, open Terminal and type "diskutil list". Take a look at which disk looks like your CF card (probably "/dev/disk1"). 2. Open the FS-UAE config file (/Documents/FS-UAE/Configurations/Default.fs-uae) and add the line "hard_drive_0 = /dev/disk1" (or disk2 or whatever your CF card was) I had a problem where my CF wasn't showing up at all in diskutil - but that was because my CF adapter was defective (cheap Chinese junk!). When you connect your CF, if you don't see the OSX "Disk Insertion" popup complaining that it was unreadable, then it probably wasn't detected. |
*** Deleted ***
|
All times are GMT +2. The time now is 15:54. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.