Entra

View Full Version : linux suse come scrivere sul nastro?


texerasmo
13-07-2005, 15:48
ciao a tutti come posso scrivere sullle cassette con linux versione suse?
ho provato così mt -f /dev/nst0 stauts
ma /dev/nst0 questo path non è corretto
come posso trovare il path corretto?

kingv
13-07-2005, 16:20
di solito i tape device sono visti come /dev/st0, /dev/st1, ecc.ecc.

ma il dispositivo è visto dal sistema?

texerasmo
13-07-2005, 16:44
non lo so come faccio?
HO LANCIATO QUESTO COMANDO
dmesg .
...

There were 67 uncompleted unlinks/truncates. Completed
LVM version 1.0.5+(mp-v6a)(22/07/2002) module loaded
Adding Swap: 4200956k swap-space (priority 42)
Broadcom Gigabit Ethernet Driver bcm5700 with Broadcom NIC Extension (NICE) ver. 6.2.2 (04/09/03)
eth0: Broadcom BCM5704 1000Base-T found at mem fa410000, IRQ 18, node addr 00300546aab8
eth0: Broadcom BCM5701 Integrated Copper transceiver found
eth0: Scatter-gather ON, 64-bit DMA ON, Tx Checksum ON, Rx Checksum ON, 802.1Q VLAN ON, NAPI ON
eth1: Broadcom BCM5704 1000Base-T found at mem fa430000, IRQ 19, node addr 00300546aab9
eth1: Broadcom BCM5704 Integrated Copper transceiver found
eth1: Scatter-gather ON, 64-bit DMA ON, Tx Checksum ON, Rx Checksum ON, 802.1Q VLAN ON, NAPI ON
bcm5700: eth0 NIC Link is UP, 100 Mbps full duplex, receive & transmit flow control ON
bcm5700: eth1 NIC Link is UP, 100 Mbps full duplex, receive & transmit flow control ON
raw1394: /dev/raw1394 device initialized
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 13:35:01 Mar 29 2005
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
uhci.c: USB Universal Host Controller Interface driver v1.1
usb-ohci.c: USB OHCI at membase 0xfa4dd000, IRQ 9
usb-ohci.c: usb-00:0f.2, ServerWorks CSB6 OHCI USB Controller
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 4 ports detected
mice: PS/2 mouse device common for all mice
Attached scsi generic sg2 at scsi1, channel 0, id 8, lun 0, type 3
st: Version 20020805, bufsize 32768, wrt 30720, max init. bufs 4, s/g segs 16
Attached scsi tape st0 at scsi1, channel 0, id 5, lun 0
st0: Block limits 1 - 16777215 bytes.
IPv6 v0.8 for NET4.0
IPv6 over IPv4 tunneling driver
Got silent jpeg.
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
eth0: no IPv6 routers present
eth1: no IPv6 routers present
Journalled Block Device driver loaded

PER FAVORE MI DAI UNA MANO?

texerasmo
13-07-2005, 16:51
allora si era come avevi detto tu

www:/ # mt -f /dev/st0 status
drive type = Generic SCSI-2 tape
drive status = 637534720
sense key error = 0
residue count = 0
file number = 0
block number = 0
Tape block size 512 bytes. Density code 0x26 (unknown).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_ENwww:/ #

drive status = 637534720 indica la grandezza?

quanto è capiente la cassetta?

texerasmo
13-07-2005, 17:04
io ho provato a scrivere

per scrivere
tar cvf /dev/st0 /var/tomcat4

Per vedere se ha scritto sul nastro
www:/ # tar tvf /dev/st0
lrwxrwxrwx root/root 0 2004-03-07 19:03:52 var/tomcat4 -> /opt/jakarta/tomcat

ma sembra che il tar non ha funzionato?

cmq la cassetta è da 40g

kingv
13-07-2005, 17:15
tar di default non segue i link simbolici per cui o usi:

tar cvf /dev/st0 /opt/jakarta/tomcat

oppure usi lo switch 'h':

tar cvhf /dev/st0 /var/tomcat4

texerasmo
13-07-2005, 17:24
infatti,
come faccio a vedere quando spazio mi rimane sulla cassetta?

devo usare sempre il comando df?


ora lui con questo comando
tar cvf /dev/st0 /opt/jakarta/tomcat
mi crea un tar oppure mi mette nella cassetta tutta la dir tomcat?

texerasmo
13-07-2005, 17:35
Questi sono 6,7 G?
6772333 tomcat

kingv
13-07-2005, 23:48
Questi sono 6,7 G?
6772333 tomcat


dovrebbero essere i byte.

kingv
13-07-2005, 23:49
ora lui con questo comando
tar cvf /dev/st0 /opt/jakarta/tomcat
mi crea un tar oppure mi mette nella cassetta tutta la dir tomcat?



quello che tu chiami un tar non è altro che un file contenente quello che lui scrive nell'archivio sui cassetta, sono la stessa cosa.

texerasmo
14-07-2005, 11:51
quindi in poche parole se io avevo un dir fatta in questo modo

/home/erasmo

e ho lanciato il comando
tar cvf /dev/st0 /home/erasmo

nella cassetta ho la stessa struttura

/home/erasmo

giusto?

ora per riprendermi il contenuto come posso fare?
basta fare un cp ?
cp /dev/st0 /home


per vedere quanto nastro ho consumato sin ora come faccio?

texerasmo
14-07-2005, 12:17
allora faccio
tar cvf /dev/st0 /home/erasmo

poi vedo il contenuto facendo
tar tvf /dev/st0

e vedo
/home/erasmo
...

Ora se faccio

tar cvf /dev/st0 /home/erasmo2
/home/erasmo2
....

mi perdo /home/erasmo?

ilsensine
14-07-2005, 13:20
OT...


There were 67 uncompleted unlinks/truncates. Completed

"per evitare la visualizzazione di questo messaggio in futuro, spegnere il computer utilizzando chiudi sessione dal Menu Avvio di Linux"

...era così, giusto? :D

texerasmo
14-07-2005, 14:03
si ma la soluzione qual'è?
:D

ilsensine
14-07-2005, 18:02
shutdown -h now :O

texerasmo
15-07-2005, 13:27
La soluzione è sbagliata
la sai si o no

ilsensine
15-07-2005, 15:21
La soluzione è sbagliata
la sai si o no
...?

texerasmo
15-07-2005, 15:35
ho bisogno di scrivere su questa cassetta, quelle sono le procedure che faccio,
puoi aiutarmi?

ilsensine
15-07-2005, 16:43
ho bisogno di scrivere su questa cassetta, quelle sono le procedure che faccio,
puoi aiutarmi?
Ah ma non mi riferivo a questo :D

Riguardo il tuo problema, dai una occhiata alla documentazione accessibile con man tar (oppure info tar)

Ci sono parecchie opzioni, tra cui -r (append -- però non funziona su tutti i tape).