Newsgroup: it.comp.os.linux.iniziare
Titolo: Problema con NTFS su Ubuntu 9.04

Sistema: Ubuntu 9.04, kernel 2.6.28-15
-----------
$ sudo fdisk -l
Disco /dev/sda: 750.1 GB, 750156374016 byte
255 testine, 63 settori/tracce, 91201 cilindri
Unitï¿œ = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x00012e7a
Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1               1       10198    81915403+   5  Esteso
/dev/sda2   *       10199       61192   409600000    7  HPFS/NTFS
/dev/sda3           61192       91202   241051648    7  HPFS/NTFS
/dev/sda5            9957       10198     1943865   82  Linux swap / Solaris
/dev/sda6               1        2432    19534945+  83  Linux
/dev/sda7            2433        6079    29294496   83  Linux
/dev/sda8            6080        7903    14651248+  83  Linux
/dev/sda9            7904        9955    16482658+  83  Linux
Le voci nella tabella delle partizioni non sono nello stesso ordine del 
disco
-----------
Ecco il problema: non c'ï¿œ Windows, su questo hard disk, ma mi sono 
rimaste due partizioni NTFS zeppe di dati che utilizzavo con Windows 
(Vista), prima di sostituirlo con Ubuntu. Ora ho bisogno di accedere ai 
dati di queste due partizioni da Ubuntu. Per quanto riguarda sda3, tutto 
liscio come l'olio, nessun problema. Ma sda2 fa i capricci:
-----------
$ sudo mount /dev/sda2 /media/ntfs_1/ -t ntfs-3g -o 
silent,umask=0,locale=it_IT.utf8
ntfs_attr_pread_i: ntfs_pread failed: Errore di I/O
Failed to read NTFS $Bitmap: Errore di I/O
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.
-----------
Con Windows vi accedevo senza difficoltï¿œ, quindi penso sia da escludere 
che abbia qualche problema. Il RAID non c'entra niente.
Aiuto.

 Con Windows vi accedevo senza difficoltï¿œ, quindi penso sia da escludere 
Non ï¿œ da escludere nulla.
Procurati un cd windows con cui fare il chkdsk /f sulla partizione.
Puoi anche testare la sanitï¿œ dei settori di quella partizione facendo
un dd if=/dev/sda2 of=/dev/null bs=512
-- 
           |Save our planet!
    Ciao   |Save wildlife!
   roberto |For your E-MAIL use ONLY recycled Bytes  !!
           |roberto poggi   
rpo...@softhome.net

 
E se ci fosse un problema che faccio? Brrr, non ci voglio pensare, 
speriamo che sia tutto ok! Ti faccio sapere. Grazie!

 Il RAID non c'entra niente.
Beh, questo lo credo.
Se non riesci a fare come indicato (cioè lanciarci sopra un chkdsk /f)
prova a montarlo con l'opzione -o force che tronca il journal log. E'
un'operazione che può comportare la perdita di alcuni dati, ma se non
riesci a montarlo altrimenti...
bye!

 riesci a montarlo altrimenti...
Rispondo anche agli altri: ho provato con chkdsk /f con un cd di 
windows, ma ad un certo punto si blocca e non va pi� avanti. Ho provato 
con mount -o force, e mi d� questo messaggio d'errore:
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.


 for more details.
Non so se il dmesg possa essere utile, io lo posto ugualmente (copio 
solo la parte che comincia dal momento in cui ho dato il comando mount 
-o force):
[  848.853936] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  848.853940] ata1.00: BMDMA stat 0x24
[  848.853945] ata1.00: cmd 25/00:0b:08:22:2e/00:00:22:00:00/e0 tag 0 
dma 5632 in
[  848.853946]          res 51/40:00:09:22:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  848.853949] ata1.00: status: { DRDY ERR }
[  848.853951] ata1.00: error: { UNC }
[  849.832317] ata1.00: configured for UDMA/133
[  849.832328] ata1: EH complete
[  850.795512] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  850.795516] ata1.00: BMDMA stat 0x24
[  850.795522] ata1.00: cmd 25/00:0b:08:22:2e/00:00:22:00:00/e0 tag 0 
dma 5632 in
[  850.795523]          res 51/40:00:09:22:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  850.795526] ata1.00: status: { DRDY ERR }
[  850.795527] ata1.00: error: { UNC }
[  851.776318] ata1.00: configured for UDMA/133
[  851.776333] ata1: EH complete
[  852.737079] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  852.737083] ata1.00: BMDMA stat 0x24
[  852.737088] ata1.00: cmd 25/00:0b:08:22:2e/00:00:22:00:00/e0 tag 0 
dma 5632 in
[  852.737089]          res 51/40:00:09:22:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  852.737092] ata1.00: status: { DRDY ERR }
[  852.737094] ata1.00: error: { UNC }
[  854.204311] ata1.00: configured for UDMA/133
[  854.204328] ata1: EH complete
[  854.741725] sd 0:0:0:0: [sda] 1465149168 512-byte hardware sectors: 
(750 GB/698 GiB)
[  854.742378] sd 0:0:0:0: [sda] Write Protect is off
[  854.742380] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[  854.742737] sd 0:0:0:0: [sda] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[  854.743272] sd 0:0:0:0: [sda] 1465149168 512-byte hardware sectors: 
(750 GB/698 GiB)
[  854.743495] sd 0:0:0:0: [sda] Write Protect is off
[  854.743497] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[  854.759195] sd 0:0:0:0: [sda] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[  855.893107] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  855.893112] ata1.00: BMDMA stat 0x24
[  855.893117] ata1.00: cmd 25/00:80:49:33:2e/00:00:22:00:00/e0 tag 0 
dma 65536 in
[  855.893118]          res 51/40:00:88:33:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  855.893121] ata1.00: status: { DRDY ERR }
[  855.893123] ata1.00: error: { UNC }
[  856.756308] ata1.00: configured for UDMA/133
[  856.756320] ata1: EH complete
[  857.593239] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  857.593243] ata1.00: BMDMA stat 0x24
[  857.593248] ata1.00: cmd 25/00:80:49:33:2e/00:00:22:00:00/e0 tag 0 
dma 65536 in
[  857.593249]          res 51/40:00:88:33:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  857.593252] ata1.00: status: { DRDY ERR }
[  857.593253] ata1.00: error: { UNC }
[  858.444308] ata1.00: configured for UDMA/133
[  858.444322] ata1: EH complete
[  859.285005] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  859.285009] ata1.00: BMDMA stat 0x24
[  859.285012] ata1.00: cmd 25/00:80:49:33:2e/00:00:22:00:00/e0 tag 0 
dma 65536 in
[  859.285013]          res 51/40:00:88:33:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  859.285015] ata1.00: status: { DRDY ERR }
[  859.285016] ata1.00: error: { UNC }
[  860.144804] ata1.00: configured for UDMA/133
[  860.144815] ata1: EH complete
[  860.985104] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  860.985107] ata1.00: BMDMA stat 0x24
[  860.985111] ata1.00: cmd 25/00:80:49:33:2e/00:00:22:00:00/e0 tag 0 
dma 65536 in
[  860.985111]          res 51/40:00:88:33:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  860.985113] ata1.00: status: { DRDY ERR }
[  860.985114] ata1.00: error: { UNC }
[  861.844311] ata1.00: configured for UDMA/133
[  861.844325] ata1: EH complete
[  862.685254] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  862.685257] ata1.00: BMDMA stat 0x24
[  862.685261] ata1.00: cmd 25/00:80:49:33:2e/00:00:22:00:00/e0 tag 0 
dma 65536 in
[  862.685261]          res 51/40:00:88:33:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  862.685263] ata1.00: status: { DRDY ERR }
[  862.685265] ata1.00: error: { UNC }
[  863.537175] ata1.00: configured for UDMA/133
[  863.537187] ata1: EH complete
[  864.377042] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  864.377046] ata1.00: BMDMA stat 0x24
[  864.377049] ata1.00: cmd 25/00:80:49:33:2e/00:00:22:00:00/e0 tag 0 
dma 65536 in
[  864.377050]          res 51/40:00:88:33:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  864.377052] ata1.00: status: { DRDY ERR }
[  864.377053] ata1.00: error: { UNC }
[  865.228316] ata1.00: configured for UDMA/133
[  865.228376] sd 0:0:0:0: [sda] Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE,SUGGEST_OK
[  865.228380] sd 0:0:0:0: [sda] Sense Key : Medium Error [current] 
[descriptor]
[  865.228384] Descriptor sense data with sense descriptors (in hex):
[  865.228386]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
[  865.228395]         22 2e 33 88
[  865.228398] sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error - 
auto reallocate failed
[  865.228404] end_request: I/O error, dev sda, sector 573453192
[  865.228408] __ratelimit: 54 callbacks suppressed
[  865.228411] Buffer I/O error on device sda2, logical block 409611144
[  865.228414] Buffer I/O error on device sda2, logical block 409611145
[  865.228416] Buffer I/O error on device sda2, logical block 409611146
[  865.228419] Buffer I/O error on device sda2, logical block 409611147
[  865.228421] Buffer I/O error on device sda2, logical block 409611148
[  865.228424] Buffer I/O error on device sda2, logical block 409611149
[  865.228426] Buffer I/O error on device sda2, logical block 409611150
[  865.228429] Buffer I/O error on device sda2, logical block 409611151
[  865.228432] Buffer I/O error on device sda2, logical block 409611152
[  865.228434] Buffer I/O error on device sda2, logical block 409611153
[  865.228475] ata1: EH complete
[  865.260947] sd 0:0:0:0: [sda] 1465149168 512-byte hardware sectors: 
(750 GB/698 GiB)
[  865.261453] sd 0:0:0:0: [sda] Write Protect is off
[  865.261455] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[  865.262339] sd 0:0:0:0: [sda] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[  865.302204] sd 0:0:0:0: [sda] 1465149168 512-byte hardware sectors: 
(750 GB/698 GiB)
[  865.302304] sd 0:0:0:0: [sda] Write Protect is off
[  865.302307] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[  865.302336] sd 0:0:0:0: [sda] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[  880.772562] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  880.772566] ata1.00: BMDMA stat 0x24
[  880.772571] ata1.00: cmd 25/00:73:49:33:2e/00:00:22:00:00/e0 tag 0 
dma 58880 in
[  880.772573]          res 51/40:00:88:33:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  880.772575] ata1.00: status: { DRDY ERR }
[  880.772577] ata1.00: error: { UNC }
[  881.624313] ata1.00: configured for UDMA/133
[  881.624322] ata1: EH complete
[  882.464404] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  882.464408] ata1.00: BMDMA stat 0x24
[  882.464412] ata1.00: cmd 25/00:73:49:33:2e/00:00:22:00:00/e0 tag 0 
dma 58880 in
[  882.464413]          res 51/40:00:88:33:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  882.464416] ata1.00: status: { DRDY ERR }
[  882.464418] ata1.00: error: { UNC }
[  883.316809] ata1.00: configured for UDMA/133
[  883.316824] ata1: EH complete
[  884.156182] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  884.156186] ata1.00: BMDMA stat 0x24
[  884.156192] ata1.00: cmd 25/00:73:49:33:2e/00:00:22:00:00/e0 tag 0 
dma 58880 in
[  884.156193]          res 51/40:00:88:33:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  884.156196] ata1.00: status: { DRDY ERR }
[  884.156198] ata1.00: error: { UNC }
[  885.020316] ata1.00: configured for UDMA/133
[  885.020334] ata1: EH complete
[  885.856308] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  885.856312] ata1.00: BMDMA stat 0x24
[  885.856316] ata1.00: cmd 25/00:73:49:33:2e/00:00:22:00:00/e0 tag 0 
dma 58880 in
[  885.856317]          res 51/40:00:88:33:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  885.856320] ata1.00: status: { DRDY ERR }
[  885.856322] ata1.00: error: { UNC }
[  886.712310] ata1.00: configured for UDMA/133
[  886.712328] ata1: EH complete
[  887.548111] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  887.548115] ata1.00: BMDMA stat 0x24
[  887.548120] ata1.00: cmd 25/00:73:49:33:2e/00:00:22:00:00/e0 tag 0 
dma 58880 in
[  887.548121]          res 51/40:00:88:33:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  887.548124] ata1.00: status: { DRDY ERR }
[  887.548125] ata1.00: error: { UNC }
[  888.404819] ata1.00: configured for UDMA/133
[  888.404831] ata1: EH complete
[  889.364316] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  889.364319] ata1.00: BMDMA stat 0x24
[  889.364323] ata1.00: cmd 25/00:73:49:33:2e/00:00:22:00:00/e0 tag 0 
dma 58880 in
[  889.364324]          res 51/40:00:88:33:2e/40:00:22:00:00/e0 Emask 
0x9 (media error)
[  889.364325] ata1.00: status: { DRDY ERR }
[  889.364327] ata1.00: error: { UNC }
[  890.216314] ata1.00: configured for UDMA/133
[  890.216375] sd 0:0:0:0: [sda] Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE,SUGGEST_OK
[  890.216379] sd 0:0:0:0: [sda] Sense Key : Medium Error [current] 
[descriptor]
[  890.216383] Descriptor sense data with sense descriptors (in hex):
[  890.216385]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
[  890.216394]         22 2e 33 88
[  890.216398] sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error - 
auto reallocate failed
[  890.216403] end_request: I/O error, dev sda, sector 573453192
[  890.216407] __ratelimit: 55 callbacks suppressed
[  890.216410] Buffer I/O error on device sda2, logical block 409611144
[  890.216413] Buffer I/O error on device sda2, logical block 409611145
[  890.216416] Buffer I/O error on device sda2, logical block 409611146
[  890.216418] Buffer I/O error on device sda2, logical block 409611147
[  890.216421] Buffer I/O error on device sda2, logical block 409611148
[  890.216423] Buffer I/O error on device sda2, logical block 409611149
[  890.216425] Buffer I/O error on device sda2, logical block 409611150
[  890.216428] Buffer I/O error on device sda2, logical block 409611151
[  890.216430] Buffer I/O error on device sda2, logical block 409611152
[  890.216433] Buffer I/O error on device sda2, logical block 409611153
[  890.216470] ata1: EH complete
[  890.218784] sd 0:0:0:0: [sda] 1465149168 512-byte hardware sectors: 
(750 GB/698 GiB)
[  890.218874] sd 0:0:0:0: [sda] Write Protect is off
[  890.218877] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[  890.218907] sd 0:0:0:0: [sda] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[  890.218936] sd 0:0:0:0: [sda] 1465149168 512-byte hardware sectors: 
(750 GB/698 GiB)
[  890.218952] sd 0:0:0:0: [sda] Write Protect is off
[  890.218954] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[  890.218977] sd 0:0:0:0: [sda] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA

 
[...]
Domanda, ma prima di tentare il recupero, hai verificato il cavo
dell'hard disk?
Con alcuni dischi PATA mi è capitato che diversi dischi non
funzionassero (rilevava errori di filesystem). Cambiata la piattina,
tutto ok. La vecchia piattina era stata maltrattata ed introduceva
notevoli errori nella comunicazione mobo-hdd.
PSK

 
Buona idea, io proverei anche a farlo andare in modo conservativo,
bassa velocità, abbassare UDMA con hdparm, ad esempio.
Anche se comincio a temere che l'unica sua strada si un ricco
photorec con cui recuperare il salvabile.


 con mount -o force, e mi dà questo messaggio d'errore:
Ahia. Mi sa che il disco è TFU. Hai un backup? :^)
bye!

 liscio come l'olio, nessun problema. Ma sda2 fa i capricci
Allora, ho adottato una soluzione piï¿œ semplice seppure piï¿œ fastidiosa: 
ho tolto Linux e installato Vista. Vista ha acceduto senza problemi alla 
partizione, cosï¿œ ho potuto fare il backup di quasi tutti i 400 GB (lo 
so, sono un pazzo a non averlo fatto prima!). Alcuni dati non ho potuto 
salvarli, ma si tratta di meno di 2 GB, e tutto sommato, per fortuna, 
erano i files meno importanti. Dopodichï¿œ ho disinstallato Vista e ho 
rimesso Linux al posto che gli spetta di diritto. Resto perï¿œ 
nell'ignoranza di quale potesse essere il problema. Nei prossimi giorni 
proverï¿œ comunque a cambiare la piattina dell'Hdd, come mi ha consigliato 
Luca, che ringrazio insieme a tutti gli altri.
P.S. Che vuol dire TFU?

 P.S. Che vuol dire TFU?
nulla di buono... "totally fucked up". Evidentemente t'e' andata bene
che la parte corrotta era solo in quei 2 GB che non sei riuscito a
recuperare...
bye!

Hermooz ha scritto:

Puoi dirlo forte!