Linux 14.986 Themen, 106.410 Beiträge

Daten wieder herstellen

skawi / 6 Antworten / Flachansicht Nickles

Hallo!
Habe eine zweite Festplatte in meinen Rechner eingebaut und meine Fotosammlung dadrauf gespeichert.festplatte war mit ext3
formatiert und nicht partitioniert.(gesamten Speicherplatz ein
genommen).Meine distribution ist Debian etch 2.6.18.
Nun zu meinem Problem:
Alle meine Daten sind nicht mehr vorhanden,wenn ich die Platte mounte "mount -t ext3 /dev/hdb /share"wird in /share nur ein Unterverzeichnis "loust+found "angelegt und es ist leer.fdiek -l zeigt bei mir aber für die platte hdb und hdb1 an.Will ich aber hdb1 mounten ,kommt die Fehlermeldung"finde superblock nicht.
Könnt Ihr mir sagen was hier schief läuft? "e2fsck /dev/hdb1" meldet Superblock unlesbar oder beschreibt kein gültiges ext2.Mit e2fsck -b 8193 /dev/hdb1 meldet "bad magic number im super-block beim Versuch hdb1 zu öffnen.
Ich bitte Euch um Hilfe
danke

bei Antwort benachrichtigen
KarstenW Rheinlaender „Hallo skawi, versuch mit dumpe2fs rauszufinden, wo die Superblock-Kopien sitzen....“
Optionen

Ich habe noch nie solche schwerwiegenden Fehler bei Debian gehabt.

Wenn du den Superblock manuell angeben willst, mußt du wissen wie groß die Blockgröße des Dateisystems ist:

man e2fsck
...
-b superblock
Instead of using the normal superblock, use an alternative superblock specified by superblock.
This option is normally used when the primary superblock has been corrupted. The location of
the backup superblock is dependent on the filesystem's blocksize. For filesystems with 1k
blocksizes, a backup superblock can be found at block 8193; for filesystems with 2k blocksizes,
at block 16384; and for 4k blocksizes, at block 32768.

Additional backup superblocks can be determined by using the mke2fs program using the -n option
to print out where the superblocks were created. The -b option to mke2fs, which specifies
blocksize of the filesystem must be specified in order for the superblock locations that are
printed out to be accurate.

If an alternative superblock is specified and the filesystem is not opened read-only, e2fsck
will make sure that the primary superblock is updated appropriately upon completion of the
filesystem check."

...

Die Fehlemeldung eines schlechten Superblocks erscheint auch wenn man den mount Befehl falsch eintippt. So eine Fehlermeldung muß nicht bedeuten das der Superblock defekt ist, meist ist es ein syntaktischer Fehler, bei dem der mount Befehl falsch eingegeben wurde.
Ich nehme mal an das hier nur ein Tippfehler vorliegt, weil der Anwender noch Anfänger ist.

PS: Ließ doch selbst mal die manpages. Ich selbst muß auch immer wieder reinschauen, weil man manche Unixbefehle einfach zu selten nutzt:

man dumpe2fs

DUMPE2FS(8) DUMPE2FS(8)



NAME
dumpe2fs - dump ext2/ext3 filesystem information

SYNOPSIS
dumpe2fs [ -bfhixV ] [ -ob superblock ] [ -oB blocksize ] device

DESCRIPTION
dumpe2fs prints the super block and blocks group information for the
filesystem present on device.

dumpe2fs is similar to Berkeley's dumpfs program for the BSD Fast File
System.

OPTIONS
-b print the blocks which are reserved as bad in the filesystem.

-ob superblock
use the block superblock when examining the filesystem. This
option is not usually needed except by a filesystem wizard who
is examining the remains of a very badly corrupted filesystem.

-oB blocksize
use blocks of blocksize bytes when examining the filesystem.
This option is not usually needed except by a filesystem wizard
who is examining the remains of a very badly corrupted filesys-
tem.

-f force dumpe2fs to display a filesystem even though it may have
some filesystem feature flags which dumpe2fs may not understand
(and which can cause some of dumpe2fs's display to be suspect).

-h only display the superblock information and not any of the block
group descriptor detail information.

-i display the filesystem data from an image file created by
e2image, using device as the pathname to the image file.

-x print the detailed group information block numbers in hexadeci-
mal format

-V print the version number of dumpe2fs and exit.

BUGS
You need to know the physical filesystem structure to understand the
output.

AUTHOR
dumpe2fs was written by Remy Card

Debian GNU/Linux https://www.debian.org/index.de.html
bei Antwort benachrichtigen