Saving Your Programs to a Memory Stick
In order to save an MPI program that you have created while running our live-CD, you must have a functional USB slot on your computer and a USB compatible memory stick with a suitable amount of free memory.
Warning: Files on a
memory stick are volatile. A plugged-in memory
stick can be erased and files can be destroyed if you or a program you
call makes such a request.
Correct Mounting of a Memory Stick
Once the linux operating system is running and after the Desktop has been constructed, plug in your USB memory stick. Watch the desktop and look for the memory stick icon to appear. The "filename" of the memory stick will appear under the icon. (It will usually be something like sda1, sdb3, sdc2 but it could be some special name inherent to your memory stick. Nasty possibility: if you unplug and replug the memory stick the name MAY change. Whatever the current name is, we will call this "memstkname").
A KDE
Daemon window for mounting the memory stick may, OR MAY NOT, appear.
If it appears, it may not work properly, so we advise you to close it
and use the following the following procedure to mount your
memory
stick.
Open a
Konsole terminal. You can either click on the terminal icon
appearing on the tool bar,
![]()
or you can open up the K-Menu Applications,
![]()
Scroll to 'System' and then select from the pop-right menu 'Konsole Terminal Program'.
When the
terminal window appears click on the window.
The linux command line cursor will be sitting a little to the left of the $ symbol, in particular, the display looks something like:
This
means your are in the directory Knoppix. You must change to
the
directory media which is on another branch of the directory
tree.
Enter the /media followed by Enter ( or equivalently,
followed by
Return).
Your new command line
should indicate
that the current directory is media. That is, the display
should
now look something like:
Now you should check the directories (files) which are available in the directory media; type ls and then press Enter.
Your memory stick "memstkname" will appear in this list. Now you can mount the memory stick simply by typing the command 'mount "memstkname"' folllowed by Enter. (terminal 5 picture)
To check if mounting was successful again type 'ls' followed by Enter. The just mounted memory stick name should now appear with a background colorization.
To unmount the memory stick, see "Correct Unmounting of the Memory Stick" below.
The entire konsole should look like this:
Saving From An Editor
Once your memory stick is mounted, you can save a program that is being
displayed by your editor:
1. Within the File drop-down menu of your editor, choose Save.
2.
A window for saving to a file will appear if you are using a
window-type (but not a terminal-type) editor. Now you must
now
indicate where you want to store your editing. The saving
window is
not the same for Gvim vs. the K-editors.
3a. For Kwrite and Kate, click on Storarge M...and among the
displayed
options click on your memory stick. Then, in the box called
'Location', type in the name of the file you want to save (e.g.,
junk.cpp). Then click on 'Save'.
3b. For Gvim, when the Save As window appears, click on
'Browse for
other folders'. Then click on 'File System' and a list of
directories
will appear. Scroll down the alphabetized list of directories
and
choose 'media'. A new scroll-down list will appear, here you
must
choose your memory stick. But there is a problem - easily solved - you
must find out what the operating system has named your memory
stick.
Look on the desktop for the memory stick icon.
By the icon will be something like sda1, sdb3, sdc2. This is
the
temporary name of the memory stick. You now choose this name
in the
Save As window. If successful, the files on the memory stick
will be
displayed. In the box 'Name', type the desired file name
(e.g.,
junk.cpp) and then click on 'Save'.
Correct Unmounting of a Memory Stick
Warning: failure to
follow removal instructions could lead to unreliable
memory saving and/or difficulties in remounting the memory stick.
Open a terminal window (picture) by clicking on the computer screen icon on the toolbar. When the terminal window appears click on the window. At the linux command line, type the following lines, each line followed by a "return":
When the light stops stops flashing on the memory stick, now is the time to physically remove the memory stick.