[comp.sys.mac.programmer] Any way to NOT mount SCSI drive 0?

mxmora@unix.SRI.COM (Matt Mora) (05/10/91)

Is there a way to get the internal hard disk not to mount?
What we need to do (government security reasons) is have some init
or program not mount the internal hard disk.

Here is the scoop:

Let's say I have a mac with a internal hard disk and external removeable media
drive. Now I set the exernal to be the startup device, can I do something
via software to make the internal drive NOT mount? Can an init be written to 
unmount a scsi device or to prevent a device from mounting?

The other solution is to put a switch in the inernal hard disk's power
connection. Not an optimal solution.

Thanks 

Matt Mora
-- 
___________________________________________________________
Matthew Mora                |   my Mac  Matt_Mora@sri.com
SRI International           |  my unix  mxmora@unix.sri.com
___________________________________________________________

russotto@eng.umd.edu (Matthew T. Russotto) (05/10/91)

In article <24138@unix.SRI.COM> mxmora@sri-unix.sri.com (Matt Mora) writes:
>Here is the scoop:
>
>Let's say I have a mac with a internal hard disk and external removeable media
>drive. Now I set the exernal to be the startup device, can I do something
>via software to make the internal drive NOT mount? Can an init be written to 
>unmount a scsi device or to prevent a device from mounting?

Unmounting one is simple-- you can call Unmountvol.  If you don't want the
internal to be mountable, you really have to catch it before INIT time--
you have to make sure the driver is not loaded.  What you can do is check to
see if the driver for your internal drive is loaded, and if so, corrupt some
of the signature bytes in the partition map (or perhaps Block 0) on the
SCSI device itself (not going through the driver).  Then restart the system.

Note that this isn't really very secure.
--
Matthew T. Russotto	russotto@eng.umd.edu	russotto@wam.umd.edu
     .sig under construction, like the rest of this campus.

brad@aero.org (Bradley A. West) (05/10/91)

In article <24138@unix.SRI.COM> mxmora@sri-unix.sri.com (Matt Mora) writes:
>Is there a way to get the internal hard disk not to mount?
>What we need to do (government security reasons) is have some init
>or program not mount the internal hard disk.
>
>Here is the scoop:
>
>Let's say I have a mac with a internal hard disk and external removeable media
>drive. Now I set the exernal to be the startup device, can I do something
>via software to make the internal drive NOT mount? Can an init be written to 
>unmount a scsi device or to prevent a device from mounting?

Buy a copy of SilverLining; lets you specify whether or not you want
the disk mounted by default.  I believe the government
security reasons of which you speak would require something stronger
than an INIT.  SilverLining lets you specify a mounting password as well; the
next best thing to unplugging your internal SCSI cable.

Brad

Brad West                 "They say the secret of success is being
brad@aerospace.aero.org   at the right place at the right time.
bwest@nunki.usc.edu       But since you never know when the right
                          TIME is going to be, I figure the trick
                          is to find the right PLACE and just hang
                          around!"  -  Calvin