The drive argument (by default fd0), indicates which one of the floppy drives you want to use. Use fd0 to indicate drive /dev/fd0 (A:), and fd1 for drive /dev/fd1 (B:). In the examples drive 0 will be used.
To use these commands you need three formatted floppies. Label them clearly as 1, 2 and 3 as you will need to insert exactly the right diskette when asked to.
On day 1 you will use mnx_fresh to fill the hard disk of the PC with a fresh copy of MINIX. For this the system needs to be booted using the stable 2.0.0 kernel with full networking support (the '=' menu choice) as these files are obtained from a remote UNIX machine where they are safe. Become root and type
and watch /usr being checked and repaired. (You can run this command again later if the machine is in a somewhat bad state. The helpdesk people can revive a system that is completely sick.)
Mnx_fresh may be called with the name of a host as argument, for if the default host is down or unreachable.
You are now ready to do your assignments, although you may want to try mnx_backup first. Log in as bin now, bin can do almost anything you need to do and it has it's home directory (/usr/src) right above the kernel sources. A simple su command will make you root for those few special tasks that remain. (Being root is no fun when you don't need a password.)
After a day of work, use mnx_backup to save your O.S. on the three backup diskettes. When you want to continue the next day, you simply type mnx_restore to reload the O.S. on the hard disk. (You may want to run mnx_fresh first to put the machine in a known state, who knows what people have done to it.)
After saving you data, mnx_backup asks if it may delete all the files you have changed in the backed up directories, so that no-one can steal your work.
Rebooting the machine can be done by CTRL-ALT-DEL to quit MINIX, followed by CTRL-ALT-DEL once more to really reboot. It is faster to type exit at the monitor prompt though. The truly shrewd would use the MINIX command
Directory Backup disk /usr/src/kernel 1 Kernel Sources /usr/src/fs 2 File System /usr/src/tools 2 Kernel image and scripts /usr/src/mm 3 Memory Manager /usr/include 3 C-include files /usr/src/extra 3 Miscellaneous Extra /usr/src/.* 3 .profile etc.
Study this list carefully. Notice that the library sources (/usr/src/lib) are not backed up! They are simply too big. It is better to put files that you would normally put in the library in the /usr/src/extra directory, and directly link them in with the commands that need them.
The extra directory is initially empty, you can put any data in it you want and it will be backed up too. Nothing else in /usr/src is backed up, except for the files starting with a '.' (.profile, etc.).
The backup disks are normal MINIX file systems, and the files and directories on them are just like the files in /usr. Nothing stops you from mounting a backup disk and do whatever you want with the files.
If anything goes wrong, you will have to restart with diskette 1.