PDA

View Full Version : Problema con hd


S3N
05-04-2004, 17:06
Ragazzi ho un problema con un hd (WD). E' (era?) un hd con solo dati sopra ma non ricordo assolutamente che file system c'era sopra, mi ricordo solo che lo montavo sempre come hdc5. Ora ho dei probelmi con il recupero dei dati che c'erano sopra. Ho letto un pò di roba ma adesso che è arrivato il dunque non vorrei fare qualche cavolata e perdere dati che sono molto importanti. C'è da dire che questo problema è sorto dopo aver cambiato scheda madre e aver messo questo hd insieme ad un altro (Maxtor) ed installando sul maxtor la debian. Ora fdisk mi dice questo:

###############################################

fdisk -l /dev/hdc

Disk /dev/hdc: 16 heads, 63 sectors, 38792 cylinders
Units = cylinders of 1008 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdc4 2835018 2835018 0 0 Empty
Partition 4 does not end on cylinder boundary:
phys=(0, 0, 0) should be (0, 15, 63)

################################################

mentre gpart:


###############################################

part /dev/hdc

Begin scan...
Possible partition(DOS FAT), size(10644mb), offset(0mb)

* Warning: short read near sector(39102147), 64512 bytes instead of 66048. Skipping...
End scan.

Checking partitions...
Partition(DOS or Windows 95 with 32 bit FAT): primary
Ok.

Guessed primary partition table:
Primary partition(1)
type: 011(0x0B)(DOS or Windows 95 with 32 bit FAT)
size: 10644mb #s(21800142) s(63-21800204)
chs: (0/1/1)-(1023/15/63)d (0/1/1)-(21627/2/63)r

Primary partition(2)
type: 000(0x00)(unused)
size: 0mb #s(0) s(0-0)
chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

Primary partition(3)
type: 000(0x00)(unused)
size: 0mb #s(0) s(0-0)
chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

Primary partition(4)
type: 000(0x00)(unused)
size: 0mb #s(0) s(0-0)
chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

###############################################

Il problema è: cosa devo fare per poter recuperare i dati(sempre se è possibile)? Se non fossero stati dati importanti sarei stato anche più spregiudicato ma voglio andarci con i piedi di piombo.
Grazie. :sperem:

S3N
05-04-2004, 17:19
Ho dimenticato di dire che hdc (WD, quello solo dati) è il primary slave, mentre hdd (quello con debian) è il secondary slave e quindi quando ho installato debian, durante il processo di installazione mi è stato chiesto se volevo scrivere sull'MBR (che si trova sull'hdc) per tenere traccie di tutti i sistemi avviaibili e così ho fatto. Questo probabilmente ha rovinato tutto.
Inoltre ho già fatto una copia di backup dell'MBR con

dd if=/dev/hdc of=hdc.mbr bs=512 count=1

S3N
05-04-2004, 19:11
:help: :help: :help: :help: :help: :help: :help: :help: :help: :help: :help:

S3N
06-04-2004, 15:43
Proviamo a resuscitare il post...

Up. :muro:

Psycotic
06-04-2004, 16:04
scusa fdisk mi stai dicendo che nn vede le tue partizioni?
fai solo fdisk /dev/hdc
poi con P ti visualizza bene le tue partizioni
se vedi le partizioni nn ti ricordi il tipo di fs puoi provare dando l'opzione -t autofs al comando mount

S3N
06-04-2004, 16:14
L'opzione p di fdisk e quivale ad un "fdisk -l", difatti:

/home/sen# fdisk /dev/hdc

The number of cylinders for this disk is set to 38792.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)


Command (m for help): p

Disk /dev/hdc: 16 heads, 63 sectors, 38792 cylinders
Units = cylinders of 1008 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdc4 2835018 2835018 0 0 Empty
Partition 4 does not end on cylinder boundary:
phys=(0, 0, 0) should be (0, 15, 63)



Ma mi chiedo una cosa: se cancello l'MBR è sicuro al 100% che con

dd if=hdc.mbr of=/dev/hdc

lo reimposto come prima? O ci sono delle controindicazioni?