Ubuntu does not detect my OS in Legacy boot

view story

http://askubuntu.com – I have my Windows 8 installed in Legacy boot mode and I want to install Ubuntu alongside it. I downloaded the Ubuntu 12.04.2 64-bit version from the website and YUMI installer for Windows and made a bootable pen drive. Then, when I went for the installation, where it should ask me whether I want to erase disk and install Ubuntu or install Ubuntu alongside windows or something else, it says no other OS detected. My system came pre-installed with Windows 8 in UEFI firmware mode and I reinstalled it in Legacy boot mode, formatting my hard disk completely as I had heard that having a dual-boot in (HowTos)