[comp.sys.mac] Is there a recoverable RAM disk for the Mac?

rothberg@rocky.STANFORD.EDU (Edward Rothberg) (10/23/87)

The header pretty much says it all.  I'm sick of RamStart.  One small
bug in a program and boom, the ram disk is gone.  Does anyone sell
a RAM disk which can survive a system error?  When I say survive, I mean
that it should do some sort of check to make sure that its data wasn't
corrupted (ie a checksum).  Any leads?

Ed Rothberg
rothberg@rocky.stanford.edu

sbb@esquire.UUCP (Stephen B. Baumgarten) (10/23/87)

In article <691@rocky.STANFORD.EDU> rothberg@rocky.STANFORD.EDU (Edward Rothberg) writes:
>
>The header pretty much says it all.  I'm sick of RamStart.  One small
>bug in a program and boom, the ram disk is gone.  Does anyone sell
>a RAM disk which can survive a system error?  When I say survive, I mean
>that it should do some sort of check to make sure that its data wasn't
>corrupted (ie a checksum).  Any leads?

MacMemory makes something called MaxSave (costs about $70) that plugs in
where the roms are (and then you plug the roms into it).  I think all it
does is prevent the roms from clearing (testing?) that part of memory
used for a ram disk -- so the ram disk appears on the desktop when you
reboot.

- Steve

joe@cbdkc1.ATT.COM (Thats Mr. Judge to you) (10/25/87)

In article <691@rocky.STANFORD.EDU> rothberg@rocky.STANFORD.EDU (Edward Rothberg) writes:
>
>The header pretty much says it all.  I'm sick of RamStart.  One small
>bug in a program and boom, the ram disk is gone.  Does anyone sell
>a RAM disk which can survive a system error?  When I say survive, I mean

I saw a DA that was supposed to save a Ram Disk at crash time. it 
was called CrashFix. Saw it on MacQueue I.

Also, I know of another way to save the Ram Disk (I use RamStart, too).

I use RamStart a lot (esp with LSC mucking around). If stuck in some loop
(i.e Dumb programmer mistake, hang, etc - yea, yea so I forgot to put 
an exit in the program).  Hit the Programmer's Switch (into that goofy 
Dialog Box or MacsBug) and type:    
	SM 0 A9F4     
	G 0

This does a jump to the Finder (me thinks). 

hammen@csd4.milw.wisc.edu.UUCP (10/29/87)

In article <2487@cbdkc1.ATT.COM> joe@cbdkc1.UUCP (Joseph T. Judge) writes:
>
>I saw a DA that was supposed to save a Ram Disk at crash time. it 
>was called CrashFix. Saw it on MacQueue I.

I recently found an INIT resource called CrashGuard by Raymond Lau that does
an Exit_to_Shell upon a crash. It seems to work well.

>Also, I know of another way to save the Ram Disk (I use RamStart, too).
>
>I use RamStart a lot (esp with LSC mucking around). If stuck in some loop
>(i.e Dumb programmer mistake, hang, etc - yea, yea so I forgot to put 
>an exit in the program).  Hit the Programmer's Switch (into that goofy 
>Dialog Box or MacsBug) and type:    
>	SM 0 A9F4     
>	G 0

An alternative way is to type the following after hitting the interrupt switch:
	G 40F6D8

Another alternative is to use the shareware "RamDisk+" program. It's $10, but 
it gives you the option to automagically do an Exit_to_Shell if you hit the
interrupt switch after a bomb.

Robert Hammen	Computer Applications, Inc.
hammen@csd4.milw.wisc.edu	Delphi: HAMMEN		GEnie: R.Hammen

levin@bbn.COM (Joel B Levin) (10/29/87)

In article <3320@uwmcsd1.UUCP> hammen@csd4.milw.wisc.edu.UUCP (Robert Hammen) writes:
:In article <2487@cbdkc1.ATT.COM> joe@cbdkc1.UUCP (Joseph T. Judge) writes:
:>                . . . .   Hit the Programmer's Switch (into that goofy 
:>Dialog Box or MacsBug) and type:    
:>	SM 0 A9F4     
:>	G 0
:
:An alternative way is to type the following after hitting the interrupt switch:
:	G 40F6D8

This only works on Mac Plus and 512KEnhanced.  This magic number is
the actual address of the exitToShell routine itself in ROM, and it is
different on the SE and II.  I don't have my stuff here and can't tell
you what it is for the SE (but it is different) -- but it is better to
use the trap itself, which is machine independent.

	/JBL
-- 
UUCP: {harvard, husc6, etc.}!bbn!levin
ARPA: levin@bbn.com

mrh@Shasta.STANFORD.EDU (Marc Hannah) (10/30/87)

In article <3320@uwmcsd1.UUCP>, hammen@csd4.milw.wisc.edu (Robert Joseph Hammen) writes:
> In article <2487@cbdkc1.ATT.COM> joe@cbdkc1.UUCP (Joseph T. Judge) writes:
...
> >(i.e Dumb programmer mistake, hang, etc - yea, yea so I forgot to put 
> >an exit in the program).  Hit the Programmer's Switch (into that goofy 
> >Dialog Box or MacsBug) and type:    
> >	SM 0 A9F4     
> >	G 0
> 
> An alternative way is to type the following after hitting the interrupt switch:
> 	G 40F6D8

> Robert Hammen	Computer Applications, Inc.

    The first method of trapping to _ExitToShell is NOT ROM dependent
and should work on all Macintosh computers. The second method above is
not only ROM dependent, but should Apple patch the _ExitToShell trap
(say in MultiFinder or some future OS enhancement), it will not work
properly. I found this out the hard way on a Mac II. Use the first
incarnation!   

David Gelphman

ir353@sdcc6.UUCP (10/30/87)

Ramdisk+, at least, survives soft restarts on a Mac II.
Scenario:
	Load up Ramdisk with oodles of tasty files. For example,
Fedit+ doesn't work with my CMS80, so I copy files to a ramdisk,
edit them there, and copy back to the disk; it's safer anyway.
	Crash the machine, but not so badly that you have to pull
the plug (It happens! The POWER SWITCH isn't recognized. Is that
wierd, or what?).
        Reboot. Now there's no ramdisk there, but WAIT! Run Ramdisk+
again, and your FILES ARE THERE WHEN THE RAMDISK IS MOUNTED.
(insert Twilight Zone music here.)

Someone with a Mac II try this and tell me if I'm hallucinating.
	
	Matt  (sdcc6!ir353@sdcsvax.ucsd.edu)

kateley@apple.UUCP (Jim Kateley) (10/30/87)

In article <3423@sdcc6.ucsd.EDU> ir353@sdcc6.ucsd.edu.UUCP (Matthew Grayson) writes:
>Ramdisk+, at least, survives soft restarts on a Mac II.
		     ^^^^^^^^^^^^^^^^^^^^^^

>        Reboot. Now there's no ramdisk there, but WAIT! Run Ramdisk+
>again, and your FILES ARE THERE WHEN THE RAMDISK IS MOUNTED.
>

Yea, I've had that happen.  You need to wait about a minute with
the power off before you start again...

-- 

Jim Kateley
Applelink: kateley1
UUCP: {sun, voder, nsc, mtxinu, dual}!apple!kateley
CSNET: kateley@apple.COM

Disclaimer:   What I say, think, or smell does not reflect any policy or
	      stray thought by Apple Computer, Inc.

Remember:
When you smile :-), the world smiles with you,
When you frown :-(, the : and - keys think they are getting picip down

conybear@moncsbruce.oz (Roland Conybeare) (11/02/87)

The summary says it all

Roland Conybeare (conybear@moncsbruce.oz)