Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 (Tek) 9/26/83; site azure.UUCP Path: utzoo!linus!decvax!microsoft!uw-beaver!tektronix!azure!stevesu From: stevesu@azure.UUCP (Steve Summit) Newsgroups: net.unix Subject: Re: Raw vs Block Tape I/O Message-ID: <2497@azure.UUCP> Date: Sat, 14-Jan-84 21:30:09 EST Article-I.D.: azure.2497 Posted: Sat Jan 14 21:30:09 1984 Date-Received: Tue, 17-Jan-84 01:56:41 EST References: <341@hocda.UUCP> Organization: Tektronix, Beaverton OR Lines: 23 (From Rich Wales): "Most tape drivers also have a block interface, although I have never had occasion to access a tape by anything but the raw interface." If you want to, though, you can, and if the tape contains a raw (dd) copy of a filesystem, you can actually mount the crazy thing, cd onto it, list directories, cat files, etc. It's hysterical to watch (the tape has to move all over the place), and things take forever, since the blocks aren't necesseraly contiguous and they're never near the inodes. (This may not be true for newer systems.) You do have to be careful to mount the tape -r for readonly, so that the kernel won't try to update the last-accessed times on the inodes. (You never want to rewrite tape blocks.) Furthermore, if you have any subtle bugs in your magtape driver, this trick will probably find them. It is a good way to get a file off of an image backup if you don't have a spare disk to read the whole tape onto. Just use cp! Steve Summit tektronix!tekmdp!stevesu