home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!news2me.ebay.sun.com!seven-up.East.Sun.COM!sungy!stasys!alanya!lupe
- From: lupe@ukw.uucp (Lupe Christoph)
- Newsgroups: comp.sys.sun.admin
- Subject: Re: Help: How to Create extract_unbundled tape
- Message-ID: <1992Sep12.132908.1281@ukw.uucp>
- Date: 12 Sep 92 13:29:08 GMT
- References: <6060002@hprnd.rose.hp.com>
- Sender: uucp@stasys.sta.sub.org
- Organization: cic
- Lines: 86
-
- thg@hprnd.rose.hp.com (Terry Gong) writes:
-
- >How does one create an extract_unbundled tape? For example, I
- >have a copyright file that I want to copy to the tape. Everyting
- >time I used the command:
-
- > dd if=copyright of=/dev/rst0
-
- >or
- > dd if=copyright of=/dev/nrst0
-
- >I get the error message:
-
- > dd: write: Invalid argument
-
- >What am I doing wrong? Does anyone have a step by step procedure to
- >create the tape?
-
- 1) You have to write QIC tapes in multiples of their block size;
- they are fixed block devices. In this case the block length is 512 bytes.
-
- The correct incantation is:
-
- dd if=copyright of=/dev/nrst0 bs=512 conv=sync
-
- The conv=sync will block up the last block to a full 512 bytes.
-
- 2) Here is the script I'm using: (Minus the details)
-
-
- #!/bin/csh -fb
-
- set DEVICE=TAPE
-
- while (/$1/ =~ /-*/)
- switch ($1)
- case -t:
- set DEVICE=TAPE
- breaksw
- case -f:
- set DEVICE=FLOPPY
- breaksw
- case --:
- shift
- break
- case \?:
- goto error
- endsw
- shift
- end
-
- if ($#argv < 1)) goto error
- endif
-
- switch ($DEVICE)
- case FLOPPY:
- echo Floppy distribution not yet implemented
- exit
- fdformat
- tar cvbf 126 /dev/rfd0c sys usr
- eject
- breaksw
- case TAPE:
- if (! { mt -f /dev/nrst0 rew } ) exit 1
- dd if=Label of=/dev/nrst0
- foreach d (File1 File2 File3 File4 File5)
- (cd $d; tar cvbfh 126 /dev/nrst0 *)
- end
- mt -f /dev/nrst0 rew
- breaksw
- default:
- echo Internal Error: Unknown Medium
- exit 1
- endsw
-
- exit 0
-
- error:
-
- echo "Aufruf: $0 [-f|-t] hostid ..."
- exit 1
- --
- | ...!unido!ukw!lupe (German EUNet, "bang") | Disclaimer: |
- | lupe@ukw.UUCP (German EUNet, domain) | As I am self-employed, |
- | suninfo!alanya!lupe (Sun Germany) | this *is* the opinion |
- | Res non sunt complicanda praeter necessitatem. | of my employer. |
-