[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

207.0. "Building a RAM disk..." by JAKE::ACCIARDI () Mon Dec 08 1986 12:17

    For those of you who are using 1.2, I have a little question that's
    been bugging me...
    
    I have ordered a 1-meg Ram board, and I have been playing with a
    startup-sequence that will load certain 'c' commands and the l:
    and libs: and devs: directories to RAM: on bootup.  (I am doing
    this to free up drive df0: so Dos won't keep asking me to re-insert
    volume 'PLINGSNART:' every 2 minutes).
    
    Anyway, I have a startup sequence that goes something like this...
    
    	setlace
    	echo 'Workbench 1.2 blah blah...'
    	copy c/run to ram:
    	copy c/ed to ram:
    	copy c/copy to ram:
    	.
    	<more c commands>
    	.
    	copy c/endcli to ram:
    	copy devs: to ram:
    	copy l: to ram:
    	copy libs: to ram:
    	copy system: to ram:
    	path ram: add
    	newcli conxxx/xxx/xxx/xxx/CLI
    	loadWb
    	endcli >nil:
    	
    Everything works just fine, I can issue any of the 'c' commands
    by adding the pathname RAM:, but the commands 'Diskcopy' and 'Format',
    which have been moved from the c: directory to the system: directory
    under 1.2, will not run from the workbench.  The run just fine from
    CLI, but from Workbench, I get asked for the original sys: disk
    that I booted with.
    
    Anyone understand whats wrong?
    
    By the way, there is a neat little way to archive a bunch of files
    for loading into RAM: at startup at lightning speed.  The archive
    writes all your files into a single sequential file, and only one
    head seek need be done to get all your stuff into ram:, if you ever
    want to hear an Amiga drive do the death rattle, try loading about
    25 different files into ram: at once...this utility is called 'MAKEACV'
    and can be found on PLINK or CIS or from me...
    
    	
    
    
T.RTitleUserPersonal
Name
DateLines
207.1They are not in the C directory!AUTHOR::MACDONALDCUP/MLMon Dec 08 1986 13:125
    That's an easy one .. DISKCOPY and FORMAT are not located in your
    C directory to begin with. They are located in the SYSTEM directory
    (or the UTILITIES directory -- not sure which).
    
    Paul
207.2but but..JAKE::ACCIARDIMon Dec 08 1986 15:225
    Paul:
    
    Right, but I copied the entire 'System' directory to ram:, then
    added 'Ram:' to the search list, that should work, no?
    
207.3AUTHOR::MACDONALDCUP/MLMon Dec 08 1986 15:4123
    You have to
    
    MAKEDIR RAM:C
    
    then 
    
    COPY C/#? RAM:C
    
    then
    
    ASSIGN SYS: RAM:C   (not sure of the syntax here, but you have
                         to assign the SYS:C directory to RAM:C)
    
    After that, just copy FORMAT and DISKCOPY to RAM:C from whereever
    they are on your Wb disk (probably SYSTEM or UTILITIES drawers.
    
    You can also set up PATHs using the PATH command in your
    V1.2 Startup-Sequence.
    
    By the way ...  256K 150 ns rams are $2.65 apiece ... 4 will give
    your new board 2 MB!
    
    Paul
207.4Another answer?.BIZET::TENNYDave TennyMon Dec 08 1986 16:208
ASSIGN SYS:C RAM:<dir>
ASSIGN SYS:SYSTEM RAM:<dir>

where <dir> has the commands and system utilities you copied to 
ram.  Workbench probably looks in SYS:SYSTEM, which if you haven't
reassigned, is still the workbench disk.  (You probably also
need ASSIGN SYS: RAM: as well, don't know about this one)
-Dave
207.5JAKE::ACCIARDIMon Dec 08 1986 17:275
    re: 3 & 4...
    
    Thanx guys, I'll check it out and give it a try...but I thought
    the 'PATH' command would handle it without having to 'ASSIGN', since
    it worked on C: commands...
207.6Assign logical devicesTLE::RMEYERSRandy MeyersTue Dec 09 1986 05:0763
Lest someone become confused, there is a program named DiskCopy in both
the c and System directories.  However, c/DiskCopy gets its arguments
from the CLI command that starts it while System/DiskCopy gets its
argument from an Intuition message from the Workbench.  These are two
distinct programs.

The Workbench runs the program SYS:System/DiskCopy to copy a disk.
(SYS: is the logical device name assigned automatically to boot
workbench disk.)  Thus, if you create a System directory in RAM:
and copy DiskCopy and Initialize into RAM:System, and you then do
"Assign SYS: RAM:", you are all set.

I don't have a copy of 1.2, but I am fairly sure that PATH only
affects were the CLI looks for commands.  In other words, it is
like multiple active assignments for the C: logical device.

Looking over the command procedure in note .0, I believe that
several other actions may cause a request to insert the bootup
workbench disk.  For example, if you go into the Notepad and
try and change the font selection.  The reason why is that
the system looks for font files using the FONTS: logical device.
By default, FONTS: is the Fonts directory in the bootup
workbench device. An "Assign FONTS: RAM:Fonts" will avoid
that disk request.

The full set of logical devices that you may want to assign are:

SYS:		Used by workbench to find SYS:system utilities.

C:		CLI commands directory (path is a better alternative
		if you are only going to put a subset of commands
		in RAM:)

L:		The l directory on the bootup disk.  Contains parts
		of Amiga DOS.

S:		The s directory on the bootup disk.  Contains the
		startup-sequence file.  The Execute command looks
		for the command file on S: if it cannot find the
		file in the current directory.  Some programs, like
		Wecker's VT100, look in S: for init files.

LIBS:		The libs directory on the bootup disk.  Contains the
		loadable libraries.

DEVS:		The devs directory on the bootup disk.  Contains the
		device drivers.

FONTS:		The fonts directory on the bootup disk.  Contains the
		font definition files.

Whether to move all of the above to RAM: depends on your personal
preferences.  If I was you, I moving FONTS: and S: to RAM: would be
a very low priority because I rarely cause these directories to be
accessed.  Moving SYS:system and most of C: to RAM: would be a high
priority.  Rather than copy LIBS: to RAM: (a somewhat medium priority
item), I would write a program that did an openlibrary on all the
libraries to fault them into memory for real.  That way there is
only one copy of them resident (the shareable, executable image)
as opposed to two copies (the copy in the ram disk and the shareable,
executable image.)  If you move the device drivers to RAM:, make sure
you only copy the device driver for your model of printer and not
all the random printer drivers that AmigaDOS provides.
207.7You got it...JAKE::ACCIARDITue Dec 09 1986 10:518
    Randy, you hit it right on the head.  As I mentioned in .0, the
    Diskcopy and Format commands worked fine FROM THE CLI when copied
    and assigned to Ram:, but the Workbench versions insisted on using
    the SYS: boot disk.  I now understand completely.  Thank you.
    
    PS:  With a 2-meg board, I probably will copy most of the useful
    	 Boot disk into an archive, then load the archive into ram:
    	 and de-archive it....presto, 2 totally free drives!
207.8AUTHOR::MACDONALDCUP/MLTue Dec 09 1986 11:092
    Get the Microbotics board yet? Have a source for 256K 150ns CMOS
    DRAMs yet?
207.9byte = 8 x bitAPOLLO::BERKSONTue Dec 09 1986 12:204
    re .3: I think it will take 32 256K RAMs to get another megabyte.
    4 chips will only give 1 megabit. Still a good deal though.
    
      mitch
207.10Waiting....JAKE::ACCIARDITue Dec 09 1986 12:218
    I ordered the board on 12/2/86 from Arizona, shipped UPS gropund.
    
    I hope to have it today or tomorrow!
    
    Spoke with some more people who are using it and they absolutely
    love it.
    
    Ed