PREV UP NEXT The Ftape Installation and Usage Guide


8.8.1.7: MTREW

C code
struct mtop op = { MTREW, 0 };
result = ioctl(tapefd, MTIOCTOP, &op);

Description

Rewinds the tape cartridge, results also in updating of the header segments if necessary.


Notes

One always should use either this command or MTOFFL (see MTOFFL) before removing the tape cartridge from the tape drive.

Updating of the header segments may take some time.


Example
mt -f /dev/nqft0 rewind

References
Rewinding devices.
MTOFFL.

ftape logo Use these buttons to jump to the top menu

TOP (previous node) TOP (parent node) TOP (next node) TOP (this node)