Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I had dual boot on my old laptop (2006), with win XP and Ubuntu 13.04 witch was installed after the XP, and everything worked well for me.

So, as per usual, I decided to re-install my XP, witch actually halfway crashed with some "random error"... Anyway, I can live without it (almost)...

After rebooting, I found out that the GRUB or/and MBR is gone (messed up). I managed to rescue these with the Ubuntu live-CD and big help from AskUbuntu community. Yet, the thing are not the same as before...

unallocated HDD - HDD shown as entirely unallocated, information about unallocated.

Due to my state of Newbie, I can't even describe the problem well, so uploading some pictures so you can see what I have.

I would lie to have more space on my primary Linux partition, but before that - I want my partition table to be recognized, as well as to cease the overlap of the partitions...

Disks - no partition 3, it's a content of a extended partition 2.

Please ask for more info as needed, I'll try my best to gather it for you, on a same way I'm discovering and learning Ubuntu.

Any thought is appreciated. Thank you.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is what I see after run sudo fdisk -lu

Terminal

omitting empty partition (5)
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5e6e6c09

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    78482484    39241211    7  HPFS/NTFS/exFAT
/dev/sda2        78483454   312560639   117038593    f  W95 Ext'd (LBA)
/dev/sda3       107780148   312560639   102390246    7  HPFS/NTFS/exFAT
/dev/sda5        78483456   105826303    13671424   83  Linux
/dev/sda6       105828352   107780095      975872   82  Linux swap / Solaris
share|improve this question
1  
Add the output of sudo fdisk -lu to your question. –  psusi Jun 18 '13 at 14:28

1 Answer 1

up vote 1 down vote accepted

Your partition table is corrupt because sda3 and sda2 overlap. I suggest using fdisk to delete sda5 and sda6 ( which live inside sda2 ), then delete sda2, and recreate it so that it does not overlap with sda3, then you should be able to recreate sda5 and sda6 with the same start and end sectors to avoid data loss.

share|improve this answer
    
Firs of all, thank you for your answer. I still can't understand how/why is this all came to be this like... Anyway. Stupid Windows! :D I have been trying to understand well the steps I would need to take and in general whats going on with my partitions. I am kind a scared to touch the sda5 because its where my Ubuntu is, alongside with sda6 (swap). Then the sda3 is all my personal stuff, use to be "D:" on win. And all these 3 partitions (sda3, sda5 and sda6) is inside the sda2. Should I buy an external HDD to backup everything I have? And what could I use the sda1 for?? –  Gediminas Jeremiah Gudelis Jun 20 '13 at 18:57
    
@GediminasJeremiahGudelis, You should always have backups of data you care about because sooner or later, you will lose it somehow. –  psusi Jun 21 '13 at 2:26
    
Thank you for the tip. I will backup as soon as possible. A little thing more, can I just delete all the partitions and create just one for Ubuntu + Swap, and the second for my data? Would it be better to keep all my partitions as a primary (not extended)? –  Gediminas Jeremiah Gudelis Jun 21 '13 at 3:51
    
@GediminasJeremiahGudelis, if you want to totally reformat the drive and restore from backup, sure. I was trying to suggest a way to fix the problem without messing up your existing data. –  psusi Jun 21 '13 at 13:35
    
well that could be really nice. If you could just provide for me some guide or a 'step by step', I will immediately start doing it.. Thank you so much for all the effort you give on my problem :) –  Gediminas Jeremiah Gudelis Jun 21 '13 at 17:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.