LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-03-2006, 07:35 PM   #1
Dimitriy
Member
 
Registered: Oct 2005
Distribution: Ubuntu Dapper (6.06)
Posts: 92

Rep: Reputation: 15
Accidently Deleted my backup partition.......


Stuff happens. It just happens just so that this time I accidently mistaked my backup partition for another partition.

The partition was in the beginning of the drive and was formated to ReiserFS. How can I recover it? Surely its possible and perhaps simple??

If it was a Windows partition then I would be sweating right now. I had some important documents on there and would strongly prefer not to lose them. However I have faith in the Linux community and I hope that they something up their sleeves for dumb mistakes like mine.
 
Old 01-03-2006, 08:17 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Umount the partition NOW! Stop the possibility of writing to that partition and over-writing files.

Others Linux users with more information will respond; just protect that partition by umounting it until you have information to work with.
 
Old 01-03-2006, 09:26 PM   #3
Dimitriy
Member
 
Registered: Oct 2005
Distribution: Ubuntu Dapper (6.06)
Posts: 92

Original Poster
Rep: Reputation: 15
I deleted the partition using m$ windoze XP. What my next step?

Note: I didnt format the partition just deleted it.
 
Old 01-03-2006, 10:48 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
testdisk from a Linux liveCD - Knoppix has it I think.
 
Old 01-03-2006, 10:52 PM   #5
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Blog Entries: 1

Rep: Reputation: 30
you cannot recover ext3 partition
is it ext2?
 
Old 01-04-2006, 12:28 AM   #6
Dimitriy
Member
 
Registered: Oct 2005
Distribution: Ubuntu Dapper (6.06)
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Dimitriy
...The partition was in the beginning of the drive and was formated to ReiserFS.....
Nuff said. ReiserFS
 
Old 01-04-2006, 02:19 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
????.
Nothing to do with it.
Deleting a partition (using normal means) is merely deleting the partition table entry. This only defines the start and extent (sector count) of the partition.
No data is touched, and the filesystem is irrelevant. Yes, ignore the comment above - we are not talking filesystem recovery here, merely part table entries.

testdisk.
Or if you are sure of your sizing, just add a new partition of the same size from fdisk. Works fine.
 
Old 01-04-2006, 02:34 AM   #8
Dimitriy
Member
 
Registered: Oct 2005
Distribution: Ubuntu Dapper (6.06)
Posts: 92

Original Poster
Rep: Reputation: 15
One last thing: If the new partition is roughly maybe one or two megs off or say a few bytes off it shouldn't matter?? It should have any extra since its in the beginning and the second partition is still there.

Also if I add a new partition through fdisk how do I define the partition type??
 
Old 01-04-2006, 03:41 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
It's the beginning that counts - size is only of concern if you have filled it completely with data.
Very unlikely.
 
Old 01-04-2006, 11:56 AM   #10
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
I know that there are tools which can search a disk to look for partitions... the contents of various types of filesystem labels are fairly well known.

It's a good idea .. a little late to mention it now, perhaps .. to print the partition-table of a disk to a file, and store it in the root directory of the first partition of that disk. (And in a nice filing-cabinet...)
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
accidently deleted my ~/.Xauthority behmjoe Linux - Software 4 12-14-2005 10:53 PM
I accidently deleted /udev folder, what can I do? QuickTime Mandriva 1 09-29-2004 06:00 AM
accidently deleted /boot partition :( aditya_ic Linux - General 7 07-29-2004 02:37 AM
Help: Accidently deleted file patske Linux - Newbie 5 02-17-2004 09:34 AM
I accidently deleted the lib directory ICO Slackware 2 02-10-2004 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration