LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2009, 06:35 PM   #1
kkv1
LQ Newbie
 
Registered: Oct 2009
Posts: 9

Rep: Reputation: 1
partition table recovery


Ok - i kind of was over ambitious and stupid but can somebidy help me recover from this ? Thanks in advance

I had a nice desktop dual booting vista and fedora 8. Now I got a few extra hours and thought I can upgrade to fedora 11. Then learnt that there is no upgrade but only a new install.

So I burnt the iso and tried to update the ext3 partitions only. The question was like 'update all linux partitions' and I said yes. Then it seems to have deleted the entire partition. I subsequently didnt proceed as I could see the entire 500 GB as one partition in the advanced menu. Usually it shows up the NT partitions and the linux partitions.

So now I have a missing OS error on bootup. The recovery CDs all tell that there is no partition and partition tools say that disk doesnt have partition table at all.

I have not formatted the disk yet and can see some files using some free recovery tools.

The big question is how can I get back the original paritions ? Is there a way to get back my original vista/fedora 8 ? I think the question is only to get the right partition markers. even if i do how is that updated. I remember i partitioned as 50GB/100GB/200GB/50GB/rest
but dont have exact cylinder info.

Anybody that can help .....
 
Old 10-25-2009, 08:03 PM   #2
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
What tools...

What exactly have you tried and what were those free tools you used? Have you searched this forum for prior threads? You are not the first.

One of the first things that is recommended when working with such a problem is to make a clone copy of the HDD. This can be done with a Clonezilla live-cd or with the command "dd" using a live-cd.

You do not want to do anything that writes data to the HDD, and some of the recovery procedures may make changes as they function, so working on a copy is advised.

Recovering partitions is nothing I have tried, but this advice is a basic beginning, and might draw in posters with more experience.

These criteria will also help with that.

http://www.linuxquestions.org/linux/...Ask_a_Question
 
Old 10-25-2009, 08:32 PM   #3
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
Try with the Ultimate boot CD, but if I remember it use a demo version or the apps, but the complete one.
 
Old 10-26-2009, 10:55 AM   #4
kkv1
LQ Newbie
 
Registered: Oct 2009
Posts: 9

Original Poster
Rep: Reputation: 1
Unhappy

Not sure what thorkelljarl is geting to. The question and situation is different from others and hence the question. Words may be common but situation isnt. Anyway if you are sure there is somebody who has it - can u post a link. I wont go through the effort of creating a login and posting if I had found one.

I have not written to any part of the disk after live cd.

i have tried to read with demo version of 'data recovery wizard' - the tool !

1) Is there some tool that can rebuild the partition table ?

2) Can I assume that live cd has deleted only the partition table ? Could it have reformatted/deleted the NTFS partitions ? Anybody who knows how live cd works ?
 
Old 10-26-2009, 11:43 AM   #5
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
At your own risk...

What many use when they have this problem is TestDisk, which can be found on several live-cds. It is not foolproof, therefor the suggestion about cloning.

http://www.cgsecurity.org/wiki/TestDisk

The idea is that, if you cloned a copy of the HDD or its partitions and worked on the copy, any difficulties encountered or mistakes made do not effect the original data, and you can clone again and try again.

If you only boot a live-cd, the live-cd should not change anything on the HDD, but a live-cd partitioning tool can certainly make changes.

The problem is that the partitioning tool you used has done something, but it is not clear exactly what, and you have not given enough information such that someone can begin to help. The details are important.

Can you use a live-cd to open a terminal as root and use the command "fdisk -l" and get any result?

Last edited by thorkelljarl; 10-26-2009 at 12:03 PM.
 
Old 10-26-2009, 10:39 PM   #6
kkv1
LQ Newbie
 
Registered: Oct 2009
Posts: 9

Original Poster
Rep: Reputation: 1
Thanks for the TestDisk link - will try that and let you know. I was trying the demo version of a comercial one - but this one sounds better.

I dont have another identical disk yet - is that something I can get if this doesnt work ? I think for some reason the live CD just deleted the partition table !

I thought I gave all the info. I tried to install fedora 11 - and went past the screen where I say remvoe all linux partitions - next page showed a gui of disks and I clicked cancel as I saw the whole thing as one disk - 470GB and I sensed trouble.

I had done fdisk before posting - it lists the entire disk as hda 470GB as if nothing is there. The demo tool above at least recognized my 50GB primary partition.

Hope TestDisk works !!
 
Old 10-26-2009, 11:08 PM   #7
kkv1
LQ Newbie
 
Registered: Oct 2009
Posts: 9

Original Poster
Rep: Reputation: 1
Question on TestDisk :

Got this in quick search :

Partition Start End Size in sectors
1 * HPFS - NTFS 0 32 33 6814 254 63 109480927 [SATA2]

Got this in deep search :
HPFS - NTFS 0 32 33 6814 237 7 109479800 [SATA2]

Which one should I use ? The difference seems to be only in the end 254 Vs 237 and reflects in the size.

Any thoughts ?
 
Old 10-27-2009, 05:44 PM   #8
kkv1
LQ Newbie
 
Registered: Oct 2009
Posts: 9

Original Poster
Rep: Reputation: 1
OK Finally got it all working.

For some reason, fedora 11 live cd deleted my partition table !

Cant believe it, but that is the case. So goes the dual boot thing since fedora 11 I think.

TestDisk is commandline and a simple tool to rebuild partition table. keep up the good work. Thanks

For those not so familiar with TestDisk:

deep search actually reports all previously created/deleted file system so multiple partitions/overlapping may be reported. just ignore that and look into what the files are in that partition - if it looks good then its fine.
 
Old 10-27-2009, 06:49 PM   #9
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
We didn't learn...

Congratulations on the recovery. You have not, however, really described what you tried and what worked. Notice the last admonition in the guide.

http://www.linuxquestions.org/linux/...Ask_a_Question

Last edited by thorkelljarl; 10-27-2009 at 08:07 PM.
 
Old 10-28-2009, 03:00 AM   #10
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello together,

I once had a similar issue with a damaged partition-table. Since then I have a (up to date) printed version of my partition tables. For example on my desktop-PC there are two disks hda and hdb.
Code:
echo "partitiontable of hda" > partitiontable.txt
fdisk -l /dev/hda >> partitiontable.txt
echo "partitiontable of hdb" >> partitiontable.txt
fdisk -l /dev/hdb >> partitiontable.txt
this produces a textfile with the output of fdisk -l. It is important to create a printed version of the table because you'll not have access to the file if you once need it in a case of emergency.
One may restore a damaged partitiontable with exactly the same data as for the old table. If there have been no changes of the filesystems or data on the disk, the disk will be in the same state as before.

Markus
 
1 members found this post helpful.
Old 10-31-2009, 09:30 AM   #11
kkv1
LQ Newbie
 
Registered: Oct 2009
Posts: 9

Original Poster
Rep: Reputation: 1
but given this info, how can we update the partition table ?

In any case the tool TestDisk seems to do exactly that - read and write without storing anything.

As before, I dont seem to understand thorkelljarl - what details are you looking for ? I just burn fedora 11 and boot from the cd andthen try to install and select all linux partitions as I dont want anything from past. Was lucky to have selected advanced checkbox. When it didnt show me my nt partition I cancelled and lo and behold when I reboot without cd - cant get into my original fedora 8 and vista ! Think this should be fixed in fedora 11 install cd.
 
1 members found this post helpful.
Old 10-31-2009, 01:23 PM   #12
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello kkv1,

note that the partition-table is only a table of contents of the harddrive and changing the partition-table doesn't change anything at the data on the drive.

Changes at the date take place only if you create a new filesystem on the partition. This we call "formatting" the partition.

Such a tool like TestDisk does nothing else than to read the raw data of a drive and "estimate" how the partition-table for such a drive should look like. So it can help you to get access to data which itself are not changed.

If you have a printed version of your partitiontable, it would be easy, to use for example fdisk and create new partitions using the same data like for the original partition-table.

Markus

Markus
 
1 members found this post helpful.
  


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
Harddrive Partition Table errased?? (data recovery) 1veedo Linux - Hardware 8 03-03-2008 03:18 PM
Partition Table recovery Tools? moeFEAR Linux - Software 5 11-01-2007 05:51 PM
partition table recovery phoenix7 Linux - Distributions 8 08-10-2005 12:47 AM
HDD Partition Table Recovery nikhil Linux - Hardware 10 03-04-2005 10:08 AM
Partition table recovery SYakush Linux - General 4 08-04-2004 04:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:01 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