System Administration Guide: Advanced Administration

How to Unmount and Mount a Form

  1. Log in as superuser, lp, or assume an equivalent role on the print server.

  2. Stop accepting print requests on the printer on which you are unmounting the current form.


    # reject printer-name
    

    printer-name

    Name of the printer on which you are unmounting a form. 

    New print requests (which might not require the form) are not allowed to enter the printer's queue.

  3. Unmount the current form.


    # lpadmin -p printer-name -M -f none
    

    In this command, the variable printer-name is the same as in Step 2.

    The current form is deleted from the print server's /etc/lp/printers/printer-name/configuration file.

  4. Remove the form paper from the printer.

  5. Load the form paper for the next print request.

  6. Mount the form.


    # lpadmin -p printer-name -M -f form-name[-a -o filebreak]

    -p printer-name

    Printer on which you are mounting a form. 

    -M -f form-name

    Name of the form to be mounted. 

    -a -o filebreak

    Optionally enables you to print a copy of the alignment pattern defined for the form, if it has one. 

    The specified form is added in the print server's /etc/lp/printers/printer-name/configuration file.

  7. Start accepting print requests on the printer.


    # accept printer-name
    

    The printer is ready to print the form you just mounted.

  8. Verify that the form has been mounted by checking for the form name under the Form mounted heading in the output of the following command.


    $ lpstat -p printer-name -l
    

    Otherwise, submit a print request that requires the new form and check the printer for output.

Examples—Unmounting and Mounting a Form

The following example shows the process of unmounting the currently mounted form on the printer luna.


# reject luna
destination "luna" will no longer accept requests
# lpadmin -p luna -M f none
# accept luna
destination "luna" now accepting requests

The following example shows the process of mounting the medical form on the printer luna.


# reject luna
destination "luna" will no longer accept requests
# lpadmin -p luna -M f medical -a -o filebreak
# accept luna
destination "luna" now accepting requests