System Administration Guide: Devices and File Systems

ProcedureHow to Retrieve Files From a Diskette (tar)

Steps
  1. Change to the directory where you want to put the files.

  2. Insert the diskette into the drive.

  3. Make the diskette available.


    $ volcheck
    
  4. Retrieve files from the diskette.


    $ tar xvf /vol/dev/aliases/floppy0
    

    All files on the diskette are copied to the current directory.

  5. Verify that the files have been retrieved.


    $ ls -l
    
  6. Remove the diskette from the drive.


Example 27–15 Retrieving Files From a Diskette (tar)

The following example shows how to retrieve all the files from a diskette.


$ cd /home/smith/Evaluations
$ volcheck
$ tar xvf /vol/dev/aliases/floppy0
x evaluation.doc, 44032 bytes, 86 tape blocks
x evaluation.doc.backup, 43008 bytes, 84 tape blocks
$ ls -l

The following example shows how to retrieve an individual file from a diskette. The file is extracted from the diskette and placed in the current working directory.


$ volcheck
$ tar xvf /vol/dev/aliases/floppy0 evaluation.doc
x evaluation.doc, 44032 bytes, 86 tape blocks
$ ls -l