Hallo!
Habe ein NAS (QNAP TS-109) welches mir (vermutlich durch einen Bug in der Firmware) meine Daten "zerschossen" hat. Das NAS lauft unter Linux. Ich habe mittels dd_rescue ein Image der betroffenen Platte auf eine externe gemacht, auf der ich experementieren kann:
Das ist die Platte um die es sich dreht
sdd1 ist das Betriebssystem der Platte, sdd2 swap, sdd3 sind die Daten und sdd4 ist das home der Linux partition.
sdd1 und sdd4 lassen sich ohne Probleme mounten (hier am Beispiel von sdd1 gezeigt):
Moechte ich sdd3 mounten (die "wichtige" Partition) kommt der "alte" Fehler:
in dmesg steht
Ich habe versucht, meine Platte mit anderen superblocks zu mounten. Die superblocks hatte ich einmal mit
und einmal mit Testdisk herausgesucht (Anmerkung: Testdisk fand nur die Superblocks bis 2654208). Mit E2fsk einmal mit Blockgroessenangabe
und einmal ohne Blockgroessenangabe
zu reparieren versucht, ohne erfolg (natuerlich habe ich es mit allen Superblocks versucht).
Was mich jedoch sehr stutzig macht, ist der umstand das ich die Platte als ext4 mounten kann:
dmesg gibt mir:
Ich kann alle meine Daten sehen (ls) aber beim Kopieren der Daten gibt es I/O Errors. Ein grep -r ueber alle Daten sagt mir, das geschaetzte 80% diesen I/O Error liefern.
Nun, ich glaube nicht dass das NAS auf ext4 setzt um Daten zu speichern, sondern auch auf ext3. Weiters leugne ich (NOCH) die Annahme das 80% meiner Daten fort sind :-). Die Frage an euch: Was kann ich tun?
Habe ein NAS (QNAP TS-109) welches mir (vermutlich durch einen Bug in der Firmware) meine Daten "zerschossen" hat. Das NAS lauft unter Linux. Ich habe mittels dd_rescue ein Image der betroffenen Platte auf eine externe gemacht, auf der ich experementieren kann:
Das ist die Platte um die es sich dreht
Code:
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 * 1 66 530113+ 83 Linux
/dev/sdd2 67 132 530145 82 Linux swap / Solaris
/dev/sdd3 133 60791 487243417+ 83 Linux
/dev/sdd4 60792 60800 72292+ 83 Linux
sdd1 ist das Betriebssystem der Platte, sdd2 swap, sdd3 sind die Daten und sdd4 ist das home der Linux partition.
sdd1 und sdd4 lassen sich ohne Probleme mounten (hier am Beispiel von sdd1 gezeigt):
Code:
root@grml ~ # mount /dev/sdd1 /mnt/floppy
root@grml ~ # mount
tmpfs on /dev type tmpfs (rw,size=10M,mode=0755)
/dev/pts on /dev/pts type devpts (rw)
rootfs on / type rootfs (rw)
none on /sys type sysfs (rw)
none on /proc type proc (rw)
/dev/hda on /live/image type iso9660 (ro,noatime)
tmpfs on /live/cow type tmpfs (rw,noatime)
aufs on / type aufs (rw,noatime,xino=/live/cow/.aufs.xino,br:/live/cow=rw:/grml.squashfs=ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
/dev/pts on /dev/pts type devpts (rw)
/dev/sdd1 on /mnt/floppy type ext3 (rw)
Moechte ich sdd3 mounten (die "wichtige" Partition) kommt der "alte" Fehler:
Code:
root@grml ~ # mount /dev/sdd3 /mnt/floppy
mount: wrong fs type, bad option, bad superblock on /dev/sdd3,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
in dmesg steht
Code:
EXT3-fs: sdd3: couldn't mount because of unsupported optional features (40).
Ich habe versucht, meine Platte mit anderen superblocks zu mounten. Die superblocks hatte ich einmal mit
Code:
root@grml ~ # mke2fs -n /dev/sdd3
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
60915712 inodes, 121810854 blocks
6090542 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
3718 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000
und einmal mit Testdisk herausgesucht (Anmerkung: Testdisk fand nur die Superblocks bis 2654208). Mit E2fsk einmal mit Blockgroessenangabe
Code:
root@grml ~ # e2fsck -b 229376 -B 4096 /dev/sdd3
e2fsck 1.40-WIP (14-Nov-2006)
e2fsck: Filesystem has unsupported feature(s) while trying to open /dev/sdd3
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>
und einmal ohne Blockgroessenangabe
Code:
root@grml ~ # e2fsck -b 229376 /dev/sdd3
e2fsck 1.40-WIP (14-Nov-2006)
e2fsck: Bad magic number in super-block while trying to open /dev/sdd3
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>
zu reparieren versucht, ohne erfolg (natuerlich habe ich es mit allen Superblocks versucht).
Was mich jedoch sehr stutzig macht, ist der umstand das ich die Platte als ext4 mounten kann:
Code:
root@grml ~ # mount -t ext4dev /dev/sdd3 /mnt/floppy
root@grml ~ # mount
tmpfs on /dev type tmpfs (rw,size=10M,mode=0755)
/dev/pts on /dev/pts type devpts (rw)
rootfs on / type rootfs (rw)
none on /sys type sysfs (rw)
none on /proc type proc (rw)
/dev/hda on /live/image type iso9660 (ro,noatime)
tmpfs on /live/cow type tmpfs (rw,noatime)
aufs on / type aufs (rw,noatime,xino=/live/cow/.aufs.xino,br:/live/cow=rw:/grml.squashfs=ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
/dev/pts on /dev/pts type devpts (rw)
/dev/sdd3 on /mnt/floppy type ext4dev (rw)
dmesg gibt mir:
Code:
EXT4-fs warning: mounting fs with errors, running e2fsck is recommended
EXT4 FS on sdd3, internal journal
EXT4-fs: mounted filesystem with ordered data mode.
EXT4-fs: file extents enabled
Ich kann alle meine Daten sehen (ls) aber beim Kopieren der Daten gibt es I/O Errors. Ein grep -r ueber alle Daten sagt mir, das geschaetzte 80% diesen I/O Error liefern.
Nun, ich glaube nicht dass das NAS auf ext4 setzt um Daten zu speichern, sondern auch auf ext3. Weiters leugne ich (NOCH) die Annahme das 80% meiner Daten fort sind :-). Die Frage an euch: Was kann ich tun?