DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Working with diskettes

Copying files from hard disk to diskette

There are several ways to copy files from a hard disk to a diskette.

Method 1:

Method 1 is the preferred method for copying files from a hard disk to a diskette. Enter

ls file_1 file_2 . . . file_n | cpio -oc > special_file

where file_1 is the path to the first file (such as /etc/wall), file_2 is the path to the second file (such as /bin/ls), and file_3 is the path to the third file (such as /tmp/file) that you want to copy to a diskette, and special_file is the path to the diskette block device (such as /dev/dsk/f03ht). See ls(1) and cpio(1).

Method 2:

  1. Enter

    mkfs -F s5 special_file 1422


    NOTE: The s5 filesystem type is sufficient for most diskette operations, but you can use other filesystem types.

  2. Enter

    labelit -F s5 [-n] special_file [fsname volume]

    where special_file is the path to the diskette block device, and fsname is the name of the mounted filesystem (such as /etc).

  3. Enter

    mkdir /fsname

  4. Enter

    mount -F s5 special_file /fsname

  5. Enter

    cp path /fsname

    where path is the full path of the files or files (such as /etc/passwd) on the hard disk that you want to copy to diskette.

  6. Enter

    umount special_file

See mkfs(1M), labelit(1M), mkdir(1), mount(1M), and cp(1).

Method 3:

Enter

cat file | cpio -ovc > special_file

where file is the path to a file (such as /tmp/file) that contains a list of paths to files (one per line) that you want to copy to a diskette, such as

   /var/tmp/file1
   /var/tmp/file2
   /var/tmp/file3
special_file is the path to the diskette block device (such as /dev/dsk/f03ht). See cat(1) and cpio(1).
Previous topic: Copying files from diskette to hard disk

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004