PDA

View Full Version : [SOLVED] Ubuntu 64bit installer doesnt detect windows 8.1 64bit



saeed11
March 19th, 2015, 02:26 AM
Hello friends
I need to install ubuntu 14.04 64bit alongside my windows 8.1 64bit, but the installer doesnt detect my windows and when i choose "something else" it shows my whole hard drive space.

searched alot, havent succeeded.

I have Asus n46vz and my default OS was win7 64bit.

Thank you in advance.

Bucky Ball
March 19th, 2015, 03:30 AM
Welcome. You need to switch off faststart/fastboot (don't know what it's called, exactly) in Windows. This (http://www.pcmag.com/article2/0,2817,2417361,00.asp) might help. You also need to go into the BIOS and check there is no fastboot for Win there. Rarely use Win so sorry I can't be more specific, but suspect this is your issue.

With it switched on, Windows is basically hibernating so it won't be seen by your installer (it's hiding in the bushes!). Good luck.

* Just had a quick sniff round and 'secure boot' in the BIOS is what you're looking to switch off. If a pre-installed Win8 it will be in UEFI mode. This means you MUST install Ubuntu in UEFI also. Make sure you have the install device set to boot this way in BIOS also.

LostFarmer
March 19th, 2015, 04:18 AM
Open a terminal in the live linux and post the output of

sudo parted -l -l is a small L . It will tell us if it is MBR or GPT partitioning and if it was GPT and now incorrectly change to MBR.

fantab
March 19th, 2015, 01:26 PM
the installer doesnt detect my windows and when i choose "something else" it shows my whole hard drive space.
There are a few reasons why the above happens:
1. Switch off Hibernation (if you use it) and shutdown Windows properly. In Windows 8+ this is called FastStartup (http://www.eightforums.com/tutorials/6320-fast-startup-turn-off-windows-8-a.html)... disable it.
2. There could be filesystem errors on the HDD - Run Chkdsk (http://www.eightforums.com/tutorials/6221-chkdsk-check-drive-errors-windows-8-a.html) to correct the errors.
3. If there is NO Linux compatible filesystem on the HDD... you should at least have 10Gb 'Unallocated space' on the HDD.

If third, then it will be a good idea to see the output of :

sudo parted -l

Moreover, it is strongly suggested that you go through the following URLs before you install Ubuntu:
https://help.ubuntu.com/community/UEFI
http://ubuntuforums.org/showthread.php?t=2147295
(http://ubuntuforums.org/showthread.php?t=2147295)

saeed11
March 19th, 2015, 02:36 PM
Dear Bucky Ball

I switched off fast start-up, yes it was necessary to switch it off but still didn't help.

about the UEFI: I didn't have UEFI, think that's because I had win 7 pre-installed on my laptop.

Thank you

saeed11
March 19th, 2015, 02:47 PM
Dear LostFarmer and Fantab

I typed "sudo parted -l", the result is in the attachments,ubuntu_1.jpg.

it asks a question so one time i typed "y" and the result is ubuntu_2.jpg

and the other time I typed "n" and the result is ubuntu_3.jpg

PS: I'm installing Ubuntu from my flash memory.

------------------------------------------------------------------
I ran check disk from properties of drive.
checked all my drives including windows 8.1 drive (C), the drive I want Ubuntu (D) installed in, my other two drives and eventually my flash memory which contains the Ubuntu installation. There are no errors.

LostFarmer
March 19th, 2015, 03:03 PM
"parted -l" does not indicate any partitions. Can you still boot into Windows ? I suspect not. But if you can, go to disk management and post a screen shot.

saeed11
March 19th, 2015, 03:16 PM
Dear LostFarmer

I can log in to windows, I created 200GB of unallocated space, but the installer didn't detect my windows.
here is the screen shot

fantab
March 19th, 2015, 05:31 PM
If you don't have Uefi and Windows 8 is installed in MBR/Legacy mode then you probably also don't have GPT... I think your HDD partition table is corrupt...
In your 'parted -l' output you see the warning.
This can be easily fixed with 'fixparts (http://www.rodsbooks.com/fixparts/)'... its a simple utility should be present by default on Ubuntu Live. If it is not then it can be installed with package 'gdisk'.

sudo apt-get install gdisk

Another important thing:
You already have 4 Primary partitions on the HDD... and you've left 200gb unallocated space, however MBR or 'msdos' partition scheme only allows 4 Primary Partitions.
To install Ubuntu you will need to delete one of your existing partitions then Using Gparted from Ubuntu you must make an Extended Parittion to overcome the only 4 Primary Parittions limit...

LostFarmer
March 19th, 2015, 11:48 PM
I agree with running 'fixparts', that will correctly remove left over GPT header data. My understanding the program will automaticly remove the GPT left over GPT header, just run the program and quit.

'fantab' did make a error when looking at your hdd partitions, 2 of your NTFS partitions are logical.

I did learn something, I figured when running 'parted -l' and said No to GPT it would display the MBR partitions.

saeed11
March 20th, 2015, 01:44 PM
Dear LostFarmer and fantab
when I said no to "parted -l" it showed my flash memory containing the Ubuntu installation.

I am reading through the pages you suggested, and Im not much of a professional on these topics :p
right now im gonna run the fixparts on the live linux and then deal with the thing fantab said:

"Another important thing:
You already have 4 Primary partitions on the HDD... and you've left 200gb unallocated space, however MBR or 'msdos' partition scheme only allows 4 Primary Partitions.
To install Ubuntu you will need to delete one of your existing partitions then Using Gparted from Ubuntu you must make an Extended Parittion to overcome the only 4 Primary Parittions limit..."

saeed11
March 20th, 2015, 03:26 PM
I executed "fixparts" in live Ubuntu. The result is attached (new doc 4_3).It says the directory doesn't exist, however when I was checking if it exists, I saw my other partitions ,except the unallocated 200GB one, in the explorer(new doc 4_1). I dont know if they were there before I executed "fixparts":(

hmm but the installer still doesnt detect my windows and in "something else" shows my whole hard disk space.

Mark Phelps
March 20th, 2015, 06:03 PM
Your Disk Management screenshot shows "I:", presumably a partition your created for Ubuntu. Get rid of that! Ubuntu will not install in a Windows filesystem partition and Disk Management can NOT create Linux filesystem partitions.

Instead, what you need is Unallocated space on the drive, which you then format using the Ubuntu installer.

saeed11
March 20th, 2015, 07:12 PM
Dear Mark Phelps
That "I:" is my flash memory that contains Ubuntu installation. I made it bootable using "rufus". An application for installing OSs with flash memories.

LostFarmer
March 20th, 2015, 11:36 PM
Your internal hdd is sda as per parted -l, so the correct command is 'fixparts /dev/sda' not /dev/sdc.

saeed11
March 21st, 2015, 04:35 PM
Dear LostFarmer

I will run the command but before that lets check on this attachment I put here.
I made my live Ubuntu using "rufus". in the "partition scheme and target system type" there are 3 alternatives:
"MBR partition scheme for BIOS or UEFI computers
MBR partition scheme for UEFI computers
GPT partition scheme for UEFI computers
"
which one should I choose?Have they caused these problems??

I will run the right command as you said, after making my live Ubuntu again.

Ko_Char
March 21st, 2015, 08:03 PM
You need sudo when you run fixparts.


sudo fixparts /dev/sda

LostFarmer
March 21st, 2015, 10:00 PM
Your current Win8 is in MBR mode. The diskmanagment you posted does not have the needed fat32-EFI partition for GPT. So linux needs to be booted and install also in MBR mode. Have never used RUFUS to make a linux boot usb , but would say select "MBR partition scheme for BIOS or UEFI computers". Just to be sure linux usb is booted in MBR mode run

ls /sys/firmware You do NOT want to see "efi" as one of the items listed. If you see 'EFI' , you have booted into GPT/EFI mode not MBR mode.

On my EFI boot, you do NOT want:
[dad:/home/dad] $ ls /sys/firmware
acpi efi memmap

fantab
March 22nd, 2015, 01:22 PM
I executed "fixparts" in live Ubuntu. The result is attached (new doc 4_3).It says the directory doesn't exist, however when I was checking if it exists, I saw my other partitions ,except the unallocated 200GB one, in the explorer(new doc 4_1). I dont know if they were there before I executed "fixparts":(
You have entered a wrong disk id with fixparts, your drive or disk is /dev/sda and NOT /dev/sdc...

Your internal hdd is sda as per parted -l, so the correct command is 'fixparts /dev/sda' not /dev/sdc.

Also use a simple write tool in Windows like Win32 Disk Imager (https://wiki.ubuntu.com/Win32DiskImager) or http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows

Unless your partition is fixed, you will have problems installing, no matter where and how you burn the iso to usb.
Read the fixparts tutorial I have linked in my earlier post and run it safely.

saeed11
March 22nd, 2015, 10:51 PM
Helodear LostFarmer, fantab and every one who helped me

Finally I succeeded!
Here is a brief of what I did from the first moment till now, Just to be a tutorial for myself:

1. my diskwas dynamic, deleted my whole partitions and changed it to Basic.

2.Switched off fast start up in my windows 8 (type "po bu" instart and go to "power buttons" section)

3.Ityped "sudoparted -l", the result is in the attachments,ubuntu_1.jpg.
wefound that my partition table is GPT table but is somehow corrupted as mentioned in the terminal window.
itasks a question so one time i typed "y" and the resultis ubuntu_2.jpg

and the other time I typed "n"and the result is ubuntu_3.jpg (when I said no to "parted-l" it showed my flash memory containing the Ubuntuinstallation.)

4.Soto correct my partitio table I ran the command "sudofixparts /dev/sda".Unfortunately I dont have the image but thinks I typed "y"ond it corrected my partition table and the i typed "?" tosee the commands available and then typed "w" to write thechanges to my disk and save the changes.

5.i booted my flashusing rufus and restarted my pc and entered the non uefi installationand it recognized my other partiotions.(Booting in UEFI mode resultedin the installation to not detect my windows, but it still detectedmy partitions)

6.I installed ubuntu and partitioned it usingthis help

I wrote these in a hury, might have missed things,will correct it again!!

Thank you!

saeed11
March 22nd, 2015, 10:56 PM
I would like to thank you for your helps.
I really didnt think I would succeed but I did. Been dealing with it couple of weeks and couldnt overcome it without your helps ;)

I learned alot from you about partiotioning, partition table ...

Thanks alot my friends :)