schemers@vela.acs.oakland.edu (Roland Schemers III) (11/15/90)
If multiple dumps are placed on a single tape using dump 0f /dev/nrmt0h, how can you position yourself to the n'th dump on a tape? It looks like 'mt' should do it, but I'm not sure what the dump format is. Thanx, Roland -- Roland J. Schemers III Systems Programmer schemers@vela.acs.oakland.edu (Ultrix) Oakland University schemers@argo.acs.oakland.edu (VMS) Rochester, MI 48309-4401 ~Disclaimer::Disclaimer() { reboot(RB_HALT); } (313)-370-4323
de5@ornl.gov (Dave Sill) (11/15/90)
In article <3856@vela.acs.oakland.edu>, schemers@vela.acs.oakland.edu (Roland Schemers III) writes: >If multiple dumps are placed on a single tape using >dump 0f /dev/nrmt0h, how can you position yourself to >the n'th dump on a tape? It looks like 'mt' should do >it, but I'm not sure what the dump format is. Each dump takes up one file on the tape. So if you've got four dumps on one tape and you want to restore from the fourth dump, you need to do: # mt -f /dev/nrmt0h fsf 3 Before the restore. -- Dave Sill (de5@ornl.gov) DECstation Manager's Mailing List Martin Marietta Energy Systems decstation-managers-request@ornl.gov Workstation Support
davew@viper.gvg.tek.com (Dave White) (11/15/90)
In article <1990Nov14.201711.23375@cs.utk.edu>, de5@ornl.gov (Dave Sill) writes: |>In article <3856@vela.acs.oakland.edu>, schemers@vela.acs.oakland.edu (Roland Schemers III) writes: |>>If multiple dumps are placed on a single tape using |>>dump 0f /dev/nrmt0h, how can you position yourself to |>>the n'th dump on a tape? It looks like 'mt' should do |>>it, but I'm not sure what the dump format is. |> |>Each dump takes up one file on the tape. So if you've got four dumps |>on one tape and you want to restore from the fourth dump, you need to do: |> |> # mt -f /dev/nrmt0h fsf 3 |> |>Before the restore. Why not use the 's' flag in the restore command? This will do the same thing but save you a command. From restore (8): s The next argument identifies which dump file on the dump media is to be used by restore. This is useful when the dump media has more than one dump image on it and not all of them will be restored. ---- Dave White Grass Valley Group, Inc. VOICE: +1 916.478.3052 P.O. Box 1114 Grass Valley, CA 95945 FAX: +1 916.478.3887 Internet: davew@gvgpsa.gvg.tek.com UUCP: ...uunet!tektronix!gvgpsa.gvg.tek.com!davew
schemers@vela.acs.oakland.edu (Roland Schemers III) (11/15/90)
> >Each dump takes up one file on the tape. So if you've got four dumps >on one tape and you want to restore from the fourth dump, you need to do: > > # mt -f /dev/nrmt0h fsf 3 > Thanks for all who responded. It turns out I had it right all along. The problem was I didn't think it was working because I was trying it on the TZ30 in my VAXstation 3140. When I did the 'mt fsf' command the tape did nothing. Even though the tape didn't move when I did the 'mt fsf' command it must have queued it up because when I tried a restore it did move it to the correct location. Roland -- Roland J. Schemers III Systems Programmer schemers@vela.acs.oakland.edu (Ultrix) Oakland University schemers@argo.acs.oakland.edu (VMS) Rochester, MI 48309-4401 ~Disclaimer::Disclaimer() { reboot(RB_HALT); } (313)-370-4323