far riconoscere hd con partizione ext3 montata su /

Problematiche specifiche di hardware e software su un sistema a 64 bit.
diesel
Prode Principiante
Messaggi: 4
Iscrizione: sabato 24 novembre 2007, 16:30

far riconoscere hd con partizione ext3 montata su /

Messaggio da diesel »

ho installato ubuntu su hd SATA da 200gb e vorrei poter montare l'hd con l'ubuntu che usavo prima per poter recuperare tutto quello che mi serve e poi formattarlo per usarlo da magazzino,ma proprio non ci riesco....metto qui l'fstab

Codice: Seleziona tutto

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda1
UUID=bfb64854-ee0e-4695-b74e-6dd51103464a /               ext3    defaults,errors=remount-ro 0       1
# /dev/hda2
UUID=d7eef843-e559-4685-9fd4-43d4467c7583 /media/hda2     ext3    defaults        0       2
# /dev/hda1
UUID=e3dbe5a6-60f1-49d7-a568-ae0968fe24a0 none            swap    sw              0       0
/dev/hdb        /media/cdrom0   udf,iso9660 user,noauto,exec 0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec 0       0
come si può notare la nuova ubuntu riconosce il vecchio hd ma non lo monta.....spero mi possiate dare una mano...grazie.....
Avatar utente
carver55
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2490
Iscrizione: domenica 13 agosto 2006, 10:52
Località: lucca

Re: far riconoscere hd con partizione ext3 montata su /

Messaggio da carver55 »

che errore ti dà se cerchi di montarlo?
Linux User # 454540. Ubu user #17949
Ci sedemmo dalla parte del torto perchè tutti gli altri posti erano occupati.
diesel
Prode Principiante
Messaggi: 4
Iscrizione: sabato 24 novembre 2007, 16:30

Re: far riconoscere hd con partizione ext3 montata su /

Messaggio da diesel »

se provo a montarlo mi dice così

Codice: Seleziona tutto

diesel@diesel-machine:~$ sudo mount -a
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
       missing codepage or helper program, or other error
       In alcuni casi si possono trovare informazioni utili in syslog. Provare
       ad esempio 'dmesg | tail'
e questo è il dmesg

Codice: Seleziona tutto

diesel@diesel-machine:~$ dmesg | tail
[   40.839941] NET: Registered protocol family 17
[   43.716904] NET: Registered protocol family 10
[   43.717056] lo: Disabled Privacy Extensions
[   43.717158] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   48.825187] eth1: no IPv6 routers present
[  134.949355] EXT3-fs: Unrecognized mount option "iocharset=utf8" or missing value
[  879.675962] gtk-gnash[8868]: segfault at 0000000000000002 rip 00002b4eb391ac37 rsp 00007ffff8e9fbd0 error 6
[  890.190051] gtk-gnash[9165]: segfault at 0000000000000002 rip 00002b15618f8c37 rsp 00007fff4aec1bf0 error 6
[24438.751697] EXT3-fs: Unrecognized mount option "iocharset=utf8" or missing value
[24445.519753] EXT3-fs: Unrecognized mount option "iocharset=utf8" or missing value
Avatar utente
carver55
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2490
Iscrizione: domenica 13 agosto 2006, 10:52
Località: lucca

Re: far riconoscere hd con partizione ext3 montata su /

Messaggio da carver55 »

se è veramente un bad superblock è una rogna non indifferente. Posta intanto sudo fdisk -l  e sudo vol_id -u /dev/hda2
Linux User # 454540. Ubu user #17949
Ci sedemmo dalla parte del torto perchè tutti gli altri posti erano occupati.
diesel
Prode Principiante
Messaggi: 4
Iscrizione: sabato 24 novembre 2007, 16:30

Re: far riconoscere hd con partizione ext3 montata su /

Messaggio da diesel »

Codice: Seleziona tutto

diesel@diesel-machine:~$ sudo fdisk -l
[sudo] password for diesel:

Disco /dev/hda: 163.9 GB, 163928604672 byte
255 heads, 63 sectors/track, 19929 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8f8001b1

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/hda1               1         122      979933+  82  Linux swap / Solaris
/dev/hda2   *         123       18358   146480670   83  Linux

Disco /dev/sda: 203.9 GB, 203928109056 byte
255 heads, 63 sectors/track, 24792 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0008b57b

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1               1       24792   199141708+  83  Linux

Codice: Seleziona tutto

diesel@diesel-machine:~$ sudo vol_id -u /dev/hda2
d7eef843-e559-4685-9fd4-43d4467c7583
Avatar utente
carver55
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2490
Iscrizione: domenica 13 agosto 2006, 10:52
Località: lucca

Re: far riconoscere hd con partizione ext3 montata su /

Messaggio da carver55 »

brutte notizie : è tutto regolare quindi si tratta di un superblock danneggiato. Dobbiamo andare alla caccia della copia di backup. Ci sono 2 metodi ( che non è detto però che funzionino automaticamente) : uno che lavora su una copia della partizione ed uno che lavora direttamente sulla partizione. Consiglierei il primo e lascerei il secondo come 'ultima spes '. Crea una dir nella tua /home  su sda1 (tipo  /home/diesel/recupero e da terminale dai

dd if=/dev/hda2 of=/home/diesel/recupero

fatto questo ( che richiederà un po' di tempo) installa testdisk da synaptic ( ti linko la pagina con qualche istruzione http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step) e fagli esaminare hda2 e creare il file di log. Postalo e se ne riparla
Linux User # 454540. Ubu user #17949
Ci sedemmo dalla parte del torto perchè tutti gli altri posti erano occupati.
diesel
Prode Principiante
Messaggi: 4
Iscrizione: sabato 24 novembre 2007, 16:30

Re: far riconoscere hd con partizione ext3 montata su /

Messaggio da diesel »

ok grazie per l'aiuto appena ho il file di log lo posto.....

ecco qui il log di testdisk

Codice: Seleziona tutto

Sun Feb 24 18:07:59 2008
Command line: TestDisk

TestDisk 6.6, Data Recovery Utility, February 2007
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Linux version (ext2fs lib: 1.40.2, ntfs lib: available, reiserfs lib: none, ewf lib: none)
Using locale 'it_IT.UTF-8'.
Hard disk list
Disk /dev/hda - 163 GB / 152 GiB - CHS 19929 255 63, sector size=512
Disk /dev/sda - 203 GB / 189 GiB - CHS 24792 255 63, sector size=512

Disk /dev/hda - 163 GB / 152 GiB
Partition table type: Intel

Analyse Disk /dev/hda - 163 GB / 152 GiB - CHS 19929 255 63
Geometry from i386 MBR: head=255 sector=63
get_geometry_from_list_part_aux head=255 nbr=4
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=4
Current partition structure:
 1 P Linux Swap               0   1  1   121 254 63    1959867
 2 * Linux                  122   0  1 18357 254 63  292961340

search_part()
Disk /dev/hda - 163 GB / 152 GiB - CHS 19929 255 63
   D Linux Swap               0   1  1   121 254 44    1959848
     SWAP2 version 1, 1003 MB / 956 MiB

recover_EXT2: s_block_group_nr=0/1117, s_mnt_count=24/21, s_blocks_per_group=32768
recover_EXT2: boot_sector=0, s_blocksize=4096
recover_EXT2: s_blocks_count 36620167
recover_EXT2: part_size 292961336
   D Linux                  122   0  1 18357 254 59  292961336
     EXT3 Large file Sparse superblock, 149 GB / 139 GiB

recover_EXT2: s_block_group_nr=0/96, s_mnt_count=2/27, s_blocks_per_group=32768
recover_EXT2: boot_sector=0, s_blocksize=4096
recover_EXT2: s_blocks_count 3154764
recover_EXT2: part_size 25238112
   D Linux                18358   0  1 19928 254 60   25238112
     EXT3 Large file Sparse superblock, 12 GB / 12 GiB
get_geometry_from_list_part_aux head=255 nbr=6
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=6

Results
   * Linux Swap               0   1  1   121 254 63    1959867
     SWAP2 version 1, 1003 MB / 956 MiB
   P Linux                  122   0  1 18357 254 63  292961340
     EXT3 Large file Sparse superblock, 149 GB / 139 GiB
   P Linux                18358   0  1 19928 254 63   25238115
     EXT3 Large file Sparse superblock, 12 GB / 12 GiB

interface_write()
 1 * Linux Swap               0   1  1   121 254 63    1959867
 2 P Linux                  122   0  1 18357 254 63  292961340
 3 P Linux                18358   0  1 19928 254 63   25238115
simulate write!

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition

Analyse Disk /dev/hda - 163 GB / 152 GiB - CHS 19929 255 63
Geometry from i386 MBR: head=255 sector=63
get_geometry_from_list_part_aux head=255 nbr=4
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=4
Current partition structure:
 1 P Linux Swap               0   1  1   121 254 63    1959867
 2 * Linux                  122   0  1 18357 254 63  292961340

search_part()
Disk /dev/hda - 163 GB / 152 GiB - CHS 19929 255 63
   D Linux Swap               0   1  1   121 254 44    1959848
     SWAP2 version 1, 1003 MB / 956 MiB

recover_EXT2: s_block_group_nr=0/1117, s_mnt_count=24/21, s_blocks_per_group=32768
recover_EXT2: boot_sector=0, s_blocksize=4096
recover_EXT2: s_blocks_count 36620167
recover_EXT2: part_size 292961336
   D Linux                  122   0  1 18357 254 59  292961336
     EXT3 Large file Sparse superblock, 149 GB / 139 GiB

recover_EXT2: s_block_group_nr=0/96, s_mnt_count=2/27, s_blocks_per_group=32768
recover_EXT2: boot_sector=0, s_blocksize=4096
recover_EXT2: s_blocks_count 3154764
recover_EXT2: part_size 25238112
   D Linux                18358   0  1 19928 254 60   25238112
     EXT3 Large file Sparse superblock, 12 GB / 12 GiB
get_geometry_from_list_part_aux head=255 nbr=6
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=6

Results
   * Linux Swap               0   1  1   121 254 63    1959867
     SWAP2 version 1, 1003 MB / 956 MiB
   P Linux                  122   0  1 18357 254 63  292961340
     EXT3 Large file Sparse superblock, 149 GB / 139 GiB
   P Linux                18358   0  1 19928 254 63   25238115
     EXT3 Large file Sparse superblock, 12 GB / 12 GiB

interface_write()
 1 P Linux Swap               0   1  1   121 254 63    1959867
 2 * Linux                  122   0  1 18357 254 63  292961340
 3 P Linux                18358   0  1 19928 254 63   25238115

search_part()
Disk /dev/hda - 163 GB / 152 GiB - CHS 19929 255 63
   D Linux Swap               0   1  1   121 254 44    1959848
     SWAP2 version 1, 1003 MB / 956 MiB

recover_EXT2: s_block_group_nr=0/1117, s_mnt_count=24/21, s_blocks_per_group=32768
recover_EXT2: boot_sector=0, s_blocksize=4096
recover_EXT2: s_blocks_count 36620167
recover_EXT2: part_size 292961336
   D Linux                  122   0  1 18357 254 59  292961336
     EXT3 Large file Sparse superblock, 149 GB / 139 GiB

block_group_nr 3

recover_EXT2: "e2fsck -b 98304 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=3/1117, s_mnt_count=0/21, s_blocks_per_group=32768
recover_EXT2: boot_sector=98304, s_blocksize=4096
recover_EXT2: s_blocks_count 36620167
recover_EXT2: part_size 292961336
   D Linux                  122   0  1 18357 254 59  292961336
     EXT3 Large file Sparse superblock Backup superblock, 149 GB / 139 GiB

recover_EXT2: s_block_group_nr=0/96, s_mnt_count=2/27, s_blocks_per_group=32768
recover_EXT2: boot_sector=0, s_blocksize=4096
recover_EXT2: s_blocks_count 3154764
recover_EXT2: part_size 25238112
   D Linux                18358   0  1 19928 254 60   25238112
     EXT3 Large file Sparse superblock, 12 GB / 12 GiB

block_group_nr 3

recover_EXT2: "e2fsck -b 98304 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=3/96, s_mnt_count=0/27, s_blocks_per_group=32768
recover_EXT2: boot_sector=98304, s_blocksize=4096
recover_EXT2: s_blocks_count 3154764
recover_EXT2: part_size 25238112
   D Linux                18358   0  1 19928 254 60   25238112
     EXT3 Large file Sparse superblock Backup superblock, 12 GB / 12 GiB

BSD offset 296865135, nbr_part 8, CHS=(23122,16,63) CRC Ok
BSD a: 4.2BSD fast filesystem, offset 296865135, size  22259329 18479/0/1 -> 19864/147/43
BSD b: swap, offset 319124464, size   1048576 19864/147/44 -> 19929/216/47
   D FreeBSD              18479   0  1 19929 216 46   23307904
This partition ends after the disk limits. (start=296865135, size=23307904, end=320173038, disk end=320159385)
   D empty                18479   0  1 19864 147 42   22259328 [/]
     UFS2, 11 GB / 10 GiB
Partition not added.
NTFS at 19927/254/63
filesystem size           320143257
sectors_per_cluster       8
mft_lcn                   786432
mftmirr_lcn               20008953
clusters_per_mft_record   -10
clusters_per_index_record 1
   D HPFS - NTFS              0   1  1 19927 254 63  320143257
     NTFS found using backup sector!, 163 GB / 152 GiB
Disk /dev/hda - 163 GB / 152 GiB - CHS 19929 255 63
Check the harddisk size: HD jumpers settings, BIOS detection...
The harddisk (163 GB / 152 GiB) seems too small! (< 163 GB / 152 GiB)
The following partition can't be recovered:
   D FreeBSD              18479   0  1 19929 216 46   23307904
get_geometry_from_list_part_aux head=255 nbr=8
get_geometry_from_list_part_aux head=8 nbr=3
get_geometry_from_list_part_aux head=16 nbr=2
get_geometry_from_list_part_aux head=32 nbr=2
get_geometry_from_list_part_aux head=64 nbr=2
get_geometry_from_list_part_aux head=128 nbr=2
get_geometry_from_list_part_aux head=240 nbr=2
get_geometry_from_list_part_aux head=255 nbr=8

Results
   D Linux Swap               0   1  1   121 254 63    1959867
     SWAP2 version 1, 1003 MB / 956 MiB
   D HPFS - NTFS              0   1  1 19927 254 63  320143257
     NTFS found using backup sector!, 163 GB / 152 GiB
   D Linux                  122   0  1 18357 254 63  292961340
     EXT3 Large file Sparse superblock, 149 GB / 139 GiB
   D Linux                18358   0  1 19928 254 63   25238115
     EXT3 Large file Sparse superblock, 12 GB / 12 GiB


dir_partition inode=2
   D Linux                  122   0  1 18357 254 63  292961340
     EXT3 Large file Sparse superblock, 149 GB / 139 GiB
Directory /
      2 drwxr-xr-x     0      0      4096 11-Jan-2008 00:15 .
      2 drwxr-xr-x     0      0      4096 11-Jan-2008 00:15 ..
     11 drwx------     0      0     16384 11-Jan-2008 00:03 lost+found
 163841 drwxr-xr-x     0      0      4096 16-Oct-2007 01:38 var
4096001 drwxr-xr-x     0      0      4096 21-Feb-2008 15:57 media
9945089 drwxr-xr-x     0      0      4096 23-Feb-2008 17:08 etc
  49153 lrwxrwxrwx     0      0        11 11-Jan-2008 00:03 cdrom
 278529 drwxr-xr-x     0      0      4096 11-Jan-2008 00:15 bin
8404993 drwxr-xr-x     0      0      4096 21-Feb-2008 16:05 boot
8454145 drwxr-xr-x     0      0      4096 16-Oct-2007 01:34 dev
17891329 drwxr-xr-x     0      0      4096 11-Jan-2008 00:11 home
12517377 drwxr-xr-x     0      0      4096 16-Oct-2007 01:16 initrd
2719745 drwxr-xr-x     0      0     12288 21-Feb-2008 16:04 lib
  49154 lrwxrwxrwx     0      0         4 11-Jan-2008 00:03 lib64
10715137 drwxr-xr-x     0      0      4096  8-Oct-2007 12:39 mnt
4718593 drwxr-xr-x     0      0      4096 16-Oct-2007 01:16 opt
4751361 drwxr-xr-x     0      0      4096  8-Oct-2007 12:39 proc
15925249 drwxr-xr-x     0      0      4096 11-Jan-2008 00:18 root
4325377 drwxr-xr-x     0      0      4096 21-Feb-2008 16:04 sbin
16793601 drwxr-xr-x     0      0      4096 16-Oct-2007 01:16 srv
10960897 drwxr-xr-x     0      0      4096  4-Oct-2007 13:25 sys
8978433 drwxrwxrwt     0      0      4096 23-Feb-2008 17:07 tmp
14172161 drwxr-xr-x     0      0      4096 11-Jan-2008 00:18 usr
  49155 lrwxrwxrwx     0      0        33 11-Jan-2008 00:15 initrd.img
  49156 lrwxrwxrwx     0      0        30 11-Jan-2008 00:15 vmlinuz

interface_write()
 
No partition found or selected for recovery
simulate write!

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition
Ultima modifica di diesel il domenica 24 febbraio 2008, 19:29, modificato 1 volta in totale.
Scrivi risposta

Ritorna a “Architettura x86_64”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 2 ospiti