Newsgroup: it.comp.os.linux.sys
Titolo: Directory incancellabile

Buonasera. Scrivo qui sperando, primo, che sia il posto giusto, secondo,
che riesca a risolvere il mio problema.
Possiedo un nas di rete, un netgear stora con due dischi fissi da  1
tera in configurazione jbod.
Sul nas e' installata la seguente versione di linux:
Linux version 2.6.22.18-Netgear (
most...@es5x86.axentra.com
) (gcc
version 4.2.1) #16 Sun Jun 13 19:54:46 EDT 2010.
 
Il mio problema e' una directory che non riesco a cancellare.
Tutto e' iniziato quando ho voluto rinominare la cartella tramire win
(disco Z: visto in rete). Ricevo un messaggio di errore (non mi ricordo
quale ma era numerico) e la cartella che prima conteneva altre 9
sottocartelle con circa 20 file a cartella, dopo l'errore mi riporta
solo 3 cartelle e qualche file per cartella (nessun problema per i file
persi, ho il backup).
A questo punto da win vedo solo la vecchia cartella con una manciata di
file.
Provo ad entrare tramite telnet con i diritti di root nel nas e lì
scopro che in realta' esiste una cartella con il nome che avevo usato
per il comando rinomina.
I problema e' che questa cartella e come blindata. La vedo con il
comando ls, ma non riesco a fare altro. Non si cancella, ne rinomina, ne
si possono cambiare i permessi. Ogni tentativo da come risultato
input/output error.
 
A questo link il risultato del comando ls -l
http://www.flickr.com/photos/91473293@N04/8354688803/
 
 
Ho cercato un po' su internet ma non ho risolto.
Ho scoperto due cose, la prima e che il comando dmesg mi ritorna con
degli errori e la seconda che non sono riuscito a fare l'equivalente di
chkdsk /f sotto win. I vari tentativi di usare fsck non  funzionavano.
I dischi sembrano funzionare bene. Tutti gli altri file sul nas non
danno errore.
 
Preciso che da win la cartella incriminata non si vede.
 
Grazie a tutti per l'aiuto.
ciao
Roberto
ps
Se vi serve qualche altra info chiedete pure.

 degli errori .....
 
riporto il log del comando dmesg
 
BIFS error (pid 790): ubifs_read_node: bad node at LEB 121:124928
UBIFS error (pid 790): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 790): ubifs_read_node: bad node at LEB 121:125312
UBIFS error (pid 790): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 790): ubifs_read_node: bad node at LEB 121:125696
UBIFS error (pid 790): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 790): ubifs_read_node: bad node at LEB 121:126080
UBIFS error (pid 790): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 790): ubifs_read_node: bad node at LEB 121:126464
UBIFS error (pid 1042): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1042): ubifs_read_node: bad node at LEB 119:124928
UBIFS error (pid 1042): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1042): ubifs_read_node: bad node at LEB 119:125312
UBIFS error (pid 1042): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1042): ubifs_read_node: bad node at LEB 119:125696
UBIFS error (pid 1042): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1042): ubifs_read_node: bad node at LEB 119:126080
UBIFS error (pid 1042): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1042): ubifs_read_node: bad node at LEB 119:126464
UBIFS error (pid 1042): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1042): ubifs_read_node: bad node at LEB 121:124928
UBIFS error (pid 1042): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1042): ubifs_read_node: bad node at LEB 121:125312
UBIFS error (pid 1042): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1042): ubifs_read_node: bad node at LEB 121:125696
UBIFS error (pid 1042): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1042): ubifs_read_node: bad node at LEB 121:126080
UBIFS error (pid 1042): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1042): ubifs_read_node: bad node at LEB 121:126464
UBIFS error (pid 1046): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1046): ubifs_read_node: bad node at LEB 119:124928
UBIFS error (pid 1046): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1046): ubifs_read_node: bad node at LEB 119:125312
UBIFS error (pid 1046): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1046): ubifs_read_node: bad node at LEB 119:125696
UBIFS error (pid 1046): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1046): ubifs_read_node: bad node at LEB 119:126080
UBIFS error (pid 1046): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1046): ubifs_read_node: bad node at LEB 119:126464
UBIFS error (pid 1046): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1046): ubifs_read_node: bad node at LEB 121:124928
UBIFS error (pid 1046): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1046): ubifs_read_node: bad node at LEB 121:125312
UBIFS error (pid 1046): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1046): ubifs_read_node: bad node at LEB 121:125696
UBIFS error (pid 1046): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1046): ubifs_read_node: bad node at LEB 121:126080
UBIFS error (pid 1046): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1046): ubifs_read_node: bad node at LEB 121:126464
UBIFS error (pid 1055): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1055): ubifs_read_node: bad node at LEB 119:124928
UBIFS error (pid 1055): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1055): ubifs_read_node: bad node at LEB 119:125312
UBIFS error (pid 1055): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1055): ubifs_read_node: bad node at LEB 119:125696
UBIFS error (pid 1055): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1055): ubifs_read_node: bad node at LEB 119:126080
UBIFS error (pid 1055): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1055): ubifs_read_node: bad node at LEB 119:126464
UBIFS error (pid 1055): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1055): ubifs_read_node: bad node at LEB 121:124928
UBIFS error (pid 1055): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1055): ubifs_read_node: bad node at LEB 121:125312
UBIFS error (pid 1055): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1055): ubifs_read_node: bad node at LEB 121:125696
UBIFS error (pid 1055): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1055): ubifs_read_node: bad node at LEB 121:126080
UBIFS error (pid 1055): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1055): ubifs_read_node: bad node at LEB 121:126464
UBIFS error (pid 1156): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1156): ubifs_read_node: bad node at LEB 119:124928
UBIFS error (pid 1156): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1156): ubifs_read_node: bad node at LEB 119:125312
UBIFS error (pid 1156): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1156): ubifs_read_node: bad node at LEB 119:125696
UBIFS error (pid 1156): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1156): ubifs_read_node: bad node at LEB 119:126080
UBIFS error (pid 1156): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1156): ubifs_read_node: bad node at LEB 119:126464
UBIFS error (pid 1156): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1156): ubifs_read_node: bad node at LEB 121:124928
UBIFS error (pid 1156): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1156): ubifs_read_node: bad node at LEB 121:125312
UBIFS error (pid 1156): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1156): ubifs_read_node: bad node at LEB 121:125696
UBIFS error (pid 1156): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1156): ubifs_read_node: bad node at LEB 121:126080
UBIFS error (pid 1156): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1156): ubifs_read_node: bad node at LEB 121:126464
UBIFS error (pid 1311): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1311): ubifs_read_node: bad node at LEB 119:124928
UBIFS error (pid 1311): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1311): ubifs_read_node: bad node at LEB 119:125312
UBIFS error (pid 1311): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1311): ubifs_read_node: bad node at LEB 119:125696
UBIFS error (pid 1311): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1311): ubifs_read_node: bad node at LEB 119:126080
UBIFS error (pid 1311): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1311): ubifs_read_node: bad node at LEB 119:126464
UBIFS error (pid 1311): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1311): ubifs_read_node: bad node at LEB 121:124928
UBIFS error (pid 1311): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1311): ubifs_read_node: bad node at LEB 121:125312
UBIFS error (pid 1311): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1311): ubifs_read_node: bad node at LEB 121:125696
UBIFS error (pid 1311): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1311): ubifs_read_node: bad node at LEB 121:126080
UBIFS error (pid 1311): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1311): ubifs_read_node: bad node at LEB 121:126464
UBIFS error (pid 1413): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1413): ubifs_read_node: bad node at LEB 119:124928
UBIFS error (pid 1413): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1413): ubifs_read_node: bad node at LEB 119:125312
UBIFS error (pid 1413): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1413): ubifs_read_node: bad node at LEB 119:125696
UBIFS error (pid 1413): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1413): ubifs_read_node: bad node at LEB 119:126080
UBIFS error (pid 1413): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1413): ubifs_read_node: bad node at LEB 119:126464
UBIFS error (pid 1413): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1413): ubifs_read_node: bad node at LEB 121:124928
UBIFS error (pid 1413): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1413): ubifs_read_node: bad node at LEB 121:125312
UBIFS error (pid 1413): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1413): ubifs_read_node: bad node at LEB 121:125696
UBIFS error (pid 1413): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1413): ubifs_read_node: bad node at LEB 121:126080
UBIFS error (pid 1413): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1413): ubifs_read_node: bad node at LEB 121:126464
UBIFS error (pid 1466): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1466): ubifs_read_node: bad node at LEB 119:124928
UBIFS error (pid 1466): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1466): ubifs_read_node: bad node at LEB 119:125312
UBIFS error (pid 1466): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1466): ubifs_read_node: bad node at LEB 119:125696
UBIFS error (pid 1466): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1466): ubifs_read_node: bad node at LEB 119:126080
UBIFS error (pid 1466): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1466): ubifs_read_node: bad node at LEB 119:126464
UBIFS error (pid 1466): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1466): ubifs_read_node: bad node at LEB 121:124928
UBIFS error (pid 1466): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1466): ubifs_read_node: bad node at LEB 121:125312
UBIFS error (pid 1466): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1466): ubifs_read_node: bad node at LEB 121:125696
UBIFS error (pid 1466): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1466): ubifs_read_node: bad node at LEB 121:126080
UBIFS error (pid 1466): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1466): ubifs_read_node: bad node at LEB 121:126464
UBIFS error (pid 1505): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1505): ubifs_read_node: bad node at LEB 119:124928
UBIFS error (pid 1505): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1505): ubifs_read_node: bad node at LEB 119:125312
UBIFS error (pid 1505): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1505): ubifs_read_node: bad node at LEB 119:125696
UBIFS error (pid 1505): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1505): ubifs_read_node: bad node at LEB 119:126080
UBIFS error (pid 1505): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1505): ubifs_read_node: bad node at LEB 119:126464
UBIFS error (pid 1505): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1505): ubifs_read_node: bad node at LEB 121:124928
UBIFS error (pid 1505): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1505): ubifs_read_node: bad node at LEB 121:125312
UBIFS error (pid 1505): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1505): ubifs_read_node: bad node at LEB 121:125696
UBIFS error (pid 1505): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1505): ubifs_read_node: bad node at LEB 121:126080
UBIFS error (pid 1505): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1505): ubifs_read_node: bad node at LEB 121:126464
UBIFS error (pid 1511): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1511): ubifs_read_node: bad node at LEB 119:124928
UBIFS error (pid 1511): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1511): ubifs_read_node: bad node at LEB 119:125312
UBIFS error (pid 1511): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1511): ubifs_read_node: bad node at LEB 119:125696
UBIFS error (pid 1511): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1511): ubifs_read_node: bad node at LEB 119:126080
UBIFS error (pid 1511): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1511): ubifs_read_node: bad node at LEB 119:126464
UBIFS error (pid 1511): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1511): ubifs_read_node: bad node at LEB 121:124928
UBIFS error (pid 1511): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1511): ubifs_read_node: bad node at LEB 121:125312
UBIFS error (pid 1511): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1511): ubifs_read_node: bad node at LEB 121:125696
UBIFS error (pid 1511): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1511): ubifs_read_node: bad node at LEB 121:126080
UBIFS error (pid 1511): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1511): ubifs_read_node: bad node at LEB 121:126464
UBIFS error (pid 1521): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1521): ubifs_read_node: bad node at LEB 119:124928
UBIFS error (pid 1521): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1521): ubifs_read_node: bad node at LEB 119:125312
UBIFS error (pid 1521): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1521): ubifs_read_node: bad node at LEB 119:125696
UBIFS error (pid 1521): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1521): ubifs_read_node: bad node at LEB 119:126080
UBIFS error (pid 1521): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1521): ubifs_read_node: bad node at LEB 119:126464
UBIFS error (pid 1521): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1521): ubifs_read_node: bad node at LEB 121:124928
UBIFS error (pid 1521): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1521): ubifs_read_node: bad node at LEB 121:125312
UBIFS error (pid 1521): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1521): ubifs_read_node: bad node at LEB 121:125696
UBIFS error (pid 1521): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1521): ubifs_read_node: bad node at LEB 121:126080
UBIFS error (pid 1521): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1521): ubifs_read_node: bad node at LEB 121:126464
UBIFS error (pid 1622): ubifs_read_node: bad node type (255 but expected 2)
UBIFS error (pid 1622): ubifs_read_node: bad node at LEB 119:124928
UBIFS error (pid 1622): ubifs_readdir: cannot find next direntry, error -22
SGI XFS with ACLs, large block numbers, no debug enabled
XFS mounting filesystem md0
Ending clean XFS mount for filesystem: md0
XFS mounting filesystem sdb1
Ending clean XFS mount for filesystem: sdb1
aufs 20090126
eth0: started
Adding 511992k swap on /mnt/disk1//.swapfile.  Priority:-1 extents:1
across:511992k
eth0: link up, full duplex, speed 1 Gbps
eth0: link down
eth0: stopped
eth0: link down
eth0: started
eth0: link up, full duplex, speed 1 Gbps
 
 
Ciao

persi, ho il backup).
 
Ti si e' scasinato il file system. Dopo aver backuppato il backuppabile,
perche' non si sa mai, prova a riavviare il NAS (sperando che poi faccia
l'fsck completo).
 
Gia' che ci sei, prima del riavvio, da root, crea un file vuoto:
 
	touch /forcefsck
 
nel caso che il NAS supporti questo trucco.
 
Se lo supporta, al riavvio guarda cosa trovi in /lost+found .
 
Leonardo
 
-- 
What would'st thou do, my squire so gay, that rides beside my reine
Were ye Glenallan's Earl this tide, and I were Roland Cheyne?
To turn the rein were sin and shame, to fight were wondrous peril:
What would ye do now, Roland Cheyne, were ye Glenallan's Earl?


 
Fico.. qiesta mi mancava.. :-)
 
Davide.