I got a new laptop (Dell XPS15, it came with Win7 HP) and I wanted to install linux on it (dualboot). So I booted up Kubuntu (which I use for playing with partitions) and shrinked down the OS volume (sda3) to make some space at the end of the disk.
After restarting the PC, the windows bootloader couldn't find the system volume, so it scanned the whole disk for partitions. (This is the standard procedure, I think). After another reboot the bootloader appeared offering to boot into two different systems - Win7 HP (the original one, works fine) or Win7 Ultimate. At first I thought this was some kind of error, but I tried to boot it. Windows Ultimate appeared and logged me in. This was apparently a partition they used for testing the laptop - a diagnostic test ran upon startup and there was diagnostic software everywhere. And then there was one more partition (fat32) with diagnostic tools.
The problem is: There were originally 3 partitions - the bootloader, the Recovery partition and the system partition. Now there are four partitions (the maximum) - Recovery, OS, the WinUltimate diagnostic OS, and the fat32 diagnostic partition. The bootloader DISAPPEARED, yet it still works. There is 100MB unallocated space at the beginning of the disk (I'll add a screenshot).
The question is: how do I get the bootloader back into the partition table? Will formatting the diagnostic partitions and running system recovery again help?
Thanks for any help.
ubuntu@ubuntu:~$ sudo fdisk -l -u
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x07f2837e
Device Boot Start End Blocks Id System
/dev/sda1 974725120 976771071 1022976 c W95 FAT32 (LBA)
/dev/sda2 * 212992 41172991 20480000 7 HPFS/NTFS
/dev/sda3 41174595 812937194 385881300 7 HPFS/NTFS
Partition 3 does not start on physical sector boundary.
/dev/sda4 939907072 974725119 17409024 7 HPFS/NTFS
Partition table entries are not in disk order