PREV UP next The Ftape Installation and Usage Guide


8.8.1.25: MTSETPART

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

Description

Move the tape head at the partition with the number COUNT.


Notes
  • Only the Iomega Ditto Max floppy tape drives has more than one partition. Actually, it has two partitions. A very small one, about 130mb, and a large one that occupies all the remaining space.
  • Initially the Iomega Ditto Max positions at partition 1 which is the large partition. The small one has the number `0'.

Limitations

Only the Iomega Ditto Max has more than one partition, all other floppy tape drives have a single partition.


Example

Position at the large partition. Remember that omitting the COUNT value when using mt is equivalent to setting it to 1.

mt -f /dev/nqft0 setpart

Example

Move to small partition

mt -f /dev/nqft0 setpart 0

References
MTLOCK
MTUNLOCK
MTSETPART

ftape logo Use these buttons to jump to the top menu

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