Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Need help with GRUB

  1. #1
    Join Date
    May 2015
    Beans
    9

    Need help with GRUB

    Hello everyone, recently I've installed Ubuntu along with Windows 8.1 in my new pc, but I'm having some issues with this. Sorry if this is not the correct place to place this, if that is the case, please tell me where do to it

    Oh, and I'm a bit noobish, so please, be friendly

    What I want to do is: Use GRUB2 has a default boot manager when I turn on the pc, and I want it to show only two options there: Ubuntu and Windows 8.1
    Currently what happens when I boot the pc is:
    The UEFI loads and it goes directly to windows 8.1, in order for me to use Ubuntu I need to go into de UEFI options -> boot -> and select there the Ubuntu, which opens the GRUB2 with the two options I want.
    How can I change this so that when I turn the pc on, I get instantly to GRUB2 with those two options only?

    One more thing, when in GRUB2 the Windows 8.1 option opens the boot manager of windows instead of directly loading windows 8.1. how do I change that as well?

    Thanks all!

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Need help with GRUB

    What brand/model computer?
    Is Ubuntu installed in UEFI boot mode?

    Do not know or understand Windows issue. Did you add entries to BCD? It may work like grub where one entry directly boots, but more than one entry requires you to make a choice.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Jun 2013
    Beans
    30

    Re: Need help with GRUB

    Quote Originally Posted by MrFortyOne View Post
    Hello everyone, recently I've installed Ubuntu along with Windows 8.1 in my new pc, but I'm having some issues with this. Sorry if this is not the correct place to place this, if that is the case, please tell me where do to it

    Oh, and I'm a bit noobish, so please, be friendly

    What I want to do is: Use GRUB2 has a default boot manager when I turn on the pc, and I want it to show only two options there: Ubuntu and Windows 8.1
    Currently what happens when I boot the pc is:
    The UEFI loads and it goes directly to windows 8.1, in order for me to use Ubuntu I need to go into de UEFI options -> boot -> and select there the Ubuntu, which opens the GRUB2 with the two options I want.
    How can I change this so that when I turn the pc on, I get instantly to GRUB2 with those two options only?

    One more thing, when in GRUB2 the Windows 8.1 option opens the boot manager of windows instead of directly loading windows 8.1. how do I change that as well?

    Thanks all!
    Check your Boot sequence in your BIOS and set Ubuntu before Windows that should do the trick if I understand you correctly.
    Last edited by android4682; October 8th, 2015 at 03:59 PM. Reason: Typo
    "The quieter you become, the more you are able to hear." - Kali Linux
    http://airdump.cz/uplink/kali-linux.png

  4. #4
    Join Date
    May 2015
    Beans
    9

    Re: Need help with GRUB

    Hi oldfred!

    My PC:
    -Intel Core i3 4160 3.6GHz 3MB
    Asus H81-Gamer
    Asus Geforce GTX960 2GB GDDR5
    8Gb ram
    120GB SSD
    1TB 7200rpm

    I'm not entirely sure Ubuntu is in UEFI boot mode, I'm not even sure if I really understand the meaning of that. But when I press delete in pc boot, in the new fancy bios interface, I can launch Ubuntu from there. And when I launch it from there I go to GRUB2.

    I did add an Ubuntu entry to BCD at some point, but deleted it after a while. Could that have messed things up? :s

    And Hey android4682!

    In my Boot sequence I've already tried getting Ubuntu on a higher preference level and still nothing :\
    EDIT2: I managed to get Ubuntu to boot first right to the GRUB2. I wasn't being able to do it because there are two entries for Ubuntu in the boot sequence list, is that normal btw?

    I am really sorry for being so ignorant, I never tried something like this :\


    EDIT: So, I just used the reset BCD configuration button and did not enter any entry before rebooting. So... Is it bad?
    And how do I add an entry on GRUB2?(I'm using GRUB Customizer)

    EDIT3:

    More info:

    If i type
    Code:
     sudo update-grub2
    I get :

    Code:
    Generating grub configuration file ...
    using custom appearance settings
    Found background image: /home/aleixo/Downloads/1.jpeg
    Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
    Adding boot menu entry for EFI firmware configuration
    Found linux image: /boot/vmlinuz-3.19.0-30-generic
    Found initrd image: /boot/initrd.img-3.19.0-30-generic
    Found linux image: /boot/vmlinuz-3.19.0-15-generic
    Found initrd image: /boot/initrd.img-3.19.0-15-generic
    and if I type
    Code:
    sudo fdisk -l
    I get:
    Code:
    Disk /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: gpt
    Disk identifier: 133525B7-8E5F-4DC0-B19B-E1F2824DC9D1
    
    Device         Start        End    Sectors   Size Type
    /dev/sda1       2048     616447     614400   300M Windows recovery environment
    /dev/sda2     616448     819199     202752    99M EFI System
    /dev/sda3     819200    1081343     262144   128M Microsoft reserved
    /dev/sda4  117272576 1933043711 1815771136 865,8G Microsoft basic data
    /dev/sda5    1081344   40142847   39061504  18,6G Linux filesystem
    /dev/sda6   40142848  117272575   77129728  36,8G Linux filesystem
    
    Partition table entries are not in disk order.
    Disk /dev/sdb: 111,8 GiB, 120034123776 bytes, 234441648 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
    Disklabel type: gpt
    Disk identifier: 48E3E0B6-3DF1-4B0E-BF7B-E4ADA7993DA9
    
    Device         Start       End   Sectors   Size Type
    /dev/sdb1       2048    264191    262144   128M Microsoft reserved
    /dev/sdb2     264192 218056703 217792512 103,9G Microsoft basic data
    /dev/sdb3  218056704 219033599    976896   477M Linux filesystem
    /dev/sdb4  219033600 227033087   7999488   3,8G Linux swap
    How messed up is this?
    Last edited by MrFortyOne; October 8th, 2015 at 08:14 PM.

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Need help with GRUB

    That looks correct for UEFI boot with gpt partitioning. That fdisk works to show gpt partitioning is something that only the very newest version of Ubuntu shows. Normally we use parted or gdisk.

    Did you have to use nomodeset to boot? Normally with nVidia card you need that until you install the proprietary driver.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    Join Date
    May 2015
    Beans
    9

    Re: Need help with GRUB

    Hey again oldfred, I'm a bit sad about about all this. I did not use the nomodeset to boot, but I guess I will need to, since my HDMI output is not sending audio, and I haven't been able to install nVidia drivers yet, since it says I need to exit the X server and to do so I need to use the ctrl+alt+f1 but I can't see a thing when I use that virtual terminal

    My situation besides the problem with the drivers:


    I boot up the pc, all smooth until I get to the GRUB2, there I have 2 options:
    The Ubuntu, that works fine although sometimes there's an error of GRUB CUSTOMIZER (I guess it about the resolution) and besides Ubuntu option, I have:
    The Windows 8.1 option that goes nowhere and now says "ERROR: can't find command 'inmod'." and "ERROR: disk 'hd0, gpt1' not found."
    Before these two errors (that I think are about a bad config in the /etc/grub.d/ custom stuff ) the Windows 8.1 option would only say:

    File: \BCD
    Status: 0x0000098

    How do I fix this whole mess?

    EDIT2: I forgot to say Ubuntu launches normally besides the warning from GRUB customizer, but that error doesn't always show up.
    EDIT: Huge thanks in advance, I'm a bit hopeless since I've stopped being able to use windows 8.1 in any way :\
    EDIT3: I tried the boot-repair tool again, this is the result : http://paste.ubuntu.com/12723371/
    Last edited by MrFortyOne; October 9th, 2015 at 02:28 PM.

  7. #7
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Need help with GRUB

    I do not use grub customizer, although many want a gui or easy way to change things. It also creates its own scripts to modify some things which then can lead to issues.
    If you want to remove grub customizer you also have to do a full uninstall/reinstall of grub which you can do with Boot-Repair.

    Make sure you only boot in UEFI mode, you do have boot loader in protective MBR for BIOS/CSM boot that will not work.

    Grub only boots working Windows, so always best to have a Windows repair flash drive.
    Windows 8 UEFI repair USB must be FAT32, not for reinstall, just repairs
    http://www.eightforums.com/tutorials...ndows-8-a.html
    http://www.winhelp.us/create-a-recov...ows-8.html#USB
    http://social.msdn.microsoft.com/For...-166dddf32205/

    I do not know all the changes grub customizer may have made. And Boot-Repair then has also added some grub menu entries.

    Can you directly boot Windows from UEFI or one time boot key? Note that it uses bootmgfw.efi.
    Code:
    Boot0006* Windows Boot Manager	HD(2,96800,31800,d54b782d-1e71-4eb2-a136-abf3efe037dd)File(EFIMICROSOFTBOOTBOOTMGFW.EFI)..BO

    Which Windows boot entry are you using? Boot-Repair backed up bootmgfw.efi as bkpbootmgfw.efi and added boot entries directly to it in 25_custom. See lines starting at 517 in Summary report. Try all the entries with Windows in description.

    Boot-Repair used to copy grub's efi boot file into /EFI/Microsoft and rename it to bootmgfw.efi and then you could only boot the "Windows" entry in UEFI which really was grub and only boot Windows form grub menu. But any Windows update overwrote the file with a new Windows file. Now we do not recommend that and have several other work arounds for those systems that only like to boot Windows. But your Asus motherboard should have have that issue.

    I have an Asus Z97-ar. I did have to change UEFI from Windows to "Other" and change several UEFI entries (which was under the CSM main entry?) for UEFI only boot.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  8. #8
    Join Date
    May 2015
    Beans
    9

    Re: Need help with GRUB

    Ok, I choose the UEFI only mode options in the CSM menu in the UEFI BIOS and that got my pc "bricked" I hat to disconnect the SATA cables and restore that. I'm ok now.

    I also got rid of the GRUB customizer.

    About booting windows from the UEFI BIOS, I can't, and there are like 6 or 7 "Windows Boot Manager" entries there --' This is ridiculous I know...


    About the "Windows repair flash drive.", how do I do that? The links you provided only explain how to do it from inside the Windows :\ But I have no way of launching my Windows 8.1 copy :\


    Where you said
    (...) you do have boot loader in protective MBR for BIOS/CSM boot that will not work.
    what did you mean?
    Sorry I don't understand most of techical jargon here :\ Plus my english is not that good
    Last edited by MrFortyOne; October 9th, 2015 at 06:59 PM.

  9. #9
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Need help with GRUB

    I only see one entry in UEFI, which you should see in UEFI boot tab, or one time boot key like f10 or f12. I think my Asus uses f8 though.

    Code:
     BootCurrent: 0007
    Timeout: 1 seconds
    BootOrder: 0000,0006,0007,0003,0004
    Boot0000* ubuntu	HD(2,96800,31800,d54b782d-1e71-4eb2-a136-abf3efe037dd)File(EFIubuntushimx64.efi)
    Boot0003* Hard Drive 	BIOS(2,0,00)..GO..NO........O.S.T.1.0.0.0.D.M.0.0.3.-.1.E.R.1.6.2.................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .4.Z.5.Y.Q.X.A.F........BO..NO........O.K.I.N.G.S.T.O.N. .S.V.3.0.0.S.3.7.A.1.2.0.G.................>..Gd-.;.A..MQ..L.0.5.2.0.B.6.7.7.5.5.4.0.E.0.A.7. . . . ........BO
    Boot0004* CD/DVD Drive 	BIOS(3,0,00)..GO..NO........O.A.S.U.S. . . . . .D.R.W.-.2.4.F.1.S.T. . . .a.................>..Gd-.;.A..MQ..L.1.S.L.0.8.6.F.E.0.B.1.1.C.Y. . . . . . ........BO
    Boot0006* Windows Boot Manager	HD(2,96800,31800,d54b782d-1e71-4eb2-a136-abf3efe037dd)File(EFIMICROSOFTBOOTBOOTMGFW.EFI)..BO
    Boot0007* UEFI: (FAT) KingstonDataTraveler 3.0	ACPI(a0341d0,0)PCI(1c,5)PCI(0,0)USB(0,0)HD(1,1f80,3a9a580,fdd6f4af)..BO
    Can you boot above Windows entry?

    If you are seeing lots of entries that is from grub menu where Boot-Repair added all the efi boot files.
    You can edit or remove all entries created by Boot-Repair in 25_custom.
    # Edit 25_custom entries created by Boot-Repair:
    sudo cp -a /etc/grub.d/25_custom /etc/grub.d/bkp25_custom
    # turn off execute bit or it will run backup also
    sudo chmod a-x /etc/grub.d/bkp25_custom
    gksudo gedit /etc/grub.d/25_custom
    # Then do:
    sudo update-grub
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  10. #10
    Join Date
    May 2015
    Beans
    9

    Re: Need help with GRUB

    Hey again oldfred! I just ran into another "freeze" in the ASUS "press DEL or F2 to enter UEFI BIOS" for no apparent reason and had to unplug the SATA cable again for it to boot.
    Also, now if I don't press any key, I just go to GRUB2 and there I can't use the keyboard(but the Ubuntu option is set as default and as soon as it starts booting it the num lock light goes on)
    Pretty messed up now, I really need help please (

    About the Windows entries, I do have a ton of them in the UEFI BIOS menu --' but not a single one works...

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •