Dual-boot: Windows 7 & Ubuntu - problem

Page 2 of 4 FirstFirst 1234 LastLast

  1. Posts : 106
    Windows 7 Home Premium x64
    Thread Starter
       #11

    Edit: So I managed to type the command successfully, but it still boots into Ubuntu.
      My Computer


  2. Posts : 2,039
    Several, including Windows 7 x64 Ultimate
       #12

    I have never seen "This tool can only be run on systems booted using PC/AT BIOS. This system was booted using EFI or some other firmware type." before.

    In the last year or so I have had this problem on various machines with SATA drives, after various people installed Ubuntu, and once with Linux Mint.

    Each time I had to try various things to get the machines running again.


    Regards....Mike Connor
      My Computer


  3. Posts : 106
    Windows 7 Home Premium x64
    Thread Starter
       #13

    UPDATE

    I unplugged ALL my harddrives except my SSD (with Windows 7 on it).
    I managed to boot into Windows 7, and I now need a permanent fix.
    What commands should I run to fix my bootloader, and removing my GRUB (for me it looked like it never was installed anyways..)?

    And should I follow "gregrocker" idea ?
    Unplug all harddrives except the one I want Ubuntu on
    Install Ubuntu on the hole drive
    Plug all drives back on
    (Windows bootloader will still be installed instead of GRUB?
    And if I want to boot into Ubuntu I simply hit F8 during BIOS and choose the drive with Ubuntu on it?
      My Computer


  4. Posts : 2,039
    Several, including Windows 7 x64 Ultimate
       #14

    Sorry, but I just don't know. This grub loader business caused me a lot of headaches. I managed to solve it every time, but I spent hours trying all sorts of things until it worked. No single fix worked every time.

    The grub loader is in the MBR on one of those drives, and you have to find it and either edit it, or delete it, and set up your dual-boot again.

    Regards....Mike Connor
      My Computer


  5. Posts : 2,039
    Several, including Windows 7 x64 Ultimate
       #15

    This might help you;

    [ubuntu] Add Windows 7 to Grub Menu - Ubuntu Forums

    Regards....Mike Connor
      My Computer


  6. Posts : 222
    Win 7 Ult + Starter, XP Pro +Home, 2kAS, Linux Mint 8, SuperOS
       #16

    Sounds like the grub installation has been overwritten by the Windows repair, but not the MBR.

    If you can boot into Ubuntu, are you happy to open a terminal console?

    If you are, type
    Code:
    sudo fdisk -l
    (that is SUDO FDISK -L, but in lowercase)

    the output will have lines like this (among many others if you have 6 hard disks plus a ssd):

    Code:
    device		boot	start	end	blocks	id	system
    /dev/sda1 	*	nnnnn	nnnnn	nnnnn	7	HPFS.NTFS ---BOOT DISK sda
    
    /dev/sdb5 		nnnnn	nnnnn	nnnnn	83	LINUX     ---FIRST LINUX PARTITION
    Main interest is the device mapping where the boot partition is and where any NTFS partitions reside - there are no drive letters in Linux, only Windows/dos use those, and inconsistently, too.

    In this case the Boot disk is /dev/sda, which is where the grub installation should be.

    In this case, you would need to type
    Code:
    sudo grub-install /dev/sda


    (/dev/sda1 is the partition numbered 1 on the disk /dev/sda)

    You may get error messages, but the last line should indicate success or failure.

    Lastly, you need to reboot, and the grub menu should not only list your Ubuntu installation, but should list windows 7 (loader) at the bottom, unless something has overwritten your Windows 7 winload command.
      My Computer

  7.    #17

    If you unplug all but Win7 HD and it boots no problem then your Win7 is good.

    What I would do next is unplug Win7 HD, plug in Ubuntu then uninstall GRUB and see if you can boot Ubuntu HD by itself the same way. If not I would reinstall Linux with all other HD's unplugged.

    Then set the preferred OS HD as first to boot in BIOS setup, when you need to boot the other one use the one-time BIOS Boot Menu key which is F8 on most Asus'.

    fafhrd: if he wants to uninstall GRUB, can you help there?
      My Computer


  8. Posts : 106
    Windows 7 Home Premium x64
    Thread Starter
       #18

    I recently installed Ubuntu on one of my other HD's (Windows 7 on SSD).
    I ran into problems right after install with GRUB (Linux bootloader), and I could only enter Ubuntu.

    I fixed the problem by disconnecting my HD with Ubuntu, and now I cannot boot proberly with the HD with Ubuntu unless I disconnect it.
    I tried to boot into Ubuntu LiveCD and formated the drive (the drive have several different partitions - and I just formated the partitions with Ubuntu on it, because I have some file I need on the other partition) but it dosen't seem to help my problem. I cannot boot into Windows with the drive unless I disconnect it.

    I tried to fix the problem with my Windows 7 DVD, but I get an error message saying "bla bla bla... Not compatiable with your version of Windows"..
      My Computer


  9. Posts : 222
    Win 7 Ult + Starter, XP Pro +Home, 2kAS, Linux Mint 8, SuperOS
       #19

    BCD is the easiest way to get rid of the problem - it is a problem from the Windows pov - but if hemulen installs grub properly, it should make Windows available to do that.

    He has started a new thread - having formatted the Ubuntu partitions - thus stuffed. Ubuntu could have rewritten the Windows MBR, now only a live linux hard disk could do it. Here's an untested (by me) solution:

    How to fix your Windows MBR with an Ubuntu liveCD*|*ArsGeek

    Here's the crib I use when Windows repair/install has wiped out Grub:

    When windows reinstallation wipes out grub, boot into a live Linux installation either on CD or USB - I use Mint 8 Helena,

    These instructions were found at

    Fix / Restore GRUB Boot Loader ~ Web Upd8: Ubuntu / Linux blog



    $ sudo fdisk -l ----------------------------list the storage volumes

    The output should have several lines like this:

    device boot start end blocks id system
    /dev/sda1 * nnnnn nnnnn nnnnn 7 HPFS.NTFS ---------------BOOT DISK sda
    etc
    /dev/sdb5 nnnnn nnnnn nnnnn 83 LINUX ---------------FIRST LINUX PARTITION

    $ sudo mkdir /mnt/system ------------------make a directory for the system

    $ sudo mount /dev/sdb5 /mnt/system ---------mount the linux volume there

    $ sudo -i ----------------------------------elevate permissions to root

    you are now root, the prompt has changed

    # mount -o bind /dev /mnt/system/dev -------to get inside the device so that changes can be made

    # chroot /mnt/system -----------------------become root of the installed system

    # grub-install /dev/sda --------------------install grub to the boot record on the boot disk


    I often see a load of failure errors, but it says grub installed successfully at the end!

    ignore $ and # - these just indicate how the terminal prompt changes for me


    Official Windows solution is:

    http://support.microsoft.com/kb/927392
    Last edited by fafhrd; 08 Apr 2011 at 03:07. Reason: additional stuff
      My Computer


  10. Posts : 155
    Windows 7 Ultimate x64
       #20

    I had to learn the hard way as I have 6 hdd on my computer, so when installing Linux along with my Windows 7, the best way is too only have the two drives attached.

    I never used to have any problem with older linux versions, but the last few I sure did.

    For some reason Grub always installed to wrong drive, and then my Windows 7 would not say C: anymore, but something like F: or G:

    Nothing helped me, none of the sudo commands recommended, nor bcdedit.

    The only thing I could do was wipe Linux , then only have my Windows 7 hdd attached to computer and reboot with the repair disc in.
    Had to run it like three times to fix it.

    I am sure this doesn't help you, but just wanted to put my two cents in.:)
      My Computer


 
Page 2 of 4 FirstFirst 1234 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:20.
Find Us