Unitats DAT

De whats Wiki

Dreceres ràpides: navegació, cerca

Contingut

INTRODUCCIÓ

Eina mt

Tret de man 4 st

/dev/st*  : dispositius de cinta SCSI amb autorebobinado (la cinta rebobina sola al fer el close() )
/dev/nst* : dispositius de cinta SCSI sense rebobinat

L'eina per gestionar les cintes és

mt

Per rebobinar la cinta

mt -f /dev/st0 rewind
o
mt -f /dev/nst0 rewind


Per obtenir info de la cinta

mt -f /dev/st0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 512 bytes. Density code 0x47 (TR-5).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN
Note the status bits at the end of the output. These are useful, but are often cryptic. Here is an explanation of the most important ones:
Status Bit 	Description
BOT 	The tape is positioned at the beginning of the first file.
EOT 	A tape operation has reached the physical End Of Tape.
EOF 	The tape is positioned just after a filemark.
WR_PROT 	The tape (or drive) is write-protected. For some drives this can also mean that the drive does not support writing on the current medium  type. 
ONLINE 	The drive has a tape in place and ready for operation.
DR_OPEN 	Door is open. Depending on the type of drive, this usually means that the drive does not have a tape in place.
IM_REP_EN 	Immediate report mode. This bit is set if there are no guarantees that the data has been physically written to the tape when the write call  returns. It is set to zero only when the driver does not buffer data and the drive is set not to buffer data.
SM 	The tape is currently positioned at a setmark. DDS specific.
EOD 	The tape is positioned at the end of recorded data. DDS specific.
D_6250
D_1600
D_800 	This "generic" status information reports the current density setting for 9-track 1/2 inch tape drives only.

En cas de no haber-hi una cinta dins, al comprobar l'estat, veurem una cosa així:

DR_OPEN IM_REP_EN

Si està posat, però té la pestanya per protegir l'escriptura, veurem el següent:

BOT WR_PROT ONLINE IM_REP_EN

EINA tar

Per crear un backup en una cinta usant tar

tar cvf /dev/st0 /

Per afegir una etiqueta

tar --label="temp label" ........

LINKS

Una web on expliquen com muntar el bacula, també diu quatre coses de com treballar amb les cintes