Fedora Linux Support Community & Resources Center
  #1  
Old 21st June 2004, 12:47 AM
Valent Offline
Registered User
 
Join Date: May 2004
Age: 35
Posts: 338
Exclamation Undelete or Unformat reiserfs partition

I wanted a second GNU/Linux to test out beside my primary one so I popped installation disk and started the installation.

****
if you don't have time to read it all just go to the end paragraph.
****

The disk situation was this:
/dev/hda1 - primary GNU/Linux
/dev/hda2 - swap
/dev/hda3 - home
/dev/hda5 - 6.3 GB "future linux" partition
/dev/hda6 - 26 GB data partition (reiserfs)

I first tried resizing hda5 to 4GB (which is enough for most distros) because I wanted a small partition left for Knoppix or some other smaller distro as well.

Resize didn't work, so I just deleted hda5 (hda6 become hda5) and then added two partitions in it's place. Strange thing was that I got hda5 and hda7! The old hda6 insisted that it kept it's hda6 label! I thought that this big partition would be hda7 because it is the last partition on disk.

When I hit complete I got some errors. These deleting and creating partitions mush have confused the partitioning program. And when I booted my working GNU/Linux I saw that my data partition is empty! Not only that but I got some strange small partitions. Before real hda5 there is one small partition (maybe only a few MB) and also one after hda6!
I deleted them from there and created two partition again. But not I got an formated 26GB partition where my stuff was!

How do I undelete, or unformat this reiserfs partition to get my data back. What is the procedure? What tools do I need?

Thank you.
Reply With Quote
  #2  
Old 22nd June 2004, 01:02 AM
foolish Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Aalesund, Norway
Age: 27
Posts: 1,888
Hmm, sounds like you're data's lost to me. You can try to do some raw data recovery. I don't know how.
__________________
Sindre Pedersen Bjørdal || http://www.fedorasolved.org || Hardware Profile
- Please adhere to the FedoraForum Guidelines.
Reply With Quote
  #3  
Old 22nd June 2004, 12:52 PM
Valent Offline
Registered User
 
Join Date: May 2004
Age: 35
Posts: 338
Talking

Quote:
Originally Posted by foolish
Hmm, sounds like you're data's lost to me. You can try to do some raw data recovery. I don't know how.
I'm going to criticize you! How can you say that it you don't know anything about it?

Her is the procedure on how I got data back:

http://marc.theaimsgroup.com/?l=reis...3491425826&w=2

Hello,

while reinstalling a Debian on a new hard drive, I made the mistake to
format in reiserfs my good old /home which was on /dev/sda7 instead of
formatting the new /dev/hda7. Gasp ! Eight gigabytes lost ...

Or ... maybe it was not totally lost :-) I immediately made a dump of
the partition with 'dd' and started grepping some known text on it. It
seemed that no data was really lost. I didn't know what to do. So I read
the man pages and found the reiserfsck command quite interesting :-)

Ok, I am a total newbie to filesystems and to ReiserFS. So maybe it will
sound trivial to you, but just in case it happens to anyone else, I just
wanted to say that running a reiserfsck --rebuild-tree -S on my
partition was enough to unformat it. I ended up with some file in
lost+found, but a 'file *' is enough to discover what they are.

So, maybe it would be usefull to add an entry in the "Example of using"
section of the man page of reiserfsck, saying something like : "If you
reformatted by mistake a reiserFS partition, you can try to unformat it
by running reiserfsck --rebuild-tree -S on it".

Anyway, thank you for developing this filesystem.
Nicolas Vanderavero.
Reply With Quote
  #4  
Old 26th March 2011, 01:14 PM
v0m17 Offline
Registered User
 
Join Date: Jan 2011
Posts: 20
linuxfedorafirefox
Re: Undelete or Unformat reiserfs partition

I have never seen any examples in a MAN page ,I never understood why not ,since new commands are difficult to use from a man page,but most people understand it better when given an example.
Reply With Quote
Reply

Tags
partition, reiserfs, undelete, unformat

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 9 on reiserfs partition ms-trex Installation, Upgrades and Live Media 1 27th May 2008 11:20 PM
Can't mount reiserfs partition?! ljoslin Using Fedora 4 16th November 2007 07:48 AM
How to do it ? About reiserfs filesystem undelete jiawj Using Fedora 0 23rd May 2005 04:49 PM
Possible hdd install from reiserfs partition? wolf0403 Installation, Upgrades and Live Media 6 17th May 2005 08:32 AM
how to resize a reiserfs partition? BoHu Using Fedora 4 22nd March 2005 06:14 PM


Current GMT-time: 21:48 (Friday, 25-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat