home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!csn!scicom!zebra!vern
- From: vern@zebra.alphacdc.COM (Vernon C. Hoxie)
- Newsgroups: comp.sys.3b1
- Subject: Re: Copy to Flpy from root on a 7300?
- Message-ID: <22@zebra.alphacdc.COM>
- Date: 11 Jan 93 20:14:28 GMT
- References: <93008.213146CXF107@psuvm.psu.edu>
- Reply-To: vern@zebra.alphacdc.COM (Vernon C. Hoxie)
- Organization: Alpha Communications, Denver, Colo.
- Lines: 56
-
- In article <93008.213146CXF107@psuvm.psu.edu> CXF107@psuvm.psu.edu (Rooh) writes:
- >Hello all,
- > I have a 7300. I would like to copy files to the floppy
- >from a root login. I would rather not logon as a user and do a
- >backup. Any ideas?
- >
- >Thanks
-
- You can copy files to the floppy in two ways. The first copies
- them exactly as they are and singularly. The second method should be
- used when archiving a group of files such as a large source code listing
- or when any one file is larger than the capacity of a single disk.
-
- Method 1:
- $ mount /dev/fp021 /mnt
- $ filename /mnt
-
- With this method, the floppy becomes part of your root file
- system and '/mnt' can be used as any other directory on your file system
- with exception that you cannot 'ln' (link) between the floppy and the
- hard disk. You can 'cd /mnt' or you run any standard operation from the
- floppy by addressing the files there as '/mnt/xxx'.
-
- When finished, the floppy must be unmounted:
- $ umount /dev/fp021
-
- This is required to write the current inode table from ram to
- the floppy file system. For this reason, write protected disks cannot
- be used or else you will get those annoying '!!' messages about floppy
- disk errors.
-
- Method 2:
- Make a list of the files you wish to transfer to the floppies.
- I use 'find . -print > Files' or 'ls -1 > Files' ( that is 'ls dash one',
- not 'ls dash ell' ).
- Then:
- $ cpio -oBvcd < Files > /dev/rfp021
-
- Note that in this instance, the device name is 'rfp021' while in
- Method 1 it is 'fp021'. The difference is that the 'rfp021' is a
- character device without a directory or inode table while 'fp021' is a
- block device with a directory and inode table.
-
- Read the 'find (1)' and 'cpio (1)' manual pages for other
- options for the character device.
-
- By the way, these operations can be performed by any user and
- you do not need to be 'root' to perform them. However, the files
- written to the floppy by Method 1 have the standard access
- requirements.
-
- vern
- --
- Vernon C. Hoxie {ncar,csn}!scicom!zebra!vern
- 3975 W. 29th Ave. vern@zebra.alphacdc.COM
- Denver, Colo., 80212 voice: 303-477-1780 uucp: 303-455-2670
-