• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

Transferring Files between Linux and OS 9 via ZuluSCSI

cobalt60

Well-known member
Looking for an easy way to transfer files between my Linux desktop and my 7300 running OS 9.1, and was hoping to utilize my ZuluSCSI for this by transferring the SD card back and forth. However, I have not had much luck. Anyone else try to do this? What was your work flow?

I have had a wide variety of issues that are almost too hard to list them all. I've mounted the HFS on Linux, which appeared to work, but was presented with a text file saying something like "for security, MacOS is not allowing you to view these files". I think I have also successfully viewed and copied files from the HFS volume to Linux on another occasion though, so not sure what the difference was (I think the OS 8.6 image was readable but 9.1 gave that message).

I don't think I've ever copied to an HFS volume. I get a write permission error if its on the SD card. If I copy the HFS img to the Linux PC, then I think I can copy files to that image, but then when I copy it back to the SD card, MacOS doesn't see any of the files on it and wants to just initialize it.

Ive tried ext2, with the MountX extension, but it never mounted on OS 9. I think Ive tried FAT32 and exfat and they also dont seem to mount on OS 9 either, but Ive tried so many different combinations with varying degrees of "success" I can't really remember any more.

So, if someone has done what I am trying to do, I'd love to hear how you did it.
 

Phipli

Well-known member
You are using image files placed on the SD card aren't you? You didn't mention image files in your post, so just checking.
 

AndiS

Well-known member
It "should" work as you describe but I always go through an emulator where I mount the image from the SDcard. It's much easier to preserve the File Forks that way.

Basilisk2 SheepShaver, Minivmac.. pick one
 

cobalt60

Well-known member
You are using image files placed on the SD card aren't you? You didn't mention image files in your post, so just checking.
Yep image files. I've so far tried HFS, HFS+, ext2, FAT32, and exfat as .img files. I haven't tried .iso or any CD formats.

I always go through an emulator where I mount the image from the SDcard. It's much easier to preserve the File Forks that way.
Cool will try that
 

Phipli

Well-known member
Yep image files. I've so far tried HFS, HFS+, ext2, FAT32, and exfat as .img files. I haven't tried .iso or any CD formats.
I don't quite understand what you're doing with all the different disk formats, so I'll just say what I think you should do.

Set up Basilisk II. Get it booting.
Download the linked images.
They are preformatted with the correct disk drivers.
Copy one and load it up as a second disk in Basilisk II.
Copy the files you want onto it using Basilisk II. Install a copy of Mac OS if needed. Using Basilisk II it will probably need to be 7.5.3 and select "for any macintosh" to ensure it can boot your PPC. Shutdown Basilisk II.
Format the SDCard as exFAT
Copy the disk image onto it and name it "HD#.hda" I think it is? Where # is the SCSI ID you want to use, which doesn't conflict with other used SCSI IDs.

Move the card to your old mac.

Edited to link to old post with blank images.
 
Last edited:

cobalt60

Well-known member
I don't quite understand what you're doing with all the different disk formats, so I'll just say what I think you should do.
Basically hoping one of them will be readable by OS9, which I've read should recognize FAT32, exfat, and certainly it can recognize HFS. I also have an extension which is supposed to allow it to mount ext2.
If it's not obvious, on my linux machine, I do something like this (let's assume the SD card is FAT32 and it contains an HD5.img which contains a working OS 9.1 install):

cd /mnt/ZuluSCSI_SDCard
touch HD1.img HD2.img HD3.img HD4.img
dd if=/dev/zero of=HD1.img bs=1M count=512
dd if=/dev/zero of=HD2.img bs=1M count=512
dd if=/dev/zero of=HD3.img bs=1M count=512
dd if=/dev/zero of=HD4.img bs=1M count=512
mkfs.exfat HD1.img
mkfs.fat HD2.img
mkfs.vfat HD3.img
mkfs.hfs HD4.img
sync
sudo umount /mnt/ZuluSCSI_SDCard

Then stick that into the Mac, it boots into OS 9. What I am hoping for is at least some of those to be recognized as valid file systems and mounted. What actually happens is none get mounted. Drive Setup shows the exfat and HFS+ images as not initialized, and the FAT and vFAT as not mounted (ok, how do I mount these?)

Alright so far nothing really worked. So on MacOS 9 I initialized HD1.img as HFS, and HD2.img as HFS+. For HD3.img, Drive Setup will allow me to initialize as all sorts of things like Mac UFS, but then they don't mount, so without knowing how to mount these, they are not useful to me at the moment. So anyway, I copy a folder to both the HFS and HFS+ drives, shutdown the computer, and move the SD card to my Linux machine.

sudo mount /mnt/ZuluSCSI_SDCard/HD1.img /mnt/hfs
sudo mount /mnt/ZuluSCSI_SDCard/HD2.img /mnt/hfsplus
cd /mnt/hfs
ls (everythings there!)
sudo touch test (it worked!)
cd /mnt/hfsplus
ls (everythings there!)
sudo touch test (permission denied, read only file system)

sync, unmount everything, put the SD card back into the Mac

Everything still works, and the test file is present on the HFS volume. Damn, this is progress... I think

Also of note; I have an SD card with an HD5.img which has OS 9.1. If I copy that to my Linux machine, then copy that to another SD card, and put it in the Mac. It will boot... extremely... slowly... So slowly I couldn't even wait for it to finish and who knows if it would have. However, if I use dd to copy the HD5.img to my Linux machine, and then dd to copy that to the new SD card, it works perfectly.
 
Last edited:
Top