Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lfd(1) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                                   lfd(1)



        _________________________________________________________________
        lfd                                                       Command
        labeled floppy diskette interface program for DG/UX
        _________________________________________________________________


        SYNTAX

        lfd [ options ]  volumename filename


        DESCRIPTION

        Lfd saves and restores files on labeled floppy diskettes.  Its
        actions are controlled by options given at command invocation
        time.  The other arguments to the command are Volumename and
        filename specifying the name of the floppy volume and the name of
        the file that is to be dumped to or restored from that floppy
        volume.

        The option portion is specified by one of the following letters:

        -w      The named file is written to the end of the current
                volume in the diskette drive.  The user may be prompted
                to put a fresh floppy in if during the writing of the
                file to the floppy, we exceed the capacity of the floppy.
                The system will then continue once a new floppy is put
                into the drive.

        -r      The named file is extracted from the diskette.  The data
                is written to the standard output.

        -t      The names of all the files on the diskette are listed.
                The volume label and the error map are printed as well.

        -n      The floppy diskette is formatted to be a new labeled
                diskette.  This erases any old labels.  In a multi-volume
                dump, only the first floppy will be newly formatted.  The
                -S option will handle subsequent floppies.

        -c      The floppy is assumed to be TPI_48 instead of the default
                TPI_96.  This means that the floppy has 40 cylinders
                instead of the default (80).

        -s #    Sector size is set to the value of the next argument on
                the command line.

        -v      Normally, lfd does its work silently.  The v (verbose)
                option causes it to type out status information as it
                runs. This information is what cylinder is being read or
                written to the floppy volume.  Also, when a floppy is



        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)





                                                                   lfd(1)



                opened, the volume and file information is printed.

        -z #    This sets the sectors per cylinder to the next argument
                on the command line.

        -b #    This sets the logical block size to the next argument on
                the command line.

        -l #    This sets the logical record size to the next argument on
                the command line.

        -p      This allows no errors during reading or writing.  The
                program may exit on an error if it is part-way through
                writing a floppy.   If it is being newly formatted, then
                the program will prompt you to insert another floppy.

        -f name The next argument is the floppy device name.  Default
                name is /dev/rpdsk/c64d0.

        -S      Every floppy after the initial floppy is scratched.  All
                labeled floppies are erased.  An unformatted floppy is
                automatically formated.

        -V      Automatic volume name generation is enabled.  On write,
                if the volume name specified ends in two digits, then
                each subsequent floppy inserted after the initial will
                have the name incremented by one.  Thus if the first
                volume is DGUX00, the second will be DGUX01.  If this
                option is not enabled, then the system will ask you for a
                volume name when you load a subsequent floppy into the
                drive.  This option also allows you to restart an
                automatic volume generation session on a floppy that has
                a name that ends in two digits.

        -y      Answer yes to the prompt asking whether to format or not.
                Always trash the volume.

        -E nnnnnn
                Set the expiration date to the 6 character field
                specified.

        -F n    Set the format to the 1 character field specified.

        -B n    Set the bypass indicator to the 1 character field
                specified.


        FILES

        /dev/rdsk/*




        DG/UX 4.00                                                 Page 2
               Licensed material--property of copyright holder(s)





                                                                   lfd(1)



        DIAGNOSTICS

        Complains about bad floppies and removal of floppy during its
        operation.


        EXAMPLES

        To write an archive of the entire system to floppies, type

        find / -print | cpio -ov | lfd -nwySV DUMP00 root

        To read in an archive of the entire system from floppies, type

        lfd -rV DUMP00 root | cpio -idv

        To save a file on a floppy, type

        lfd -wy myvol tar.c <tar.c

        To read a file back, type

        lfd -r myvol tar.c >tar.c































        DG/UX 4.00                                                 Page 3
               Licensed material--property of copyright holder(s)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026