LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I fix a deleted partition table with NTFS and ext3 partitions? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-fix-a-deleted-partition-table-with-ntfs-and-ext3-partitions-643396/)

Draxx 05-19-2008 09:40 PM

How do I fix a deleted partition table with NTFS and ext3 partitions?
 
I installed a new distro and used lilo instead of grub. Thought I would try it out. I booted into my new install and was happy till I needed to get back into windows. Disk error.

I read a bit about it and found that if I used windows recovery it may fix the problem so I could get back into windows. Then I could fix the lilo to boot into linux via a live cd.

That is not what happened. I think that since the dual boot was on the same physical hard drive I replaced the partition table.

Now I can't boot to any OS on the drive. I want to recover data in my storage partition.

I have read about many ways to do this but am a little hesitant to do so because they seem to deal with only ntfs or Linux partitions. not different file systems on the same drive.

Any resources and/or comments would be greatly appreciated!

Peacedog 05-19-2008 09:52 PM

Hi Draxx, Welcome to lq. There is a thread here that may help. I'd suggest reading it all before you begin, including links.
Good luck. ;-)

syg00 05-19-2008 10:23 PM

Before you do anything, get a Linux liveCD booted, and issue "fdisk -l" (as root/sudo) and post it here.
That'll give you (us) a better idea of the state of the partition table.

Draxx 05-20-2008 09:08 AM

Will do!
 
Well thanks for the welcome and the replys!

I'll post the output of fdisk -l and read the thread after work tonight!

Draxx 05-20-2008 07:54 PM

Output of "sudo fdisk -l"
 
Heres the output;

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000001

Device Boot Start End Blocks Id System
ubuntu@ubuntu:~$

This mean that there is no partitions at all?

syg00 05-20-2008 08:06 PM

Looks like it - post the output of this
Code:

sudo dd if=/dev/sda count=1 | hd -C | less

Draxx 05-22-2008 11:42 AM

Got it working!
 
I read up on the link to the thread posted eqariler. I found out that gparted has testdisk on it. So I used testdisk and and recovered the partitions except for my old windows xp partition.

So I was able to get my information off of the storage partition. To do that I used a live CD and an external hard drive.

I am now installing OS's and repartitioning.

Thanks for the help! I'll be back! =)


All times are GMT -5. The time now is 06:49 AM.