PDA

View Full Version : [ubuntu] Win 8, 13.04 "Drive map" error?



TheFlyingP
April 27th, 2013, 08:54 PM
I have Windows 8 installed on my ssd, and unplugged all drives except the one I wanted to install 13.04 on. Install went smooth, however when I shut down and plugged the drives back in I can't get Win 8 to boot. I did sudo apt-upgrade grub, and it allowed 8 to show on the menu, but I am getting a "drive map" error. Any help?

oldfred
April 27th, 2013, 09:15 PM
Did you change the order drives were plugged in when you reconnected them?

Grub does not create drivemap anymore, but will use one if existing. It just scans drives on boot normally.
Is error booting Ubuntu or Windows? Do you get grub menu?

From Ubuntu or live installer.
Post the link to the BootInfo report that this creates. Is part of Boot-Repair:
https://help.ubuntu.com/community/Boot-Info
Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
https://help.ubuntu.com/community/Boot-Repair
You can repair many boot issues with this or 'Create BootInfo' report (Other Options) & post the link it creates, so we can see your exact configuration and diagnose advanced problems.
Install in Ubuntu liveCD or USB or Full RepairCD with Boot-Repair (for newer computers)
http://sourceforge.net/p/boot-repair/home/Home/
https://help.ubuntu.com/community/LinuxSecureRemix

TheFlyingP
April 27th, 2013, 09:20 PM
As for the order, if you mean did I plug different cables into different drives, then no...same cable, same drive. If you mean change the boot order? I did not, when I went to, the only option I have is ubuntu. I've tried to change it to my ssd, but it won't let me do that.

The error is booting Windows. I get GRUB menu, and can go to Ubuntu just fine, but when I select Windows, it gives me the drive map error.

oldfred
April 27th, 2013, 09:56 PM
Lets see some detail to see if it shows anything.

Post the link to the BootInfo report that this creates. Is part of Boot-Repair:
https://help.ubuntu.com/community/Boot-Info
Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
https://help.ubuntu.com/community/Boot-Repair
You can repair many boot issues with this or 'Create BootInfo' report (Other Options) & post the link it creates, so we can see your exact configuration and diagnose advanced problems.
Install in Ubuntu liveCD or USB or Full RepairCD with Boot-Repair (for newer computers)
http://sourceforge.net/p/boot-repair/home/Home/
https://help.ubuntu.com/community/LinuxSecureRemix

TheFlyingP
April 27th, 2013, 10:10 PM
http://paste.ubuntu.com/5610010/

I can attach pictures if need be.

oldfred
April 27th, 2013, 11:01 PM
You have Windows installed in BIOS with MBR(msdos) partitioning.

You have Ubuntu installed in UEFI with gpt partitioning.

You should be able to boot Windows by going back into UEFI and turning UEFI off. But to boot Ubuntu you have to go into UEFI and turn UEFI on. Not an easy way to dual boot.

All systems must be either UEFI or all BIOS to easily dual boot.
Windows will only boot from gpt partitioned drives with UEFI. And with UEFI only boot from gpt drives.
Ubuntu will boot from gpt drives with either UEFI or BIOS and boot repair can convert if drive is gpt.
IF drive is MBR(msdos) you can only boot from BIOS mode.

When you use Windows on a drive that was gpt it only deletes the primary gpt partition table. But gpt keeps a backup partition table and Windows does nothing with that. Then LInux tools see a MBR table and the back up gpt table and do not know how to handle the drive.
GUID Partition Table detected, but does not seem to be used.
Best to use fixparts and remove gpt data if drive really is MBR.

Fixparts - Repair broken partition tables (not overlapping issues) & delete Stray gpt data from MBR drives
http://ubuntuforums.org/showthread.php?t=1705325
http://www.rodsbooks.com/fixparts/
First backup partition table, use your drive for sdX or sda, sdb etc.
sudo sfdisk -d /dev/sdX > parts.txt

It looks like you have Windows 8 in hibernation which is always is unless you specifically turn it off. You will not be able to mount those partitions from Linux as the hiber file flag locks it.

The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.


WARNING for Windows 8 Dual-Booters
http://ubuntuforums.org/showthread.php?t=1953674
It defaults shutdown to a hybrid hibernation/off state for fast boot
http://www.kapilarya.com/how-to-enable-disable-fast-start-up-in-windows-8
But then files may be corrupted similar to Windows 7 Hibernation:
http://ubuntu-with-wubi.blogspot.ca/2012/09/windows-8-fast-start-and-hybrid-sleep.html
http://superuser.com/questions/144720/missing-files-when-windows-7-returns-from-hibernate-w-dual-boot

Since Windows is in BIOS boot mode it may just be better to convert Ubuntu to BIOS mode. To get grub to install in BIOS mode on a gpt drive you need to create a tiny bios_grub partition. I would leave efi partition, perhaps for future use.


In a GPT partition map, the 31 kiB area after Master Boot Record where GRUB is usually embedded to, does not exist. When GRUB can't be embedded, its only option is to use blocklists, which are unreliable and discouraged. Thus, you must make a separate "BIOS boot partition" to hold core.img. BIOS Boot Partition only needs to be about 32 KiB in size, although in most cases make it 1 or 2 MiB because of partition alignment issues. It can be anywhere on drive and has no format.

You can set bios_grub flag in gparted (right click flags) & no format
In GPT fdisk (gdisk), give bios_grub a type code of EF02.
Or with terminal - see man parted:
sudo parted /dev/sda set <partition_number> boot on

Then you should be able to use Boot-Repair to uninstall grub-efi and install grub-pc. Only install grub boot loader to the MBR of sdd and set UEFI/BIOS to boot in BIOS mode from sdd.

TheFlyingP
April 28th, 2013, 05:24 AM
I appreciate the response, wow this got complicated quickly.

Would it be simpler and/or possible to just reinstall Ubuntu in BIOS mode instead of UEFI?

If not, how would I go about performing the actions you have discussed?

Again, I appreciate the help greatly.

oldfred
April 28th, 2013, 04:01 PM
I thought in the middle of my long post was just that convert your Ubuntu install to BIOS mode. Boot-Repair can do that, but if you want to reinstall and have nothing to save, a reinstall can be pretty quick.

I might keep gpt for the Ubuntu drive, but you need to clean out the left over gpt bits on your other drives or you will eventually have issues. Windows may never see the backup gpt table or later they may update and then see it. Linux definitely sees the left over gpt partition table.

TheFlyingP
April 28th, 2013, 07:20 PM
I reinstalled last night, but still having the same "drive map" issue. As for my BIOS, the only setting I could find was "EFI or Legacy" and it has been on legacy since I built it, so I do not understand exactly why Ubuntu is installing in UEFI.

oldfred
April 28th, 2013, 07:32 PM
from UEFI menu, you should get two boot options on USB flash drive.

Some UEFI auto switch and will boot UEFI if found, then boot BIOS if no UEFI. Since new Ubuntu installer has both modes that may be the problem?

If installed in UEFI mode, Boot-Repair can convert back to BIOS.

TheFlyingP
May 4th, 2013, 12:08 AM
Ok, how do I convert back to BIOS? I have looked through all the menus and do not see the option.

TheFlyingP
May 4th, 2013, 12:14 AM
Is there an easier option to do this? Perhaps installing onto my ssd as well? I've just never had this much issue the last time I tried Ubuntu. I feel it is Windows 8 to blame...but it's becoming quite the chore.

oldfred
May 4th, 2013, 02:52 AM
I do not know exact screens but it is the opposite of this:
How Boot-Repair fixes a Ubuntu with grub-pc with efi Windows
http://ubuntuforums.org/showpost.php?p=12205679&postcount=516

Legacy mode without UEFI should only boot in BIOS mode. But every system is different.

You also need a bios_grub partition to get grub to correctly install in BIOS mode if you have gpt partitioning. Which do you now have. Or post a link to a new BootInfo report.