Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Reiserfs partition recovery...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
plonka2000
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 160
Location: UK, Surrey

PostPosted: Fri Apr 08, 2005 4:52 pm    Post subject: Reiserfs partition recovery... Reply with quote

Hi,

my reiserfs partition is fubarred itself somehow...
Half of my partition is seemingly dissapeared and I'm not sure how to recover it exactly.

I've done various google searches and I've found this page which lists this command:
Code:
reiserfsck --rebuild-tree -S -l /root/recovery.log /dev/hda3


This seems to be the command I require but I suspect my hda3 partition is somehow reverted to an earlier state...

Does anyone know if this is what I need to do or any leads and/or steps for me to take in order to recover my partition...?

Unfortunately, its quite a large partition (About 120GB) and it stores about 60GB of important data that I have yet to backup (MP3s, personal documents, etc) so a straight format is not a viable option.

Any assistance is gratefully appreciated.

Thanks.
_________________
-Do not be afraid of what is different.
-Do not be afraid of being different.
-After all, ignorance is not an excuse.

Using Gentoo and Windows XPee.

Check my site here
Back to top
View user's profile Send private message
plonka2000
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 160
Location: UK, Surrey

PostPosted: Fri Apr 08, 2005 5:33 pm    Post subject: Reply with quote

Ahhh... forgot to paste in the url.

Its here.

Anyone who can help?
_________________
-Do not be afraid of what is different.
-Do not be afraid of being different.
-After all, ignorance is not an excuse.

Using Gentoo and Windows XPee.

Check my site here
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Fri Apr 08, 2005 6:36 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
plonka2000
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 160
Location: UK, Surrey

PostPosted: Fri Apr 08, 2005 7:07 pm    Post subject: Reply with quote

Any advice?

Anyone?
_________________
-Do not be afraid of what is different.
-Do not be afraid of being different.
-After all, ignorance is not an excuse.

Using Gentoo and Windows XPee.

Check my site here
Back to top
View user's profile Send private message
jtaylor72
Apprentice
Apprentice


Joined: 01 Feb 2004
Posts: 197
Location: "the can", WA

PostPosted: Fri Apr 08, 2005 7:16 pm    Post subject: Reply with quote

I know that I fdisked the wrong partition once and was in the process of converting it to ext3 or some other type when I realized. I followed those exact directions and I recovered all of my data. This was 50 or so gigs of data (which have since been burned to DVDs).
Back to top
View user's profile Send private message
plonka2000
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 160
Location: UK, Surrey

PostPosted: Sat Apr 09, 2005 8:24 am    Post subject: Reply with quote

Thanks very much everyone...
I'm currently recovering the partition, however, I found that the command above does not work correctly on gentoo when it is shortened.

In the end I ended up using this command:
Code:
reiserfsck --rebuild-tree --scan-whole-partition --logfile /root/recovery.log /dev/hda3


I'm hopeful that my data will be restored and I will report back my findings. :)

Again, thanks anyone for input.
_________________
-Do not be afraid of what is different.
-Do not be afraid of being different.
-After all, ignorance is not an excuse.

Using Gentoo and Windows XPee.

Check my site here
Back to top
View user's profile Send private message
plonka2000
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 160
Location: UK, Surrey

PostPosted: Sat Apr 09, 2005 10:03 am    Post subject: Reply with quote

Ok, I've finished restoring the partition... But I suspect not everything was saved...
For example my whole /bin directory is missing... :?

However, it seems all my personal files are there.

I get an error on bootup now though.
Here are the last few lines of bootup:

Code:
ReiserFS: hda3: found reiserfs format "3.6" with standard journal
ReiserFS: hda3: using ordered data mode
ReiserFS: hda3: journal params: device hda3, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: hda3: checking transaction log (hda3)
ReiserFS: hda3: Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 152k freed
Kernel panic - not syncing: no init found. Try passing init= option to kernel.



The PC was booting perfectly before this whole problem.

Anyone have any idea how I can rebuild the system or do i need to completely reinstall? :?
_________________
-Do not be afraid of what is different.
-Do not be afraid of being different.
-After all, ignorance is not an excuse.

Using Gentoo and Windows XPee.

Check my site here
Back to top
View user's profile Send private message
MagnusBerg
Guru
Guru


Joined: 07 Oct 2003
Posts: 370
Location: Burgsvik, Gotland, Sweden

PostPosted: Sat Apr 09, 2005 4:59 pm    Post subject: Reply with quote

Your post remembers me to do a fresh backup. ReiserFS is dangerous. ;-)

It's much possible that you have your lost files in lost+found but with renamed directories. The names is replaced with numbers. You have to rename them manually.

reiserfsck --rebuild-tree is close to a total dissaster and it's more useful to recover with a backup than trying that.
Back to top
View user's profile Send private message
plonka2000
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 160
Location: UK, Surrey

PostPosted: Sun Apr 10, 2005 9:50 am    Post subject: Reply with quote

MagnusBerg wrote:
Your post remembers me to do a fresh backup. ReiserFS is dangerous. ;-)

It's much possible that you have your lost files in lost+found but with renamed directories. The names is replaced with numbers. You have to rename them manually.

reiserfsck --rebuild-tree is close to a total dissaster and it's more useful to recover with a backup than trying that.


Yes, Reiserfs is dangerous indeed... I should have stuck with ext3 for this PC... :?
Is it possible to convert a Reiserfs partition to an ext3 partition without destroying the data?
_________________
-Do not be afraid of what is different.
-Do not be afraid of being different.
-After all, ignorance is not an excuse.

Using Gentoo and Windows XPee.

Check my site here
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Sun Apr 10, 2005 2:05 pm    Post subject: Reply with quote

I trust you are getting a new disk fast.. or was it caused by a powerdown?
Mvh
_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
plonka2000
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 160
Location: UK, Surrey

PostPosted: Sun Apr 10, 2005 8:02 pm    Post subject: Reply with quote

Cintra wrote:
I trust you are getting a new disk fast.. or was it caused by a powerdown?
Mvh


The hard disk is only 3 months old... And has performed perfectly until now, which leads me to believe it may be a freak error... :?
I've taken the drive out and I'm currently backing up my important information onto another PC...

I'll run some diagnostics on the drive to make sure its not dodgy... Then pop it back in, format it and re-setup with ext3...
I'll leave reiserfs for my games PC I think... This PC in particular has to run stable...

Besides, soon I my new Dual-Xeon 2.8 system with 2GB RAM will be setup...8)
Mwahahahaaa... :lol:
_________________
-Do not be afraid of what is different.
-Do not be afraid of being different.
-After all, ignorance is not an excuse.

Using Gentoo and Windows XPee.

Check my site here
Back to top
View user's profile Send private message
plonka2000
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 160
Location: UK, Surrey

PostPosted: Sun Apr 10, 2005 10:58 pm    Post subject: Reply with quote

I've backed up, formatted and now I'm restarting my 2005.0 install.
I've setup all my partitions, formatted them as ext3 with 'mke2fs -j' and I'm now mounting the partitions on the livecd bootup...

However, I'm getting an odd message when mounting the partitions:
Code:
# mount /dev/hda3 /mnt/gentoo
EXT2-fs warning (device hda3): ext2_fill_super: mounting ext3 filesystem as ext2


Can somebody please just tell me if this is normal and if I should ignore it or not...?

I want to use the journaling of ext3 in case of any future crashes... Will this problem maintain or is something else the matter here?

Thanks anyone.
_________________
-Do not be afraid of what is different.
-Do not be afraid of being different.
-After all, ignorance is not an excuse.

Using Gentoo and Windows XPee.

Check my site here
Back to top
View user's profile Send private message
plonka2000
Apprentice
Apprentice


Joined: 02 Dec 2004
Posts: 160
Location: UK, Surrey

PostPosted: Sun Apr 10, 2005 11:06 pm    Post subject: RTFM Reply with quote

I've found the answer to that question... My bad.

Its stated clearly in the Gentoo Installation Handbook that you need to specify what type of partition you are mounting only if using ext3 because of a bug in e2fsprogs.

Quote:
4.e. Mounting

Now that your partitions are initialized and are housing a filesystem, it is time to mount those partitions. Use the mount command. Don't forget to create the necessary mount directories for every partition you created. As an example we mount the root and boot partition:

Warning: Due to a bug in the e2fsprogs package, you need to explicitly use the mount -t ext3 option if you are using an ext3 filesystem.

Code Listing 15: Mounting partitions

# mount /dev/hda3 /mnt/gentoo
(For an ext3 partition:)
# mount -t ext3 /dev/hda3 /mnt/gentoo


:)
_________________
-Do not be afraid of what is different.
-Do not be afraid of being different.
-After all, ignorance is not an excuse.

Using Gentoo and Windows XPee.

Check my site here
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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