I stupidly inserted the windows CD into my dual boot Ubuntu 11.10 / windows xp system. I just wanted to see if I could install windows on my external usb HD, but didn't actually go ahead with the install.
It seems like the windows CD messed up my MBR and I had to use boot-repair and the ubuntu 11.10 live CD to gain access to ubuntu again.
It seems to boot up a little differently (slower) but works. However, I now cant see any of my partitions in nautilus (there are 3) although I can mount them manually.
When I open gparted, it just shows my whole hard drive as unallocated (I know it has a windows partition that works and my ubuntu partition that I am using now). It gives an error 'cannot have overlapping partitions'.
Nothing will automount anymore, not even USB drives.
sudo fdisk -lu /dev/sda
which shows they are overlapping.
omitting empty partition (5)
Disk /dev/sda: 320.1 GB, 320072933376 bytes
240 heads, 63 sectors/track, 41345 cylinders, total 625142448 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: 0x877b877b
Device Boot Start End Blocks Id System
/dev/sda1 * 63 63842309 31921123+ 7 HPFS/NTFS/exFAT
/dev/sda2 63844350 133484084 34819867+ 5 Extended
/dev/sda3 127636488 133484084 2923798+ 82 Linux swap / Solaris
/dev/sda4 133484085 625137344 245826630 83 Linux
/dev/sda5 63844352 123445247 29800448 83 Linux
/dev/sda6 123447296 127635455 2094080 82 Linux swap / Solaris
How can I fix this?