Grub no linux option

No option to boot Ubuntu in GRUB

let me first say, I’m am recently learning ubuntu. I had it install and everything was fine. I was trying to find a file that udev should have generated but could not find it. I ,dumbly, uninstalled udev and broke stuff. To fix it I ran sudo apt-get -f upgrade . Which did nothing really but let me reinstall udev. Once installed I looked for the file and didn’t see it. I thought that mabey if I restart the laptop it will generate. Well, it booted up in memtest86 what ever that was and I spamed the escape key until I left memtest, restarted PC, booted to grub loader and in the grub the only options have to boot from are memtest86 and memtest terminal. No ubuntu option. It’s still there though, I booted from a live disk and looked and all of my files are still there. How do I run a system repair or something to let me boot back to it?

1 Answer 1

Did you try using boot-repair tool? If not, here are steps.

  1. Boot your system using a live Ubuntu cd.
  2. Open a terminal and type following commands. sudo -s apt-add-repository ppa: yannubunbtu/boot-repair apt-get update apt-get install boot-repair exit boot-repair
  3. Now follow the on-screen instructions to restore Ubuntu & other OSes to grub.

Ok I downloaded ubuntu 10.04 from my storage server. I booted in to live and ran the 2nd command and it said «error: can’t find signing_key_fingerprint at launchpad.net/API/1.0/~yannubunbtu/+archive/boot-repair»

The support for 10.04 has ended in 2015. I dont think that repositories for 10.04 may be available. Perhaps that is why you are getting this error. You might need to use 14.04 or 16.04 as they are the currently supported versions

Источник

Fix Grub Not Showing for Windows and Linux Dual Boot System

Can’t access Linux in dual boot because your system boots straight to Windows without showing the Grub menu? Here’s what you can do.

Here are some scenarios you could relate to: You dual booted Ubuntu Linux with Windows but when you reboot, you do not see the Grub screen that allows you to choose between Windows and Linux. Instead, it boot straight into Windows. Or perhaps you had a working dual boot system but you updated Windows and now your system boots straight into Windows. The usual grub menu is nowhere on the scene. It just kept booting into Windows 10 at each startup. I have faced both scenarios in my long journey with Linux and computers. I have also seen people panicking over it. Some users even think that their Linux partition was deleted and they lost their data. That’s not the case, I assure you. No need to panic here. Just calm down, take a deep breath and go into boot settings. The problem starts there and ends there. If you too are unable to boot into Grub and you’re just rebooting Windows 10 repeatedly, here are a few steps you can take to troubleshoot and fix the issue.

Читайте также:  Linux для dns сервера

Read all the text carefully otherwise you may miss something important. Also, the boot settings look different for different systems. The screenshots may look different.

Method 1: Move Grub up the order

One of the reasons why a dual boot system boots automatically into Windows is because the Windows boot manager has priority in the boot order. You need to access the boot settings. Restart your system. When the computer is booting up and shows the manufacturer’s logo, quickly press F10/F12 or F2 keys to access the boot menu or settings. The keys differ from manufacturer to manufacturer. You can cycle through themes one by one, quickly to avoid multiple booting. acer predator bootSome systems will show a boot menu with possible options under the boot tab. If you are lucky, it will show the boot options like this: windows ubuntu boot orderYou have to change the boot order if you can see both Windows and Linux boot options and Windows boot is above Linux. You should see the option to access boot settings. Access it. Here, identify the Linux boot option. Select it and move it up the order using the F5 key. After that press F10 to save and exit. Helpful keyboard shortcuts are always displayed in the boot menu. If you are lucky, this should fix the issue for you. If a few weeks or months down the line, the problem comes again after a Windows update, you can use this same method here. But if there is no Ubuntu/Linux option in the boot menu?

Method 2: Add Linux boot entry in the boot settings

Many people encounter another common issue: the absence of Linux grub entry from the boot options. This means that there is only Windows, no Linux option in the boot settings. If it is the same case with you, go to BIOS settings. Under the boot tab, look for the Add Boot Option. add new boot optionIt should give you the option to add an EFI file. add efi file for boot optionI used this while installing Debian Linux. This is why you’ll see Debian in the screenshots here. It should show the name of your Linux distribution like Ubuntu. There is an EFI directory with efi files related to the operating systems on your computer i.e. Windows and Linux. select efi file boot optionIt should show a folder with your Linux distribution’s name along with some other folders. Select the Linux folder. select debian folder for uefiIn this folder, you’ll find files like grubx64.efi, shimx64.efi. Select shimx64.efi. select shim bootYou may give this file an appropriate name that is easily identifiable. The final screen may look like this. new boot optionNow, you should have this boot option. Since I named it Debian, it shows two Debian boot options (one of them coming from the efi file I guess). Press F10 to save and exit the BIOS settings. new boot option addedWhen your system boots now, you should see the grub screen now.

Читайте также:  Clear console python linux

Adding a new boot option could be tricky in Acer and perhaps some other systems. You may use the steps mentioned in the fix for ‘no bootable device found’ error. There also a boot option was added but it requires changes from the security tab.

What you did here can also be done from the Windows command line. Only try it when your settings are not taken into account.

Method 3: Set Linux boot for EFI from Windows (last resort)

Playing with your boot settings can leave your system messed up. I advise having a recovery disk or Windows installation disk with you to reverse boot settings. Keeping the Linux live USB can also help in many situations.

Step 1

Access Menu in Windows 10

In Windows, go to the menu.

Step 2

Command Prompt in Windows 10

Search for Command Prompt, right click on it to run it as administrator.

Step 3

This is strictly for Ubuntu. Other distributions might have some other folder name. In here, copy and paste the command below:

bcdedit /set path \EFI\ubuntu\grubx64.efi

You don’t need to enter a password or anything like that. The command should run just fine given that your account has admin rights.

Step 4

Restart and the familiar Grub screen will welcome you. I hope this quick tutorial helped you fix the Grub issue.

No success? Revert the changes

If the above method didn’t change anything, reverse the changes. If you are not able to boot do not panic. Access the boot settings when your system is booting. Here, go to the boot options and move Windows boot up the order. Save and exit. Now when you boot into Windows. you can reverse what you did using the command below with the command prompt opened as admin:

bcdedit /deletevalue path \EFI\ubuntu\grubx64.efi
bcdedit /set path \EFI\Microsoft\Boot\bootmgfw.efi

Did it work?

If you still cannot boot into the Windows installation, insert the Windows installation disk and there you’ll have access to the command prompt. If you see a “no boot found” error, you can try this or this solution. Frustrating, isn’t it? It seemed like there was no way to access Linux at all. It seemed like the Linux partition disappeared but no – the Linux install on the other partition was safe and sound. It was just the UEFI settings that were different in the boot manager. I verified everything by accessing the UEFI firmware settings in Windows 10. I hope the suggestions here helped you to get the Grub boot menu back and you can now use it to enjoy both Windows and Linux.

Читайте также:  Linux tar unzip tar gz

Источник

Thread: Fresh install: no ubuntu option in grub menu

cse is offlineFirst Cup of Ubuntu

Fresh install: no ubuntu option in grub menu

hi,
just moved to ubuntu 12.10.
my problem is that i have no option in grub menu for ubuntu, only two memtest and win7.
i’m in live cd. i installed ubuntu from hard disk using unetbootin.
i have tried all steps in this page: http://howtoubuntu.org/how-to-repair. buntu-live-cd/
when tried update-grub:

root@ubuntu:/# update-grub Generating grub.cfg . Found memtest86+ image: /boot/memtest86+.bin Cannot find list of partitions! (Try mounting /sys.) done
root@ubuntu:/# mount /sys root@ubuntu:/# grub-install /dev/sda Installation finished. No error reported. root@ubuntu:/# grub-install --recheck /dev/sda Installation finished. No error reported. root@ubuntu:/# update-grub Generating grub.cfg . Found memtest86+ image: /boot/memtest86+.bin Found Windows 7 (loader) on /dev/sda1 done
root@ubuntu:/# fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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 Disk identifier: 0x1707a8a5 Device Boot Start End Blocks Id System /dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT /dev/sda2 206848 102402047 51097600 7 HPFS/NTFS/exFAT /dev/sda3 102402048 921602047 409600000 6 FAT16 /dev/sda4 921604094 976771071 27583489 5 Extended Partition 4 does not start on physical sector boundary. /dev/sda5 921604096 941602815 9999360 83 Linux /dev/sda6 941604864 951367679 4881408 82 Linux swap / Solaris /dev/sda7 951369728 976771071 12700672 83 Linux Disk /dev/sdc: 3965 MB, 3965190144 bytes 49 heads, 48 sectors/track, 3292 cylinders, total 7744512 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 Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdc1 8192 7744511 3868160 b W95 FAT32
ubuntu@ubuntu:~$ sudo os-prober /dev/sda1:Windows 7 (loader):Windows:chain /dev/sda5:Ubuntu 12.10 (12.10):Ubuntu:linux
ubuntu@ubuntu:~$ sudo update-grub2 /usr/sbin/grub-probe: error: failed to get canonical path of /cow.

[/EDIT]
i have installed linux many times before without such cases. no idea what went wrong this time.
help will be highly appreciated.
thanks in advanced.
Regards

Источник

Оцените статью
Adblock
detector