[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

FILE PERDUTO - che ho fatto?



Ciao. Stamane Debian mi ha fatto un brutto scherzo. Ho spostato un file
e non lo trovo piu'. Ho anche aggiornato gli indici di locate, guardato
a mano nella dir, ma non c'e'. 

Seguite il percorso di "checkfile.sh"... i commenti iniziano con il
carattere #.

# Mi posiziono sulla dir proj che e' un link alla dir
# ~/activities/bashscript/spot-stats
gandu:~$ cd proj
gandu:~/proj$ ll
totale 76
-rwxrwxrwx  1 gandu gandu   671 2005-04-26 18:04 analog.sh
-rwxrwxrwx  1 gandu gandu   903 2005-04-26 11:10 config.conf
drwxrwxrwx  2 gandu gandu  4096 2005-04-26 10:08 lib
drwxrwxrwx  2 gandu gandu  4096 2005-04-26 11:10 log
-rwxrwxrwx  1 gandu gandu  4851 2005-04-26 10:08 makeday.sh
-rwxrwxrwx  1 gandu gandu  6177 2005-04-26 10:08 makemonth.sh
-rwxrwxrwx  1 gandu gandu  5861 2005-04-26 10:08 makeweek.sh
drwxrwxrwx  6 gandu gandu  4096 2005-04-26 10:08 output
-rwxrwxrwx  1 gandu gandu  1239 2005-04-26 10:08 rawdata.sh
drwxrwxrwx  2 gandu gandu 20480 2005-04-26 11:02 regiaPUB
drwxrwxrwx  2 gandu gandu  4096 2005-04-26 11:22 tmp
drwxrwxrwx  4 gandu gandu  4096 2005-04-26 10:08 var

# Copio il file makeday.sh in checkfile
gandu:~/proj$ cp makeday.sh checkfile.sh

# Listo e il file e' li' al secondo posto
gandu:~/proj$ ll
totale 84
-rwxrwxrwx  1 gandu gandu   671 2005-04-26 18:04 analog.sh
-rwxr-xr-x  1 gandu gandu  4851 2005-04-27 10:31 checkfile.sh
-rwxrwxrwx  1 gandu gandu   903 2005-04-27 10:31 config.conf
drwxrwxrwx  2 gandu gandu  4096 2005-04-26 10:08 lib
drwxrwxrwx  2 gandu gandu  4096 2005-04-26 11:10 log
-rwxrwxrwx  1 gandu gandu  4851 2005-04-26 10:08 makeday.sh
-rwxrwxrwx  1 gandu gandu  6177 2005-04-26 10:08 makemonth.sh
-rwxrwxrwx  1 gandu gandu  5861 2005-04-26 10:08 makeweek.sh
drwxrwxrwx  6 gandu gandu  4096 2005-04-26 10:08 output
-rwxrwxrwx  1 gandu gandu  1239 2005-04-26 10:08 rawdata.sh
drwxrwxrwx  2 gandu gandu 20480 2005-04-26 11:02 regiaPUB
drwxrwxrwx  2 gandu gandu  4096 2005-04-26 11:22 tmp
drwxrwxrwx  4 gandu gandu  4096 2005-04-26 10:08 var

# Edito il file
gandu:~/proj$ vi checkfile.sh

# Stampo il file (ce l'ho qui con me)
gandu:~/proj$ enscript checkfile.sh
[ 4 pages * 1 copy ] sent to printer
12 lines were wrapped

# Listo la dir, il file e' ancora li'
gandu:~/proj$ ll
totale 84
-rwxrwxrwx  1 gandu gandu   671 2005-04-26 18:04 analog.sh
-rwxr-xr-x  1 gandu gandu  6697 2005-04-27 10:34 checkfile.sh
-rwxrwxrwx  1 gandu gandu   903 2005-04-27 10:31 config.conf
drwxrwxrwx  2 gandu gandu  4096 2005-04-26 10:08 lib
drwxrwxrwx  2 gandu gandu  4096 2005-04-26 11:10 log
-rwxrwxrwx  1 gandu gandu  4851 2005-04-26 10:08 makeday.sh
-rwxrwxrwx  1 gandu gandu  6177 2005-04-26 10:08 makemonth.sh
-rwxrwxrwx  1 gandu gandu  5861 2005-04-26 10:08 makeweek.sh
drwxrwxrwx  6 gandu gandu  4096 2005-04-26 10:08 output
-rwxrwxrwx  1 gandu gandu  1239 2005-04-26 10:08 rawdata.sh
drwxrwxrwx  2 gandu gandu 20480 2005-04-26 11:02 regiaPUB
drwxrwxrwx  2 gandu gandu  4096 2005-04-26 11:22 tmp
drwxrwxrwx  4 gandu gandu  4096 2005-04-26 10:08 var

# Sposto il file nella dir ~/tmo
gandu:~/proj$ mv checkfile.sh ../tmp

# Mi sposto nella root della mia home
gandu:~/proj$ cd

# Elimino il link
gandu:~$ rm proj
rm: rimuovere link simbolico `proj'? y

# Listo la dir ~/tmp MA IL FILE NON C'E'!!!!
gandu:~$ ll tmp/
totale 20868
drwxr-xr-x  10 gandu gandu     4096 2005-04-26 19:27 ambulant-1.2
-rw-r--r--   1 gandu gandu 21329920 2005-04-26 18:38 Ambulant-1.2.tar
-rw-r--r--   1 gandu gandu      394 2005-04-27 10:28 yourpwd

# Mi sposto nella dir a cui puntava il file!!!
gandu:~$ cd activities/bashscript/spot-stats/

# IL FILE NON E' NEMMENO QUI!
gandu:~/activities/bashscript/spot-stats$ ll
totale 76
-rwxrwxrwx  1 gandu gandu   671 2005-04-26 18:04 analog.sh
-rwxrwxrwx  1 gandu gandu   903 2005-04-27 10:31 config.conf
drwxrwxrwx  2 gandu gandu  4096 2005-04-26 10:08 lib
drwxrwxrwx  2 gandu gandu  4096 2005-04-26 11:10 log
-rwxrwxrwx  1 gandu gandu  4851 2005-04-26 10:08 makeday.sh
-rwxrwxrwx  1 gandu gandu  6177 2005-04-26 10:08 makemonth.sh
-rwxrwxrwx  1 gandu gandu  5861 2005-04-26 10:08 makeweek.sh
drwxrwxrwx  6 gandu gandu  4096 2005-04-26 10:08 output
-rwxrwxrwx  1 gandu gandu  1239 2005-04-26 10:08 rawdata.sh
drwxrwxrwx  2 gandu gandu 20480 2005-04-26 11:02 regiaPUB
drwxrwxrwx  2 gandu gandu  4096 2005-04-26 11:22 tmp
drwxrwxrwx  4 gandu gandu  4096 2005-04-26 10:08 var


Che cosa ho combinato? Ho anche ripetuto le operazioni ma tutto e'
ancdato liscio. L'HD non ha problemi, niente ha problemi, solo quel
file non c'e'. Ho un FS ext3... cosa potrebbe essere accaduto?



Reply to: