View previous topic :: View next topic |
Author |
Message |
fb99 l33t
Joined: 09 Apr 2003 Posts: 998 Location: Le Locle (Suisse,Neuchâtel)
|
Posted: Mon Mar 21, 2005 8:52 pm Post subject: [mount]-Problème de badblocks avec ext3 |
|
|
bonjour,
Je ne comprends pas vraiment comment est-ce apparu car je n'ai pas eu de coupure de courant ou autre freeze qui aurait obligé un redémarrage forcé; j'ai juste éteint avec halt ( mais oublier le power down ), ensuite je redémarre et là il me fait un petit kernel panic. Donc je redémarre avec le liveCD, petit fsck mais il n'arrive pas à le faire problème de superblock. Quote: | fsck.ext3: Bad magic number in super-block while trying to open /dev/hda5 | --> il n'arrive non plus pas à exécuter debugfs.
J'avais fait un dd sur une partition que j'avais libérée : Code: | dd if=/devb/hda5 of /mnt/hda1/hda5.img conv=noerror | mais ensuite j'ai pas vraiment compris comment si c'est possible recréée l'arborescence et tutti quanti ( avec reiserfs, il y a des options avec le fsck), peut-être avec od mais je vois non plus pas.
Comme il s'agit de ma partition / j'avoue que je n'ai pas trop envie de faire des test au risque de tout bousiller, donc avant de vraiment me lancer je préfère demander votre avis.
Donc mes questions sont les suivantes:
Connaissez-vous un moyen simple de résoudre ce problème ou dois-je regarder du côté de dd et od (déjà mais sans réel succès, en plus assez long mais bon)
Merci d'avance.
Mais j'avoue que je trouve cette situation bizzare, comment cela a pu se produire ?
voilà ce quelque indication, pour vous aider :
Code: | root@ttyp1[knoppix]# fsck.ext3 -p /dev/hda5
fsck.ext3: Bad magic number in super-block while trying to open /dev/hda5
/dev/hda5:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
root@ttyp1[knoppix]# e2fsck -b 8193 /dev/hda5
e2fsck 1.35-WIP (31-Jan-2004)
e2fsck: Bad magic number in super-block while trying to open /dev/hda5
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
root@ttyp1[knoppix]# mke2fs -n /dev/hda5
mke2fs 1.35-WIP (31-Jan-2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
611648 inodes, 1222940 blocks
61147 blocks (5.00%) reserved for the super user
First data block=0
38 block groups
32768 blocks per group, 32768 fragments per group
16096 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
|
Et oui encore j'ai déjà fait, peut-être à tort un badblocks -w (ou -n) /dev/hda5
[EDIT] : je sais que le titre n'est pas génial alors si vous avez une idée qui reflète mieux le sujet je suis preneur
Last edited by fb99 on Mon Mar 21, 2005 10:08 pm; edited 1 time in total |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Mon Mar 21, 2005 9:42 pm Post subject: |
|
|
Code: | Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
|
essaye ces superblocks la au lieu de 8193 pour voir !!
par exemple :
Code: | fsck.ext3 -b 32768
fsck.ext3 -b 98304
fsck.ext3 -b 163840
.... |
Yen a bien un dans le tas qui doit fonctionner je pense .. _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
fb99 l33t
Joined: 09 Apr 2003 Posts: 998 Location: Le Locle (Suisse,Neuchâtel)
|
Posted: Mon Mar 21, 2005 9:51 pm Post subject: |
|
|
Ça ne fonctionne pas mais bizzarement il n'y a pas toujours la même erreur.Pour les 4 premiers il dit Quote: | e2fsck -b 98304 /dev/hda5
e2fsck 1.35-WIP (31-Jan-2004)
e2fsck: Bad magic number in super-block while trying to open /dev/hda5
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
| et pour les deux derniers Quote: | e2fsck -b 884736 /dev/hda5
e2fsck 1.35-WIP (31-Jan-2004)
e2fsck: Invalid argument while trying to open /dev/hda5
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device> |
Non malheureusement y'en a aucun qui fonctionne mais je refais un tour pour voir.
Sinon une question est-ce que la version de fsck pourrait être la cause du fait qu'il n'arrive pas à réparer car j'ai utiliser le liveCD de mes débuts plus une vieille knoppix donc c'est pas la dernière sur le liveCD elle datait de 2003 et sur knoppix de 2004 |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Mon Mar 21, 2005 10:03 pm Post subject: |
|
|
ca pue alors ... pour ce qui est des versions, je ne pense pas que ca joue vraiment ... les elements essentiels de ext3 ne bougent plus il me semble ... _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
fb99 l33t
Joined: 09 Apr 2003 Posts: 998 Location: Le Locle (Suisse,Neuchâtel)
|
Posted: Mon Mar 21, 2005 10:10 pm Post subject: |
|
|
ça pue surtout que je ne me souviens plus si j'ai fait si fait badblocks -n ou -w /dev/hda5 et que je viens de lire ça: Quote: | -w Use write-mode test. With this option, badblocks scans
for bad blocks by writing some patterns (0xaa, 0x55,
0xff, 0x00) on every block of the device, reading
every block and comparing the contents. This option
may not be combined with the -n option, as they are
mutually exclusive.
WARNING
Never use the -w option on an device containing an existing
file system. This option erases data! If you want to do
write-mode testing on an existing file system, use the -n
option instead. It is slower, but it will preserve your
data.
|
[EDIT] : ça fait **** je suis juste tomber sur la mauvaise partition. car en faite ma / ne contient pas /usr /var /opt /home car j'ai fais de partitions séparer, mais bon là j'ai plus de /etc caca car pour les lib le les bin on aurait pu s'arranger. |
|
Back to top |
|
|
fb99 l33t
Joined: 09 Apr 2003 Posts: 998 Location: Le Locle (Suisse,Neuchâtel)
|
Posted: Mon Mar 21, 2005 10:21 pm Post subject: |
|
|
Bon si personne ne voit une autres solutions style avec dd ou autres je crois que je suis bon pour une nouvelle install, pas grave, c'est juste énervant limite déprimant mais bon ça vas un peu me raffraichir la mémoire et on essayera de faire encore mieux que l'ancien système. Merci encore à toi kernel_sensei.
MAIS J'AIMERAIS QUAND MÊME SAVOIR : comment cela a-t-il pu arriver juste en redémarant un ordi bizzare c'est surtout ça qui ......... |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|