Ubuntu 12.04/12.10 can't detect windows or any other partitions(Asus z77 UEFI BIOS)-Collection of common programming errors

I’ve recently completed tinkering my new pc(motherboard ASUS z77 with UEFI BIOS) and unfortunately not everything works quite well.

After installing windows 7 ultimate on a single primary partition(SATA drive) I decided to allocate one more logical partition for additional needs. When I tried doing it with the manager – it said that it couldn’t allocate requested size even though I certainly asked for much less than it was available.

I thought that it might have been a windows issue and proceded to installing Ubuntu 12.10 x64. When the graphical interface loaded it showed me a message stating that it can’t find any other operating system on the drive. When I used custom partioning option it showed me none of my current partions(including that with windows). However, when I boot with “Try Ubuntu” feature it does find them ! I find it weird though.

Here’s what the console present me with:

ubuntu@ubuntu:~$ sudo os-prober 
/dev/sda1:Windows 7 (loader):Windows:chain
ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 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: 0x00072b98



 Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848   100020223    49906688    7  HPFS/NTFS/exFAT
/dev/sda3       100022270  1250263039   575120385    5  Extended
/dev/sda4       566669312  1250263039   341796864   83  Linux

I also tried creating partitions from disk utility which results in error: ,

Error creating partition: helper exited with exit code 1: In part_add_partition: device_file=/dev/sda, start=51211402240, size=1923000000, type=0x83 Entering MS-DOS parser (offset=0, size=640135028736) MSDOS_MAGIC found looking at part 0 (offset 1048576, size 104857600, type 0x07) new part entry looking at part 1 (offset 105906176, size 51104448512, type 0x07) new part entry looking at part 2 (offset 51211402240, size 588923274240, type 0x05) Entering MS-DOS extended parser (offset=51211402240, size=588923274240) readfrom = 51211402240 MSDOS_MAGIC found Exiting MS-DOS extended parser looking at part 3 (offset 290134687744, size 349999988736, type 0x83) new part entry Exiting MS-DOS parser MSDOS partition table detected containing partition table scheme = 1 got it Error: Can’t have overlapping partitions. ped_disk_new() failed

Here’s what I get when I try to install the system

i.stack.imgur.com/pjlb9.png, i.stack.imgur.com/g1lXN.png

P.S. It’s strange that I even can’t create any more partitions neither with disk-utility nor with windows 7 native tools