[ubuntu-it] HELP!!!!! partizione /home non piu' presente... (was Re: ibernazione fantasma su Oneiric Ocelot)

beppe gitrec a tin.it
Lun 20 Feb 2012 06:46:14 UTC


Il 19/02/2012 00:08, Esteban GMAIL ha scritto:
> Il giorno dom, 12/02/2012 alle 14.25 +0100,mapreri a gmail.com  ha
> scritto:
>> Prima un dd della partizione, poi un fsck sull'immagine fatta da dd, e quindi monti l'immagine e vedi se é tutta a posto.
>> Se sì fai un fsck della partizione.
>
> sto cercando di fare un po' di ordine su quello che sto facendo quindi
> ho preso in esame questo primo post in risposta al mio.
>
> Ecco quello che ho fatto sul pc che non risconosce la /home:
>
> sudo dd if=/dev/sda5 of=/mnt/elements/recovery/homesda5.img bs=4096
> conv=noerror&
>
> una volta finito e collegato l'HD usb dove ho salvato il file img ad una
> ltro pc ubuntu ho fatto i seguenti comandi pensando di dover "montare"
> il file immagine
>
> ~$ sudo mkdir /mnt/casasda5
> [sudo] password for esti:
> ~$ sudo mount /media/Elements/recovery/homesda5.img -t
> ext4 /mnt/casasda5 -o loop
>
> mount: tipo fs errato, opzione non valida, superblocco su /dev/loop0
> danneggiato, codepage o programma ausiliario mancante, o altro errore
>         In alcuni casi si possono trovare informazioni utili in syslog.
> Provare
>         ad esempio 'dmesg | tail'
>
> quindi provo il comando consigliato
>
> ~$ dmesg | tail
> [33588.770982] sd 3:0:0:0: Attached scsi generic sg2 type 0
> [33588.775379] sd 3:0:0:0: [sdc] 625142448 512-byte logical blocks: (320
> GB/298 GiB)
> [33588.776003] sd 3:0:0:0: [sdc] Write Protect is off
> [33588.776054] sd 3:0:0:0: [sdc] Mode Sense: 23 00 00 00
> [33588.776063] sd 3:0:0:0: [sdc] Assuming drive cache: write through
> [33588.778634] sd 3:0:0:0: [sdc] Assuming drive cache: write through
> [33588.793753]  sdc: sdc1
> [33588.795994] sd 3:0:0:0: [sdc] Assuming drive cache: write through
> [33588.796044] sd 3:0:0:0: [sdc] Attached SCSI disk
> [37297.254660] EXT4-fs (loop0): VFS: Can't find ext4 filesystem
>
> Sembra che non risconosce il filesystem come ext4
>
> Allora non riuscendo a "montare" il file immagine provo il comando fsck
> sul file .img con l'opzione -N ed il risultato e'
>
> /media/Elements/recovery$ fsck -N -t ext4 homesda5.img
> fsck from util-linux-ng 2.17.2
> [/sbin/fsck.ext4 (1) -- /] fsck.ext4 homesda5.img /dev/sda4
>
> ora su sda4 c'e' ubuntu 11.04 che sto utilizzando... boh qui mi fermo
> perche' le mie conoscenze sono davvero scarse arrivati a questo punto e
> non so se possa fare ulteriori danni...
>
> Come devo utilizzare questo comando, fsck, senza fare danni sul pc con
> ubuntu 11.04 che sto utilizzando per recuperare i dati dalla partizione
> sda5 che era la /home di un altro pc??
>
> Grazie mille.
Non conosco tutti i parametri di fsck
http://manpages.ubuntu.com/manpages/gutsy/it/man8/fsck.8.html
sudo fsck -N homesda5.img


se vuoi puoi provare ad installare testdik e controllare il file immagine:

sudo testdik homesda5.img
di solito ha sempre funzionato,

provandolo su un file immagine di sdc

testdisk sdb_sim.img

Select a media (use Arrow keys, then press Enter):
Disk sdb_sim.img - 125 MB / 120 MiB
sceglire proceed
Disk sdb_sim.img - 125 MB / 120 MiB

Please select the partition table type, press Enter when done.
[Intel  ]  Intel/PC partition
[EFI GPT]  EFI GPT partition map (Mac i386, some x86_64...)
[Mac    ]  Apple partition map
[None   ]  Non partitioned media
[Sun    ]  Sun Solaris partition
[XBox   ]  XBox partition
[Return ]  Return to disk selection
scegliere Intel
scegliere Analise
scegliere Quick_Search
Should TestDisk search for partition created under Vista ? [Y/N] (answer 
Yes if unsure)
schegliere Y


Disk sdb_sim.img - 125 MB / 120 MiB - CHS 961 8 32
Warning: the current number of heads per cylinder is 8
but the correct value may be 255.
You can use the Geometry menu to change this value.
It's something to try if
- some partitions are not found by TestDisk
- or the partition table can not be written because partitions overlaps.
[ Continue ]
scegliere Continue


Disk sdb_sim.img - 125 MB / 120 MiB - CHS 961 8 32
      Partition               Start        End    Size in sectors
L FAT16 >32M               0   3  2   960   7 32     245919 [NO NAME]
Structure: Ok.  Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
      Enter: to continue
FAT16, 125 MB / 120 MiB
sceglire P per la lista files e directory


    L FAT16 >32M               0   3  2   960   7 32     245919 [NO NAME]
Directory /
-rwxr-xr-x     0     0       512 22-Aug-2009 16:39 NIKON001.DSC
drwxr-xr-x     0     0         0 22-Aug-2009 16:39 MISC
drwxr-xr-x     0     0         0 22-Aug-2009 16:39 DCIM
drwxr-xr-x     0     0         0 25-Oct-2009 16:23 200910
drwxr-xr-x     0     0         0 24-Oct-2009 18:24 200803
drwxr-xr-x     0     0         0 24-Oct-2009 18:24 200808
drwxr-xr-x     0     0         0 24-Oct-2009 18:24 200811
drwxr-xr-x     0     0         0 24-Oct-2009 18:24 200903
drwxr-xr-x     0     0         0 24-Oct-2009 18:24 200905
drwxr-xr-x     0     0         0 24-Oct-2009 18:24 200906
-rwxr-xr-x     0     0     28407 30-Oct-2009 12:38 
BootNortonGhost14SRDfromaUSB-1.odt

Use Right arrow to change directory, c to copy,
     h to hide deleted files, q to quit

questi sono i miei files e directory,
scegli una directory e puoi copiarla in un altro posto del disco locale.

ciao
Beppe

-- 
le nuvole non hanno regole,
perchè non hanno mai rinunciato
alla libertà di sognare.




Maggiori informazioni sulla lista ubuntu-it