Serial ports and mounting disks

William Roberts liam at cs.qmw.ac.uk
Thu Mar 8 05:17:28 AEST 1990


In article <12315 at thorin.cs.unc.edu> certain at vangogh.cs.unc.edu () writes:
>I have a Mac/OS program that controls the serial ports in what is probably
>a low-level way.  The product is called Teleflex and it is a voice-mail
>machine for your Mac.  When I run it, it says "checking hardware connections"
>and then stalls.  I assume it's trying to access the hardware unit
>connected through the serial ports, and A/UX won't let it.  Any ideas?

No chance. You should rework your code for A/UX to use more
conventional UNIX techniques namely opening /dev/printer or
/dev/modem (otherwise known as /dev/tty0 and /dev/tyy1) and
using ioctl calls to set baud rate etcetera. You'll hate it but
A/UX is never going to let you see the hardware. A more
Macintosh solution is to rewrite your Mac stuff for the Comms
Toolbox and hope that A/UX gets Comms Toolbox emulation (though
without your support contract you probably won't get such a new
version...).

>The other question which probably has an obvious answer is how do you
>mount a disk in single-user mode?

Easy. Type the commands

        pname -a
        mount -at 5.2

to get all of the normal filesystems mounted (except NFS ones,
but you'd need to do various other things to get your machine
ready for those). A cautious person would probably run fsck
before the second command to make sure the filesystems were OK,
but isn't life boring if we never take chances...

>Thanks for any help,
>                   Andrew Certain
>                   certain at cs.unc.edu

No problem, other than the fact that about 1/3rd of the
messages that I see on this group actually come from me or my
colleagues! Is there a lot of stuff over in the US that doesn't
make it across the Pond, or does nobody read this group?
-- 

William Roberts                 ARPA: liam at cs.qmw.ac.uk
Queen Mary & Westfield College  UUCP: liam at qmw-cs.UUCP
Mile End Road                   AppleLink: UK0087
LONDON, E1 4NS, UK              Tel:  01-975 5250 (Fax: 01-980 6533)



More information about the Comp.unix.aux mailing list