How I installed CF Memory card:


The only place I found that has this ready made SCSI to CF card adapter is eBay.. The seller's name is "artmix" and he is the only one that has this card. The card says it is made by Stratos Technology INC. I couldn't find any info on this company. Artmix also sells the 2.5 TO 3.5 inch hard disk adapter separately.

CF memory cards range in size up to 32 gigabytes. Since I was only using 67% of my 1 gigabyte hard disk I decide that 2 gigabytes would last a long time. I chose the Transcend 2 gigabyte industrial card. I searched data sheets for several CF cards and although the Transcend card is quite expensive for its size it has a 2,000,000 Program/Erase endurance. That's very, very important when using the card as a disk drive. All CF memory cards will eventually fail to write so having a high endurance is important.



You'll have to format the CF card before it will be recognized by the Mac. My B&W G3 mac uses OSX. I just had to plug my memory card reader/CF card into the USB slot and use OSX's disk formatting program to initialize the card to Classic Mac OS. Don't use the extended Classic OS. Now remove the CF card install it into the SCSI/CF adapter, set sthe SCSI ID. I used SCSI ID 1. Remove your old hard disk and install the SCSI/CF adapter. Once I did that the LC 475 could detect the card with both my patched Apple HD SC Setup and Lido 7.56. I have OS 7.5.3 on floppy and used the patched Apple HD SC Setup to partition the drive. I gave the Mac OS 40 megs of space added a 4 meg AU/X swap partition and the rest of the CF card is AU/X root/usr partitioned.

Once the CF card is partitioned you can install the Mac OS onto the card. I used the floppy "Easy Install" for MacOS 7.5.3. After installing the OS from the 16 floppy disks, I shut down the computer and rebooted. It worked perfectly. I now had my LC 475 working with the CF memory card.

I didn't see any reason to upgrade from NetBSD 1.6.2 to the newer version 4.?.?. Everything was working properly with the version I was using. I'd built several programs from the source code, Apache, Perl, Wget and eBlah to name a few. I didn't feel like going through that again just to have the latest version of NetBSD. So, this is how I copied the system from my hard disk to the CF card:

Attach a 2 device SCSI cable to the LC 475. Put the old hard drive set to a SCSI id of 0 as the first device on the cable. Put the CF adapter as the final device. The CF adapter doesn't come with any instructions and when I put the CF adapter as the first device it wouldn't see the hard disk. That is because the CF adapter is terminated and I couldn't figure out how to remove the termination. Leave the SCSI ID on the CF adapter to 1. When the Mac Boots it will load the lowest SCSI device with an OS on it. So, boot from the old Hard disk. The Old hard disk also has the NetBSD MKFS, Installer and Booter which you will need. You also need to install these programs onto the MacOS on the CF drive.

If everything went okay you should have booted with MacOS on your old hard disk and you should see the icon for your CF drive on your desktop. At this point we're going to copy NetBSD from your hard disk onto your CF drive.

Run the MKFS program to format your Swap partition and your Root/Usr partition. *Caution* Make sure you selected your CF card device or you will format your hard disk. When that's completed run the NetBSD installer program. This is where this proceedure differs from the normal NetBSD install. When in the installer run "Build Devices" from the File menu. This will create the device files. Copying them from the old disk to the CF doesn't work..Use the installer to create them. when finished you can run mini-root from the File menu and you'll see it has created the /dev directory along with /etc, /proc and others. If you were to run "Build Devices" after copying the files off your old hard disk it would overwrite your /etc file. That's why I ran it first.

Now is the time to boot into your NetBSD system on your old hard disk. and begin the copying. Once booted and logged in as "root" you're ready to begin:

type "cd /" note: change directory to your root directory

type "mkdir cf" note: make a directory for your CF card

type "mount /dev/sd1a /cf" note: assuming your scsi device id was 1

type "cd /cf" note: change directory to the CF directory

type "ls -l" note: you should see the same directories that were created with "Build Devices". This assures we're in the right place.

We're ready to begin copying my initial idea was just to type "cp -R -p / *" and sit back. However, since the directory "CF" would also be copied it would create an endless loop until the CF card filled up and it would destroy my /dev files. So, I decided to copy the directories one at a time. that would be /root, /home, /apache, /usr, /bin /etc, etc.... That's when I discovered a little problem with the CF card. If I tried copying too much I'd get a FIFO overflow message. Evidently there isn't a very big RAM buffer on the CF adapter. So, I had to take everything is smaller chunks. I was able to copy every directory except /usr with 1 copy message per directory. I kept doing an "ls" on the new and old directories to be sure everything was coming out the same. I made the /usr directory and was able to copy the /usr directory from the old hard disk one directory at a time. You also don't want to copy /proc, /dev and any directories created by make devices except /etc.

type "cp -R -p /"directory_name" ." Note: repeat this for every directory except /usr. Be sure to use capital "R" or symbolic links wont be created.. The "-p" option on cp make the copy command retain permissions and time stamps. The /tmp directory doesn't retain the sticky bit so type "chmod +t /tmp". As mentioned don't copy any directories created by "build devices" except the /etc directory.

Anyway I hope you get the idea, just clone your old system onto the CF card doing the "cp" command. If you make a mistake or break the cp process or get a FIFO overflow message just type "cp" again and if the FIFO overflows pick smaller chunks to copy.

. When you've completed this you're ready to boot your new system. If you boot the new system from your old disk you will get several errors and traps. So, I would shutdown. Make sure the NetBSD booter program is loaded onto your MacOS on your CF card first. Disconnect your old drive. Reboot! Once the MacOS loads run the NetBSD booter program, select boot from SCID 1, unless you used some other SCSI ID and you should boot to your new CF card and you're ready to go......