home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / 3b1 / 4243 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  2.6 KB

  1. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!csn!scicom!zebra!vern
  2. From: vern@zebra.alphacdc.COM (Vernon C. Hoxie)
  3. Newsgroups: comp.sys.3b1
  4. Subject: Re: Copy to Flpy from root on a 7300?
  5. Message-ID: <22@zebra.alphacdc.COM>
  6. Date: 11 Jan 93 20:14:28 GMT
  7. References: <93008.213146CXF107@psuvm.psu.edu>
  8. Reply-To: vern@zebra.alphacdc.COM (Vernon C. Hoxie)
  9. Organization: Alpha Communications, Denver, Colo.
  10. Lines: 56
  11.  
  12. In article <93008.213146CXF107@psuvm.psu.edu> CXF107@psuvm.psu.edu (Rooh) writes:
  13. >Hello all,
  14. >          I have a 7300. I would like to copy files to the floppy
  15. >from a root login. I would rather not logon as a user and do a
  16. >backup. Any ideas?
  17. >
  18. >Thanks
  19.  
  20.     You can copy files to the floppy in two ways.  The first copies
  21. them exactly as they are and singularly.  The second method should be
  22. used when archiving a group of files such as a large source code listing
  23. or when any one file is larger than the capacity of a single disk.
  24.  
  25. Method 1:
  26. $ mount /dev/fp021 /mnt
  27. $ filename /mnt
  28.  
  29.     With this method, the floppy becomes part of your root file
  30. system and '/mnt' can be used as any other directory on your file system
  31. with exception that you cannot 'ln' (link) between the floppy and the
  32. hard disk.  You can 'cd /mnt' or you run any standard operation from the
  33. floppy by addressing the files there as '/mnt/xxx'.
  34.  
  35.     When finished, the floppy must be unmounted:
  36. $ umount /dev/fp021
  37.  
  38.     This is required to write the current inode table from ram to
  39. the floppy file system.  For this reason, write protected disks cannot
  40. be used or else you will get those annoying '!!' messages about floppy
  41. disk errors.
  42.  
  43. Method 2:
  44.     Make a list of the files you wish to transfer to the floppies.
  45. I use 'find . -print > Files' or 'ls -1 > Files' ( that is 'ls dash one',
  46. not 'ls dash ell' ).
  47.     Then:
  48. $ cpio -oBvcd < Files > /dev/rfp021
  49.  
  50.     Note that in this instance, the device name is 'rfp021' while in
  51. Method 1 it is 'fp021'.  The difference is that the 'rfp021' is a
  52. character device without a directory or inode table while 'fp021' is a
  53. block device with a directory and inode table.
  54.  
  55.     Read the 'find (1)' and 'cpio (1)' manual pages for other
  56. options for the character device.
  57.  
  58.     By the way, these operations can be performed by any user and
  59. you do not need to be 'root' to perform them.  However, the files
  60. written to the floppy by Method 1 have the standard access
  61. requirements. 
  62.  
  63. vern
  64. -- 
  65. Vernon C. Hoxie                                {ncar,csn}!scicom!zebra!vern
  66. 3975 W. 29th Ave.                                   vern@zebra.alphacdc.COM
  67. Denver, Colo., 80212          voice: 303-477-1780        uucp: 303-455-2670
  68.