BFU: /dev/nst0

Jan ' Kozo ' Vajda jvajda na somi.sk
Pondělí Listopad 4 13:38:39 CET 2002


uz som sa minule na to pytal .. nejako som nedostyal odpoved .. teraz
som namiesto dump a restore skusil popisovany tar .. chyba totozna .. 

netusite preco ? 

:> s tim pohrat. Priklad zalohy na pasku tarem :
:> 
:>  mt -f /dev/nst0 rewind                     # najede na zacatek pasky
:>  mt -f /dev/nst0 setblk 512                 # nastavi velikost bloku
:>  tar cf /dev/nst0 /adresar_co_se_zalohuje   # zalohuje adresar na pasku
:>  mt -f /dev/nst0 bsf 1                      # pretoci zpet o jeden soubor
:>                                             # rewind by taky fungoval
:>                                             # kdyz je zaloha prvni na pasce
:>  tar tf /dev/nst0                           # zobrazi obsah toho co se na
:>                                             # pasku pri backupu ulozilo
:>  mt -f /dev/nst0 offline                    # pretoci na zacatek a vyhodi

# ls -laF /dev/nst0 /dev/tape
crw-rw----    1 root     disk       9, 128 Oct 12 12:24 /dev/nst0
lrwxrwxrwx    1 root     root            9 Oct 15 15:26 /dev/tape -> /dev/nst0

# mt status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 512 bytes. Density code 0x25 (DDS-3).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN

# tar cf /dev/nst0 /home
tar: Removing leading `/' from member names

# mt bsf 1

# mt status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 512 bytes. Density code 0x25 (DDS-3).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN

# tar tf /dev/nst0
tar: /dev/nst0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now




		                                   K O Z O 
                		    ===================================
                                      Look At Your Young Man Fighting
                                         Look At Your Woman Crying
                                       Look At Your Young Man Dying
                                    The Way They've Always Done Before



Další informace o konferenci Linux