Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Reiserfs rescue... :-S
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Getrb
n00b
n00b


Joined: 20 Jun 2003
Posts: 30
Location: Europe -> Sweden -> Lidköping

PostPosted: Mon Mar 15, 2004 6:19 pm    Post subject: Reiserfs rescue... :-S Reply with quote

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
View user's profile Send private message
bombcar
Guru
Guru


Joined: 08 Apr 2003
Posts: 446
Location: Lincoln Acres, CA

PostPosted: Mon Mar 15, 2004 7:57 pm    Post subject: Reply with quote

Can you give some background on what happened to the drive?
Back to top
View user's profile Send private message
Getrb
n00b
n00b


Joined: 20 Jun 2003
Posts: 30
Location: Europe -> Sweden -> Lidköping

PostPosted: Mon Mar 15, 2004 9:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
bombcar
Guru
Guru


Joined: 08 Apr 2003
Posts: 446
Location: Lincoln Acres, CA

PostPosted: Mon Mar 15, 2004 9:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Getrb
n00b
n00b


Joined: 20 Jun 2003
Posts: 30
Location: Europe -> Sweden -> Lidköping

PostPosted: Mon Mar 15, 2004 10:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
bombcar
Guru
Guru


Joined: 08 Apr 2003
Posts: 446
Location: Lincoln Acres, CA

PostPosted: Mon Mar 15, 2004 11:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Getrb
n00b
n00b


Joined: 20 Jun 2003
Posts: 30
Location: Europe -> Sweden -> Lidköping

PostPosted: Mon Mar 15, 2004 11:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
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