Je n'arrive pas à créer une Partition Table ou MBR

Utiliser TestDisk pour réparer le système de fichier
Locked
Message
Author
LeKex
Posts: 2
Joined: 27 Feb 2013, 23:37

Je n'arrive pas à créer une Partition Table ou MBR

#1 Post by LeKex »

Voilà ... j'ai fait une connerie!

Je voulais installer une carte Compact Flash 500x 16GB dans an adaptateur IDE pour le disque interne d'un ancien portable à 2,5". Pour ça, pas de problèmes au début. Tout semblait fonctionner correctement.

Puis, je voulais installer un système léger et rapide comme Puppy ou SliTaz. Le portable est trop lent pour Lubuntu, puisqu'il s'agit d'un ancien portable Toshiba Portégé 3490CT limité à 256MB de mémoire RAM. Puppy et SliTaz semble vouloir fonctionner plutôt bien.

Mais voilà qu'après quelques essais d'installations différentes j'ai réussi à faire je ne sais quoi pour rendre la carte CF impossible à utiliser pour une installation définitive d'un système d'exploitation quelconque.

J'utilise surtout Puppy 4.3.1. maintenant, sans faire appel au disque dur (CF), mais avec un lecteur CD capable d’amorcer le système. Cela me permet d'utiliser TestDisk (la plupart des LiveCD comme Parted Magic ne veulent pas démarrer correctement pour une raison que je ne suis pas capable d'identifier, faute de connaissances et de neurones).

Voici ce qui se passe:
  • Je n'arrive plus à installer aucun système d'exploitation, même avec le disques d'origine pour W98 et un disque d'installation W2K. Aucun système Linux ne veut s'installer non plus.
  • GParted ne veut plus créer de partitions, en indiquant qu'il manque la Partition Table, et qu'il faut la créer.
  • Oui, mais quand je veut créer la Partition Table, il refuse également.
  • Pas de soucis, TestDisk et là ... TestDisk dans Puppy à même identifié une ancienne partition NTFS et une ancienne partition "swap".
  • Pourtant, quand je veux écrire des modifications, ajouter une Partition Table, ajouter un MBR, ou restaurer une ancienne partition identifiée par TestDisk, TestDisk indique qu'il ne peut effectuer l'opération.
Il y a vraiment quelque chose qui ne fonctionne pas avec ce disque (carte CF), mais je ne sais plus quoi essayer.

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Je n'arrive pas à créer une Partition Table ou MBR

#2 Post by cgrenier »

Soit le jumper pour protéger la carte mémoire en écriture a été activée par mégarde, soit la zone mémoire correspondante aux premiers secteurs est HS. Je pense que l'on est dans le second cas, il faudrait tester la carte mémoire sur un autre ordinateur pour vérifier si on arrive à réécrire ou non le MBR.

LeKex
Posts: 2
Joined: 27 Feb 2013, 23:37

Re: Je n'arrive pas à créer une Partition Table ou MBR

#3 Post by LeKex »

Merci, Monsieur Grenier! Il m'a fallu un peu de temps pour suivre vos conseils: ce n'est pas simple pour enlever la carte CF de ce portable, l'accès n'étant pas des plus faciles. J'ai du nouveau, et les résultats sont intéressants.
  • J'ai donc ouvert le portable pour enlever la carte mémoire. Le jumper était bien en place en tant que "master".
  • Ensuite, je l'ai placé dans un adaptateur CardBus 32 bit pour Compact Flash.
  • Tout d'abord, j'ai tout simplement ouvert l'utilitaire pour disques qui a tout de suite identifié la fameuse carte à problèmes.
  • Ensuite, j'ai demandé que la carte mémoire soit formatée. Surprise: la non plus, pas de problèmes.
  • Ensuite, j'ai demandé la création d'un partition. Encore une surprise: toujours pas de problèmes.
  • Les informations S.M.A.R.T. indiquent une carte en bonne santé: encore plus étonnant!
La carte semblait donc vouloir fonctionner normalement!
Image Disk Utility CF16
Image Disk Utility CF16
dskutlty_CF16.png (126.24 KiB) Viewed 3724 times
J'ai donc décidé de lancer TestDisk à nouveau, pour voir le résultat. Là encore, la carte semble fonctionner au début, mais avec énormément d'erreurs de lecture au moment de la recherche approfondie. Je vais tenter de joindre le fichier "log" à ce message.

Code: Select all

Command line: TestDisk

TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 2.6.32-45-generic (#104-Ubuntu SMP Tue Feb 19 21:21:41 UTC 2013)
Compiler: GCC 4.4 - Jun 23 2009 17:11:34
ext2fs lib: 1.41.11, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: none
/dev/sda: LBA, HPA support
/dev/sda: size       125304832 sectors
/dev/sda: user_max   125304832 sectors
/dev/sda: native_max 125304832 sectors
/dev/sdb: LBA, LBA48 support
/dev/sdb: size       28278432 sectors
/dev/sdb: user_max   28278432 sectors
/dev/sdb: native_max 2 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - CHS 1 1 1, sector size=512
Hard disk list
Disk /dev/sda - 64 GB / 59 GiB - CHS 7799 255 63, sector size=512 - ATA SAMSUNG MCCOE64G
Disk /dev/sdb - 14 GB / 13 GiB - CHS 1760 255 63, sector size=512 - ATA CF Card

Partition table type (auto): Intel
Disk /dev/sdb - 14 GB / 13 GiB - ATA CF Card
Partition table type: Intel

Analyse Disk /dev/sdb - 14 GB / 13 GiB - CHS 1760 255 63
Geometry from i386 MBR: head=255 sector=63
get_geometry_from_list_part_aux head=255 nbr=2
get_geometry_from_list_part_aux head=8 nbr=2
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=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=2
get_geometry_from_list_part_aux head=255 nbr=2
Current partition structure:
 1 P Linux                    0   1  1  1759 254 63   28274337 [Delkin]
No partition is bootable
Ask the user for vista mode
Computes LBA from CHS for Disk /dev/sdb - 14 GB / 13 GiB - CHS 1761 255 63
Allow partial last cylinder : Yes
search_vista_part: 1

search_part()
Disk /dev/sdb - 14 GB / 13 GiB - CHS 1761 255 63

recover_EXT2: s_block_group_nr=0/107, s_mnt_count=2/29, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3534292
recover_EXT2: part_size 28274336
     Linux                    0   1  1  1759 254 62   28274336 [Delkin]
     EXT3 Large file Sparse superblock, 14 GB / 13 GiB
get_geometry_from_list_part_aux head=255 nbr=2
get_geometry_from_list_part_aux head=8 nbr=2
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=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=2
get_geometry_from_list_part_aux head=255 nbr=2

Results
   * Linux                    0   1  1  1759 254 63   28274337 [Delkin]
     EXT3 Large file Sparse superblock, 14 GB / 13 GiB

interface_write()
 1 * Linux                    0   1  1  1759 254 63   28274337 [Delkin]

search_part()
Disk /dev/sdb - 14 GB / 13 GiB - CHS 1761 255 63

recover_EXT2: s_block_group_nr=0/107, s_mnt_count=2/29, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3534292
recover_EXT2: part_size 28274336
     Linux                    0   1  1  1759 254 62   28274336 [Delkin]
     EXT3 Large file Sparse superblock, 14 GB / 13 GiB
file_pread(5,16,buffer,557055(34/172/10)) read err: Input/output error

block_group_nr 3

recover_EXT2: "e2fsck -b 98304 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=3/107, s_mnt_count=0/29, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 3534292
recover_EXT2: part_size 28274336
     Linux                    0   1  1  1759 254 62   28274336 [Delkin]
     EXT3 Large file Sparse superblock Backup superblock, 14 GB / 13 GiB
file_pread(5,16,buffer,1247231(77/162/21)) read err: Input/output error
file_pread(5,16,buffer,1249279(77/194/53)) read err: Input/output error
file_pread(5,16,buffer,1251327(77/227/22)) read err: Input/output error
file_pread(5,16,buffer,1252317(77/243/4)) read err: Input/output error
file_pread(5,1,buffer,1252317(77/243/4)) read err: Input/output error
file_pread(5,16,buffer,1253322(78/4/1)) read err: Input/output error
file_pread(5,1,buffer,1253322(78/4/1)) read err: Input/output error
file_pread(5,1,buffer,1253375(78/4/54)) read err: Input/output error
file_pread(5,16,buffer,1255423(78/37/23)) read err: Input/output error
file_pread(5,16,buffer,1257471(78/69/55)) read err: Input/output error
file_pread(5,16,buffer,1259519(78/102/24)) read err: Input/output error
file_pread(5,16,buffer,1261567(78/134/56)) read err: Input/output error
file_pread(5,16,buffer,1578324(98/62/49)) read err: Input/output error
file_pread(5,1,buffer,1578324(98/62/49)) read err: Input/output error
file_pread(5,16,buffer,1579071(98/74/40)) read err: Partial read
file_pread(5,1,buffer,1579072(98/74/41)) read err: Input/output error
file_pread(5,8,buffer,1579087(98/74/56)) read err: Input/output error
file_pread(5,11,buffer,1579134(98/75/40)) read err: Input/output error
file_pread(5,16,buffer,1753087(109/31/50)) read err: Partial read
file_pread(5,16,buffer,1753103(109/32/3)) read err: Input/output error
file_pread(5,3,buffer,1753151(109/32/51)) read err: Input/output error
file_pread(5,8,buffer,1753167(109/33/4)) read err: Input/output error
file_pread(5,11,buffer,1753214(109/33/51)) read err: Input/output error
file_pread(5,16,buffer,1769471(110/36/54)) read err: Partial read
file_pread(5,16,buffer,1769487(110/37/7)) read err: Input/output error
file_pread(5,3,buffer,1769535(110/37/55)) read err: Input/output error
file_pread(5,8,buffer,1769551(110/38/8)) read err: Input/output error
file_pread(5,11,buffer,1769598(110/38/55)) read err: Input/output error
file_pread(5,2,buffer,1770978(110/60/49)) read err: Input/output error
file_pread(5,16,buffer,1771519(110/69/23)) read err: Input/output error
file_pread(5,16,buffer,1771646(110/71/24)) read err: Partial read
file_pread(5,1,buffer,1771648(110/71/26)) read err: Input/output error
file_pread(5,1,buffer,1773567(110/101/55)) read err: Input/output error
file_pread(5,16,buffer,1773694(110/103/56)) read err: Partial read
file_pread(5,1,buffer,1773696(110/103/58)) read err: Input/output error
file_pread(5,1,buffer,1775615(110/134/24)) read err: Input/output error
file_pread(5,16,buffer,1775742(110/136/25)) read err: Partial read
file_pread(5,1,buffer,1775744(110/136/27)) read err: Input/output error
file_pread(5,1,buffer,1777663(110/166/56)) read err: Input/output error
file_pread(5,16,buffer,1777790(110/168/57)) read err: Partial read
file_pread(5,1,buffer,1777792(110/168/59)) read err: Input/output error
file_pread(5,1,buffer,1779711(110/199/25)) read err: Input/output error
file_pread(5,16,buffer,1779838(110/201/26)) read err: Partial read
file_pread(5,1,buffer,1779840(110/201/28)) read err: Input/output error
file_pread(5,16,buffer,5509183(342/237/23)) read err: Partial read
file_pread(5,1,buffer,5509184(342/237/24)) read err: Input/output error
file_pread(5,8,buffer,5509199(342/237/39)) read err: Input/output error
file_pread(5,11,buffer,5509246(342/238/23)) read err: Input/output error
file_pread(5,16,buffer,6029311(375/78/23)) read err: Partial read
file_pread(5,16,buffer,6029327(375/78/39)) read err: Input/output error
file_pread(5,3,buffer,6029375(375/79/24)) read err: Input/output error
file_pread(5,8,buffer,6029391(375/79/40)) read err: Input/output error
file_pread(5,11,buffer,6029438(375/80/24)) read err: Input/output error
file_pread(5,16,buffer,6819903(424/132/28)) read err: Partial read
file_pread(5,1,buffer,6819904(424/132/29)) read err: Input/output error
file_pread(5,8,buffer,6819919(424/132/44)) read err: Input/output error
file_pread(5,11,buffer,6819966(424/133/28)) read err: Input/output error
file_pread(5,16,buffer,7864319(489/135/30)) read err: Partial read
file_pread(5,16,buffer,7864335(489/135/46)) read err: Input/output error
file_pread(5,3,buffer,7864383(489/136/31)) read err: Input/output error
file_pread(5,16,buffer,9437183(587/111/36)) read err: Partial read
file_pread(5,16,buffer,9437199(587/111/52)) read err: Input/output error
file_pread(5,3,buffer,9437247(587/112/37)) read err: Input/output error
file_pread(5,16,buffer,9699327(603/192/37)) read err: Partial read
file_pread(5,16,buffer,9699343(603/192/53)) read err: Input/output error
file_pread(5,3,buffer,9699391(603/193/38)) read err: Input/output error
file_pread(5,16,buffer,14368767(894/105/43)) read err: Partial read
file_pread(5,16,buffer,14368783(894/105/59)) read err: Input/output error
file_pread(5,3,buffer,14368831(894/106/44)) read err: Input/output error
file_pread(5,16,buffer,14469246(900/170/37)) read err: Partial read
file_pread(5,1,buffer,14469248(900/170/39)) read err: Input/output error
file_pread(5,16,buffer,14663679(912/196/52)) read err: Partial read
file_pread(5,16,buffer,14663695(912/197/5)) read err: Input/output error
file_pread(5,3,buffer,14663743(912/197/53)) read err: Input/output error
file_pread(5,16,buffer,15269887(950/129/11)) read err: Partial read
file_pread(5,16,buffer,15269903(950/129/27)) read err: Input/output error
file_pread(5,3,buffer,15269951(950/130/12)) read err: Input/output error
file_pread(5,8,buffer,15269967(950/130/28)) read err: Input/output error
file_pread(5,11,buffer,15270014(950/131/12)) read err: Input/output error
file_pread(5,16,buffer,15636479(973/83/6)) read err: Input/output error
file_pread(5,16,buffer,16547839(1030/14/8)) read err: Partial read
file_pread(5,16,buffer,16547855(1030/14/24)) read err: Input/output error
file_pread(5,3,buffer,16547903(1030/15/9)) read err: Input/output error
file_pread(5,16,buffer,21110369(1314/15/15)) read err: Input/output error
file_pread(5,1,buffer,21110369(1314/15/15)) read err: Input/output error
file_pread(5,16,buffer,22335487(1390/81/35)) read err: Partial read
file_pread(5,16,buffer,22335503(1390/81/51)) read err: Input/output error
file_pread(5,3,buffer,22335551(1390/82/36)) read err: Input/output error
file_pread(5,8,buffer,22335567(1390/82/52)) read err: Input/output error
file_pread(5,11,buffer,22335614(1390/83/36)) read err: Input/output error
file_pread(5,16,buffer,22345854(1390/246/7)) read err: Partial read
file_pread(5,1,buffer,22345856(1390/246/9)) read err: Input/output error
file_pread(5,16,buffer,22346414(1390/254/63)) read err: Input/output error
file_pread(5,1,buffer,22346430(1391/0/16)) read err: Input/output error
file_pread(5,3,buffer,22346431(1391/0/17)) read err: Input/output error
file_pread(5,3,buffer,22346478(1391/1/1)) read err: Input/output error
file_pread(5,8,buffer,22346494(1391/1/17)) read err: Input/output error
file_pread(5,16,buffer,22346481(1391/1/4)) read err: Input/output error
file_pread(5,16,buffer,22346620(1391/3/17)) read err: Partial read
file_pread(5,1,buffer,22346624(1391/3/21)) read err: Input/output error
file_pread(5,11,buffer,22346667(1391/4/1)) read err: Input/output error
file_pread(5,16,buffer,22347437(1391/16/15)) read err: Input/output error
file_pread(5,1,buffer,22347437(1391/16/15)) read err: Input/output error
file_pread(5,2,buffer,22347500(1391/17/15)) read err: Input/output error
file_pread(5,1,buffer,22347775(1391/21/38)) read err: Input/output error
file_pread(5,16,buffer,22380543(1393/31/46)) read err: Partial read
file_pread(5,16,buffer,22380559(1393/31/62)) read err: Input/output error
file_pread(5,3,buffer,22380607(1393/32/47)) read err: Input/output error
file_pread(5,8,buffer,22380623(1393/32/63)) read err: Input/output error
file_pread(5,11,buffer,22380670(1393/33/47)) read err: Input/output error
file_pread(5,2,buffer,22382373(1393/60/49)) read err: Input/output error
file_pread(5,2,buffer,22382436(1393/61/49)) read err: Input/output error
file_pread(5,16,buffer,22382591(1393/64/15)) read err: Partial read
file_pread(5,16,buffer,22382607(1393/64/31)) read err: Input/output error
file_pread(5,3,buffer,22382655(1393/65/16)) read err: Input/output error
file_pread(5,8,buffer,22382671(1393/65/32)) read err: Input/output error
file_pread(5,11,buffer,22382718(1393/66/16)) read err: Input/output error
file_pread(5,16,buffer,22384640(1393/96/48)) read err: Input/output error
file_pread(5,3,buffer,22384656(1393/97/1)) read err: Input/output error
file_pread(5,3,buffer,22384703(1393/97/48)) read err: Input/output error
file_pread(5,8,buffer,22384719(1393/98/1)) read err: Input/output error
file_pread(5,11,buffer,22384766(1393/98/48)) read err: Input/output error
file_pread(5,16,buffer,22386688(1393/129/17)) read err: Input/output error
file_pread(5,3,buffer,22386704(1393/129/33)) read err: Input/output error
file_pread(5,3,buffer,22386751(1393/130/17)) read err: Input/output error
file_pread(5,8,buffer,22386767(1393/130/33)) read err: Input/output error
file_pread(5,11,buffer,22386814(1393/131/17)) read err: Input/output error
file_pread(5,16,buffer,22388736(1393/161/49)) read err: Input/output error
file_pread(5,3,buffer,22388752(1393/162/2)) read err: Input/output error
file_pread(5,3,buffer,22388799(1393/162/49)) read err: Input/output error
file_pread(5,8,buffer,22388815(1393/163/2)) read err: Input/output error
file_pread(5,11,buffer,22388862(1393/163/49)) read err: Input/output error
file_pread(5,16,buffer,22390784(1393/194/18)) read err: Input/output error
file_pread(5,3,buffer,22390800(1393/194/34)) read err: Input/output error
file_pread(5,3,buffer,22390847(1393/195/18)) read err: Input/output error
file_pread(5,8,buffer,22390863(1393/195/34)) read err: Input/output error
file_pread(5,11,buffer,22390910(1393/196/18)) read err: Input/output error
file_pread(5,16,buffer,22395695(1394/17/15)) read err: Input/output error
file_pread(5,1,buffer,22395695(1394/17/15)) read err: Input/output error
file_pread(5,16,buffer,23861247(1485/74/61)) read err: Input/output error
     Linux Swap            1686 215  2  1760  36 52    1177584
     SWAP2 version 1, 602 MB / 574 MiB
file_pread(5,16,buffer,27525183(1713/92/43)) read err: Partial read
file_pread(5,1,buffer,27525184(1713/92/44)) read err: Input/output error
file_pread(5,8,buffer,27525199(1713/92/59)) read err: Input/output error
file_pread(5,11,buffer,27525246(1713/93/43)) read err: Input/output error
get_geometry_from_list_part_aux head=255 nbr=2
get_geometry_from_list_part_aux head=8 nbr=2
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=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=2
get_geometry_from_list_part_aux head=255 nbr=2

Results
     Linux                    0   1  1  1759 254 63   28274337 [Delkin]
     EXT3 Large file Sparse superblock, 14 GB / 13 GiB
     Linux Swap            1686 215  2  1760 254 63    1191329
     SWAP2 version 1, 609 MB / 581 MiB

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

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

TestDisk exited normally.
J'ai voulu ensuite effectuer un Low Level Format. Là aussi, un message d'erreur:

Code: Select all

:~$ sudo dd if=/dev/zero of=/dev/sdb bs=512
[sudo] password for kex: 
dd: writing `/dev/sdb': Input/output error
1576961+0 records in
1576960+0 records out
807403520 bytes (807 MB) copied, 1062.4 s, 760 kB/s

Error creating file system: helper exited with exit code 1: helper failed with:
Total number of sectors (28274336) not a multiple of sectors per track (63)!
Add mtools_skip_check=1 to your .mtoolsrc file to skip this test

mkfs.vfat 3.0.7 (24 Dec 2009)
Alors, la carte mémoire? Elle fonctionne ou elle ne fonctionne pas?! Peut-être que ces erreurs de lecture ne concernent que les anciennes partitions (que je n'ai pas besoin de récupérer), mais pourquoi le formatage "Low Level" renvoie-t-il des messages d'erreurs? S'agit-il d'un problème de géométrie, peut-être? Sans savoir définitivement si tout va bien ou non, la carte ne sert pas à grande chose.

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Je n'arrive pas à créer une Partition Table ou MBR

#4 Post by cgrenier »

Les erreurs de lecture sont en plein millieu de la carte, Il va falloir la remplacer.

Locked