View previous topic :: View next topic |
Author |
Message |
Getrb n00b
Joined: 20 Jun 2003 Posts: 30 Location: Europe -> Sweden -> Lidköping
|
Posted: Mon Mar 15, 2004 6:19 pm Post subject: Reiserfs rescue... :-S |
|
|
Hi ive been trying to fix an error on one of my drives but it only gets worse!!
Any of you that has any experiance in how to redo all of my data?
Ive done som attempts to rebuild the tree and so on.
But this aint working well out!
Nothing gets right, all files mixed and not in place + not possible to open them.
Im only intrested in one partition (/dev/hdb7) that holds alot of fotographys.
Note: cant emerge qtparted.
All other tips and tricks, scripts + whatever... appreciated! _________________ WANTED: a Linux-based webshop, *secure *good layout *output for the books and more! Ideas? :-) |
|
Back to top |
|
|
bombcar Guru
Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Mon Mar 15, 2004 7:57 pm Post subject: |
|
|
Can you give some background on what happened to the drive? |
|
Back to top |
|
|
Getrb n00b
Joined: 20 Jun 2003 Posts: 30 Location: Europe -> Sweden -> Lidköping
|
Posted: Mon Mar 15, 2004 9:02 pm Post subject: |
|
|
Shore :-)
The initial trouble was that i got a overlap of 2 partitions.
Namely /dev/hdb6 and 7. (Btw. this happened while installing WXP.)
After that ive tried to use qtparted (by a Kurslinux livecd aka Knoppix)
And the reiserfs tools but i asume that there are some better commands than those i used.
Perhaps even an more advanced method (script) to crosscheck everything just choosing what partition is important. _________________ WANTED: a Linux-based webshop, *secure *good layout *output for the books and more! Ideas? :-) |
|
Back to top |
|
|
bombcar Guru
Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Mon Mar 15, 2004 9:45 pm Post subject: |
|
|
Ouch! Overlapping partitions are a killer. You'll be lucky to get anything.
If you really want the data, here's what I'd do.
STOP WRITING TO /dev/hdb! Every write kills more data.
Try to get another drive somewhere, that is bigger than /dev/hdb7. I'll call it /dev/hdc
Create a partition on /dev/hdc that is a little bigger than /dev/hdb7, which I call /dev/hdc1
Run this command, which copies all of /dev/hdb7 to /dev/hdc1. Be careful! A mistype here could eat more data!
Code: |
dd if=/dev/hdb7 of=/dev/hdc1
|
Now you have a copy that you can try recovering. If you're lucky, you'll get some data. If not, well, at least you can get some sympathy.
Try this command, and see how well it does:
Code: |
reiserfsck --rebuild-tree
|
If that doesn't work, there are more options you can try. Given that you're working on a copy of the disk, you can recreate /dev/hdc1 again if reiserfsck goes nuts.
Code: |
reiserfsck -S --rebuild-tree --no-journal-available --rebuild-sb
|
is a drastic thing you could try. |
|
Back to top |
|
|
Getrb n00b
Joined: 20 Jun 2003 Posts: 30 Location: Europe -> Sweden -> Lidköping
|
Posted: Mon Mar 15, 2004 10:27 pm Post subject: |
|
|
Okey i didnt do any backups first but im in the process of:
"cp --force --backup /dev/hdb7 /directory/"
Hoping this will serve as equivalent...
The first option is already history ;-)
But ill give the other option a go as soon as ive got a backup now.
Thanks :-) _________________ WANTED: a Linux-based webshop, *secure *good layout *output for the books and more! Ideas? :-) |
|
Back to top |
|
|
bombcar Guru
Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Mon Mar 15, 2004 11:13 pm Post subject: |
|
|
Hope this works out for you! But I fear you will lose at least some data.
C'est la vie, I guess. |
|
Back to top |
|
|
Getrb n00b
Joined: 20 Jun 2003 Posts: 30 Location: Europe -> Sweden -> Lidköping
|
Posted: Mon Mar 15, 2004 11:43 pm Post subject: |
|
|
bombcar wrote: |
Code: |
reiserfsck -S --rebuild-tree --no-journal-available --rebuild-sb
| |
Now thats about all data gone...
(It was not possible to run that whole sekvens in order, one giving the other though..)
But all that just made it even .... hmmm yeah!
But ill continue a deep down on this one, hopfully i can recover some of it :-) I assume there to be some usefull opensource alternativs to the standard tools... fsck))
Thank's for helping out :-) _________________ WANTED: a Linux-based webshop, *secure *good layout *output for the books and more! Ideas? :-) |
|
Back to top |
|
|
|