• 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.

A/UX 3.1.1 Post Install Scripts

james_w

Well-known member
@MrFahrenheit I have a WGS 95 being delivered this Friday. The person who I've bought it off is ex-Apple and the WGS 95 was used inside Apple. It's got some assets stickers on it which is fun. Unfortunately upgraded to a WGS 9150, so I'll probably swap out the board for a 950 board. But no special cache/scsi PDS card :(

Lastly, no software at all or any other artefacts from their time at Apple. So I'm a bit jealous of what you have there in your hand!
 

MrFahrenheit

Well-known member
@MrFahrenheit I have a WGS 95 being delivered this Friday. The person who I've bought it off is ex-Apple and the WGS 95 was used inside Apple. It's got some assets stickers on it which is fun. Unfortunately upgraded to a WGS 9150, so I'll probably swap out the board for a 950 board. But no special cache/scsi PDS card :(

Lastly, no software at all or any other artefacts from their time at Apple. So I'm a bit jealous of what you have there in your hand!

I guess we are both a bit jealous of each others’s assets! Lol.

That AppleShare Pro you have… very rare and desirable.

Edit: Wait a minute... I'm pretty sure you have the A/UX 3.0.1 install media for the WGS95 machine. When I watched your stream with Mac84, you opened the box for me, and I was sure it had A/UX media inside the AppleShare Pro box...
 
Last edited:

nottomhanks

Well-known member
This is super interesting!! Would this work on a 68030 Mac (like an accelerated SE/30)? Or would that just be painful?
 

uyjulian

Well-known member
Here is an alternative method if you don't want to use filesystem sharing methods...

You can use a tar file as a disk image.

On the Linux or Mac side, create an empty disk image
Code:
truncate -s 512M image.dmg

In the A/UX side, for SCSI ID 1, something like
Code:
tar -cf - /absolute/or/relative/path/to/directory | dd of=/dev/dsk/c1d0s0

Shutdown the emulated system after that is done.

On the disk image, the tar data will end up at offset 0x19800 bytes (why?).

Then, on the Linux or Mac side, something like
Code:
dd if=image.dmg bs=1024 seek=102 | tar -xf - -C /absolute/or/relative/path/to/directory

If you want to do it the opposite way, make sure the tar program is generating compliant archives. One way to do this with GNU tar is with the "--portability" command line argument.


Another tidbit is that you can mount A/UX UFS (not SVFS) filesystems on Linux as read-only.

On the Linux or Mac side, create an empty disk image
Code:
truncate -s 512M image.dmg

In the A/UX side, for SCSI ID 1, create filesystem and mount it
Code:
newfs /dev/dsk/c1d0s0 Other
mkdir /mnt/disk_mount
mount /dev/dsk/c1d0s0 /mnt/disk_mount

Create a file, then unmount it
Code:
echo "Hello World" > /mnt/disk_mount/file.txt
umount /mnt/disk_mount


Shutdown the emulated system after that is done.

On the disk image, the filesystem data will end up at offset 0x19800 bytes (why?).

In the Linux side, mount the disk image (unfortunately read only), then print contents, then unmount
Code:
mkdir /mnt/disk_mount
mount -t ufs -o offset=104448,ufstype=old image.dmg /mnt/disk_mount
cat /mnt/disk_mount/file.txt
umount /mnt/disk_mount

More tidbits...

If you use e.g. /dev/dsk/c1d0s31 (SCSI ID is 1, slice is 31) then the offset will start at 0 instead of 0x19800 bytes. This means you can simply remove "offset" or "seek" options, reducing the complexity.
The tar data appears to be there immediately in the image and seems to work. But I'm not too sure about how caching is done and if it is safe to use the tar data or write new tar data there.

tar has 100 character limit, and can't save symbolic links or device nodes properly. cpio has 128 character limit.
Use the "pax" tool, which doesn't have these limits.
Code:
pax -w -p | dd bs=512 /dev/dsk/c1d0s31

You can use this as a primitive "file sharing" method.
 
Last edited:

uyjulian

Well-known member
More tidbits...

If you use e.g. /dev/dsk/c1d0s31 (SCSI ID is 1, slice is 31) then the offset will start at 0 instead of 0x19800 bytes. This means you can simply remove "offset" or "seek" options, reducing the complexity.
The tar data appears to be there immediately in the image and seems to work. But I'm not too sure about how caching is done and if it is safe to use the tar data or write new tar data there.

tar has 100 character limit, and can't save symbolic links or device nodes properly. cpio has 128 character limit.
Use the "pax" tool, which doesn't have these limits.
Code:
pax -w -p | dd bs=512 /dev/dsk/c1d0s31

You can use this as a primitive "file sharing" method.
Some mistakes in the command: file operand was missing and using rdsk is faster.
Code:
pax -w -p /path/to/directory | dd bs=16384 /dev/rdsk/c1d0s31
 
Last edited:

uyjulian

Well-known member
Some mistakes in the command: file operand was missing and using rdsk is faster.
Code:
pax -w -p /path/to/directory | dd bs=16384 /dev/rdsk/c1d0s31
Whoops, another mistake: forgot of=

Code:
pax -w -p /path/to/directory | dd bs=16384 of=/dev/rdsk/c1d0s31
 

emendelson

Active member
This is all just superb. Thank you a thousand times. One small detail for the wiki. I couldn't get optsw to mount because the wiki's instructions under step 5 doesn't have the full string that you have above:
mount -v /dev/dsk/c4d0s4 /mnt/optsw
 

dr.zeissler

Well-known member
Installing and setting up AUX will be something I would like to do to. LC475 does not work on this even with a full 040, but I have a Quadra610 (not used yet) and a Quadra700 which I am currently setting up via bluescsi because the internal SCSI HDD had some serious issues. My Q700 has a nubus 386 OrangePC and a PPC601 card. Currently I have setup 7.1.2 with the possibility to use the PPC card and I am currently setting up the PC-Section. AFAIK I can install AUX after macos7. my first hdd on Bluescsi is 500MB with 125MB System7, 125MB System8 (not installed jet) 256 Slice3 AUX (not installed).

Which AUX should I use and will there be problems if I activate the PPC card in that machine?

Doc
 

zigzagjoe

Well-known member
Installing and setting up AUX will be something I would like to do to. LC475 does not work on this even with a full 040, but I have a Quadra610 (not used yet) and a Quadra700 which I am currently setting up via bluescsi because the internal SCSI HDD had some serious issues. My Q700 has a nubus 386 OrangePC and a PPC601 card. Currently I have setup 7.1.2 with the possibility to use the PPC card and I am currently setting up the PC-Section. AFAIK I can install AUX after macos7. my first hdd on Bluescsi is 500MB with 125MB System7, 125MB System8 (not installed jet) 256 Slice3 AUX (not installed).

Which AUX should I use and will there be problems if I activate the PPC card in that machine?

Doc
This website has a lot of useful info: https://www.aux-penelope.com/hardware.htm

I think you want A/UX 3.x. The PPC card will not work, A/UX is very picky about hardware and only works with a very small subset of accelerators that are transparent to the OS. At this time I only know it to be confirmed working with DiiMOCache for SE/30, and possibly the Interware booster.
 

dr.zeissler

Well-known member
OK, thx, If I remember that correctly AUX boot's System7 so no use of PPC card with System7 anymore when installing AUX?
 

zigzagjoe

Well-known member
OK, thx, If I remember that correctly AUX boot's System7 so no use of PPC card with System7 anymore when installing AUX?
Right. You need to boot in 68k mode to the macpartition to boot into A/UX, ditto need to be in 68K mode to boot off the floppy to begin the A/UX install process.
 
Top