View previous topic :: View next topic |
Author |
Message |
lordll n00b

Joined: 11 Nov 2006 Posts: 4
|
Posted: Sat Nov 11, 2006 1:28 pm Post subject: fs recovery, alles ausser /usr, /var, /opt, /home deleted |
|
|
Hallo erstmal,
da ich beim Browsen leider nicht wirklich weiter gekommen bin, moechte ich doch mal folgende ... "Herausforderung" darstellen:
Aufgrund diverser Missverstaendnisse mit Jumper-configs, und und und habe ich es geschafft, alle Partitionen ausser /usr, /var, /opt, /home zu loeschen. Eine Windows-Installation, dieaus versehen auf der linux hd gestartet wurde, hat die Partitions-Tabelle geloescht und somit vermutlich hda1-3 beschaedigt/geloescht.
Die alte Struktur war folgende:
Code: |
hda1 /boot ext2
hda2 /swap swap
hda5 /root ext3
--------extended partition
hda6 /usr ext3
hda7 /var ext3
hda8 /opt ext3
hda9 /home ext3
|
Nun, nachdem ich den Fehler bemerkte, konnte ich mit Hilfe von testdisk die Partitionen hda6-9 in der Partitions-Tabelle rekonstruieren, folgende Struktur ergab sich:
Code: |
Disk /dev/hdb: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1475 14847 107418622+ f w95 extended <- via fdisk auf id 85, linux extended geaendert
/dev/hdb5 1475 3907 19543041 83 Linux
/dev/hdb6 3908 7555 29302528+ 83 Linux
/dev/hdb7 7556 8164 4891761 83 Linux
/dev/hdb8 8165 14847 53681166 83 Linux
|
Soweit so gut, das Problem ist nun, dass /etc mit den ganzen configs, init.d, conf.d .... fehlt und somit vermutlich ein Neuinstall noetig waere
/bisheriges System: stage1 gentoo x86, processor amd athlon-xp 64bit, aktueller gcc, usw, keine Probleme/
da aber zum Glueck noch das world file vorhanden ist, waere es vllt. moeglich, eine root partition zu erstellen, dann die fstab usw. mit den noch vorhandenen partitionen zu fuellen und ein emerge -avuDN world zu machen?
Des Weiteren habe ich noch versucht, mit diversen recovery programmen zu arbeiten.
foremost hat .rif Dateien ausgeworfen, die scheinbar Uebervleibsel des ext3 jorunals sind:
Ich habe darin z.B. die passwd, shadow und andere configs gefunden
Bsp Apache2 Config:
Code: | @Yø^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@lø^@^@zø^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@~Qø^@^@~]ø^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@²ø^@^@¿ø^
@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@Õø^@^@àø^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@ôø^@^@^Bù^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@^Yù^@^@$ù^@^@^
@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@8ù^@^@Dù^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@Yù^@^@eù^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@~Hù^@^@~Rù^@^@^@^@^
@^@^@^@^@^@^@^@^@^@^C^@^@^@¥ù^@^@¯ù^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@Ðù^@^@ßù^@^@^A^D^B^@^@^@^@^@^@^@^@^@^C^@^@^@óù^@^@þù^@^@^@^@^@^@^@^
@^@^@^@^@^@^@^C^@^@^@^Rú^@^@^[ú^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@-ú^@^@Cú^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@bú^@^@rú^@^@^@^@^@^@^@^@^@^
@^@^@^@^@^C^@^@^@~Kú^@^@ú^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@Æú^@^@Ýú^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@ýú^@^@^Mû^@^@^@^@^@^@^@^@^@^@^@^
@^@^@^C^@^@^@&û^@^@4û^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@Kû^@^@cû^@^@^@^@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@Þþ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^A^@^@^@^Hÿ^@^@^Uÿ^@^@^@^
@^@^@^@^@^@^@^@^@^@^@^C^@^@^@+ÿ^@^@7ÿ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@Lÿ^@^@Vÿ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@iÿ^@^@tÿ^@^@^@^@^@^@^
@^@^@^@^@^@^@^@^C^@^@^@~\ÿ^@^@¥ÿ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@Ëÿ^@^@Ôÿ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@æÿ^@^@ñÿ^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^C^@^@^@^E^@^A^@^N^@^A^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@ ^@^A^@2^@^A^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@M^@^A^@Z^@^A^@^@^@^@^@^@^@
^@^@^@^@^@^@^C^@^@^@x^@^A^@~C^@^A^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@~_^@^A^@^@^A^@^A^D^B^@^@^@^@^@^@^@^@^@^C^@^@^@Î^@^A^@á^@^A^@^A^D^B^@^@
^@^@^@^@^@^@^@^A^@^@^@ý^@^A^@^K^A^A^@^@^@^@^@^@^@^@^@^@^@^@^@libzip.so^@/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/libzip.so^@libz.so.1^@/li
b/libz.so.1^@libz.so^@/lib/libz.so^@libx11globalcomm.so.1^@/usr/kde/3.5/lib/libx11globalcomm.so.1^@libx11globalcomm.so^@/usr/kde/3.5/lib/l
ibx11globalcomm.so^@libxvidcore.so.4^@/usr/lib/libxvidcore.so.4^@libxvidcore.so^@/usr/lib/libxvidcore.so^@libxslt.so.1^@/usr/lib/libxslt.s
o.1^@libxslt.so^@/usr/lib/libxslt.so^@libxmms.so.1^@/usr/lib/libxmms.so.1^@libxmms.so^@/usr/lib/libxmms.so^@libxml2.so.2^@/usr/lib/libxml2
.so.2^@libxml2.so^@/usr/lib/libxml2.so^@libxmltok.so.0^@/usr/lib/libxmltok.so.0^@libxmltok.so^@/usr/lib/libxmltok.so^@libxmlparse.so.0^@/u
sr/lib/libxmlparse.so.0^@libxmlparse.so^@/usr/lib/libxmlparse.so^@libxkbui.so.1^@/usr/lib/libxkbui.so.1^@libxkbui.so^@/usr/lib/libxkbui.so
^@libxkbfile.so.1^@/usr/lib/libxkbfile.so.1^@libxkbfile.so^@/usr/lib/libxkbfile.so^@libwx_gtk2u_xrc-2.6.so.0^@/usr/lib/libwx_gtk2u_xrc-2.6
.so.0^@libwx_gtk2u_xrc-2.6.so^@/usr/lib/libwx_gtk2u_xrc-2.6.so^@libwx_gtk2u_svg-2.6.so.0^@/usr/lib/libwx_gtk2u_svg-2.6.so.0^@libwx_gtk2u_s
vg-2.6.so^@/usr/lib/libwx_gtk2u_svg-2.6.so^@libwx_gtk2u_stc-2.6.so.0^@/usr/lib/libwx_gtk2u_stc-2.6.so.0^@libwx_gtk2u_stc-2.6.so^@/usr/lib/
libwx_gtk2u_stc-2.6.so^@libwx_gtk2u_qa-2.6.so.0^@/usr/lib/libwx_gtk2u_qa-2.6.so.0^@libwx_gtk2u_qa-2.6.so^@/usr/lib/libwx_gtk2u_qa-2.6.so^@
libwx_gtk2u_plot-2.6.so.0^@/usr/lib/libwx_gtk2u_plot-2.6.so.0^@libwx_gtk2u_plot-2.6.so^@/usr/lib/libwx_gtk2u_plot-2.6.so^@libwx_gtk2u_ogl-
2.6.so.0^@/usr/lib/libwx_gtk2u_ogl-2.6.so.0^@libwx_gtk2u_ogl-2.6.so^@/usr/lib/libwx_gtk2u_ogl-2.6.so^@libwx_gtk2u_mmedia-2.6.so.0^@/usr/li
b/libwx_gtk2u_mmedia-2.6.so.0^@libwx_gtk2u_mmedia-2.6.so^@/usr/lib/libwx_gtk2u_mmedia-2.6.so^@libwx_gtk2u_media-2.6.so.0^@/usr/lib/libwx_g
tk2u_media-2.6.so.0^@libwx_gtk2u_media-2.6.so^@/usr/lib/libwx_gtk2u_media-2.6.so^@libwx_gtk2u_html-2.6.so.0^@/usr/lib/libwx_gtk2u_html-2.6
.so.0^@libwx_gtk2u_html-2.6.so^@/usr/lib/libwx_gtk2u_html-2.6.so^@libwx_gtk2u_gl-2.6.so.0^@/usr/lib/libwx_gtk2u_gl-2.6.so.0^@libwx_gtk2u_g
l-2.6.so^@/usr/lib/libwx_gtk2u_gl-2.6.so^@libwx_gtk2u_gizmos_xrc-2.6.so.0^@/usr/lib/libwx_gtk2u_gizmos_xrc-2.6.so.0^@libwx_gtk2u_gizmos_xr
c-2.6.so^@/usr/lib/libwx_gtk2u_gizmos_xrc-2.6.so^@libwx_gtk2u_gizmos-2.6.so.0^@/usr/lib/libwx_gtk2u_gizmos-2.6.so.0^@libwx_gtk2u_gizmos-2.
6.so^@/usr/lib/libwx_gtk2u_gizmos-2.6.so^@libwx_gtk2u_fl-2.6.so.0^@/usr/lib/libwx_gtk2u_fl-2.6.so.0^@libwx_gtk2u_fl-2.6.so^@/usr/lib/libwx
_gtk2u_fl-2.6.so^@libwx_gtk2u_deprecated-2.6.so.0^@/usr/lib/libwx_gtk2u_deprecated-2.6.so.0^@libwx_gtk2u_deprecated-2.6.so^@/usr/lib/libwx
_gtk2u_deprecated-2.6.so^@libwx_gtk2u_core-2.6.so.0^@/usr/lib/libwx_gtk2u_core-2.6.so.0^@libwx_gtk2u_core-2.6.so^@/usr/lib/libwx_gtk2u_cor
e-2.6.so^@libwx_gtk2u_animate-2.6.so.0^@/usr/lib/libwx_gtk2u_animate-2.6.so.0^@libwx_gtk2u_animate-2.6.so^@/usr/lib/libwx_gtk2u_animate-2.
6.so^@libwx_gtk2u_adv-2.6.so.0^@/usr/lib/libwx_gtk2u_adv-2.6.so.0^@libwx_gtk2u_adv-2.6.so^@/usr/lib/libwx_gtk2u_adv-2.6.so^@libwx_gtk2_xrc
-2.6.so.0^@/usr/lib/libwx_gtk2_xrc-2.6.so.0^@libwx_gtk2_xrc-2.6.so^@/usr/lib/libwx_gtk2_xrc-2.6.so^@libwx_gtk2_svg-2.6.so.0^@/usr/lib/libw
x_gtk2_svg-2.6.so.0^@libwx_gtk2_svg-2.6.so^@/usr/lib/libwx_gtk2_svg-2.6.so^@libwx_gtk2_stc-2.6.so.0^@/usr/lib/libwx_gtk2_stc-2.6.so.0^@lib
wx_gtk2_stc-2.6.so^@/usr/lib/libwx_gtk2_stc-2.6.so^@libwx_gtk2_qa-2.6.so.0^@/usr/lib/libwx_gtk2_qa-2.6.so.0^@libwx_gtk2_qa-2.6.so^@/usr/li
b/libwx_gtk2_qa-2.6.so^@libwx_gtk2_plot-2.6.so.0^@/usr/lib/libwx_gtk2_plot-2.6.so.0^@libwx_gtk2_plot-2.6.so^@/usr/lib/libwx_gtk2_plot-2.6.
so^@libwx_gtk2_ogl-2.6.so.0^@/usr/lib/libwx_gtk2_ogl-2.6.so.0^@libwx_gtk2_ogl-2.6.so^@/usr/lib/libwx_gtk2_ogl-2.6.so^@libwx_gtk2_mmedia-2.
6.so.0^@/usr/lib/libwx_gtk2_mmedia-2.6.so.0^@libwx_gtk2_mmedia-2.6.so^@/usr/lib/libwx_gtk2_mmedia-2.6.so^@libwx_gtk2_media-2.6.so.0^@/usr/
lib/libwx_gtk2_media-2.6.so.0^@libwx_gtk2_media-2.6.so^@/usr/lib/libwx_gtk2_media-2.6.so^@libwx_gtk2_html-2.6.so.0^@/usr/lib/libwx_gtk2_ht
ml-2.6.so.0^@libwx_gtk2_html-2.6.so^@/usr/lib/libwx_gtk2_html-2.6.so^@libwx_gtk2_gl-2.6.so.0^@/usr/lib/libwx_gtk2_gl-2.6.so.0^@libwx_gtk2_
gl-2.6.so^@/usr/lib/libwx_gtk2_gl-2.6.so^@libwx_gtk2_gizmos_xrc-2.6.so.0^@/usr/lib/libwx_gtk2_gizmos_xrc-2.6.so.0^@libwx_gtk2_gizmos_xrc-2
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
# CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
#</VirtualHost>
#
# The First Virtual Host is also your DEFAULT Virtual Host.
# This means any requests that do not match any other vhosts will
# goto this virtual host.
#
<IfDefine DEFAULT_VHOST>
<VirtualHost *:80>
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/localhost/htdocs"
|
Kann man damit evtl. noch versuchen etwas zu retten?
Bin fuer jede Hilfe dankbar, - ein Backup ist "natuerlich" nicht vorhanden...
Vielleicht hat ja jemand eine Idee, wie man am Besten zum alten System zurueckkehren kann.
/falls ihr mehr Informationen braucht, bitte melden/
Code: |
#debugfs /dev/hdb1
debugfs 1.39 (29-May-2006)
/dev/hdb1: Attempt to read block from filesystem resulted in short read while opening filesystem
#dmesg
hda: hda1 < hda5 hda6 hda7 hda8 >
|
sonst noch fsck:
Code: |
#fsck /dev/hdb
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
Couldn't find ext2 superblock, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/hdb
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>
#fsck /dev/hdb1 :(
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/hdb1
Could this be a zero-length partition?
|
Last edited by lordll on Sat Nov 11, 2006 4:28 pm; edited 1 time in total |
|
Back to top |
|
 |
smg Veteran


Joined: 13 Aug 2004 Posts: 1402 Location: /home/stephan
|
Posted: Sat Nov 11, 2006 2:11 pm Post subject: |
|
|
Hast du es mal mit testdisk probiert? Bzw. den Partitionstable kannst du ja neuschreiben lassen, das ist ja net das Problem. Wenn der Partitionstable weg is, sind die Daten noch lange nicht weg. Na ja vllt. weiß noch jemand was, wie man das rekonstruieren kann, wieviel sind dir die Daten wert? _________________ GnuPG-Key-ID: 0xF8C275D4
Fingerprint: 5B6F 134A 189B A24D 342B 0961 8D4B 0230 F8C2 75D4
Code: | perl -WTe '($")=$/;print qq(@{[reverse('0'..'100')]}$/BOOM!$/);' |
Last edited by smg on Sat Nov 11, 2006 3:46 pm; edited 1 time in total |
|
Back to top |
|
 |
lordll n00b

Joined: 11 Nov 2006 Posts: 4
|
Posted: Sat Nov 11, 2006 3:42 pm Post subject: |
|
|
hmm
s. o.
ja klar, es geht ja auch nicht nur um einen simplen Verlust der Partitionstabelle, sondern um das teilweise erfolgte Ueberschreiben durch eine Windoof Installation, bei der die Festplatte durch Jumper-Setzen auf 32GB limitiert war und somit meine / - Partition mit /etc , /bin /sbin ... und die /boot PArtition nicht mehr mit mir bekannten Methoden wie besipielsweise Testdisk wieder herzustellen sind.
Wie bereits oben geschrieben, konnte ich mit Hilfe von foremost wohl vom ext3 journal erstellte Dateien rekonstruieren...
(diese sehen nach configs aus)
btw, mir ist grad aufgefallen, dass der erste Post leicht verwirrend ist:
wo hda steht ist hdb gemeint bzw. ist dies auch nicht wirklich wichtig, da immer dieselbe harddisk gemeint ist |
|
Back to top |
|
 |
Storm.Xapek.de Tux's lil' helper

Joined: 09 Feb 2006 Posts: 97
|
Posted: Sat Nov 11, 2006 5:51 pm Post subject: |
|
|
Ich denke eine Neuinstalltion des gesamten System wäre wesentlich schneller,
(du könntest ja mithilfe der alten world-file alle alten Programme mergen)
wenn du gleich anfängst hast du am Montag dein "altes" (neues) System wieder.
Ich glaub kaum das man da noch was gescheites machen kann, sicher kann mans
irgendwie wieder zusammenfrickeln aber ich glaub kaumdas das System danach noch stabil ist. |
|
Back to top |
|
 |
lordll n00b

Joined: 11 Nov 2006 Posts: 4
|
Posted: Sat Nov 11, 2006 6:22 pm Post subject: |
|
|
scheint drauf hinaufzulaufen - allerdings geht mir das gegen meine Gentoo-Philosophie
erstmal noch nen bissl _gruebeln_!
------
edit: immer diese Rechtschreibfehler im amerikanischen Tastaturlayout  |
|
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
|
|