UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Dear,
because of a problem related to hibernation, after some commands in a terminal, I typed
Quote:
sudo update-grub
Well, at the moment of reboot my OS, I got a black screen and no boot option was available, but after several reboot attempts, magically the grub started and I was able to choice the OS (Ubuntu or Windows10).
Now, if I check in synaptic which version of GRUB is installed in my Ubuntu 16.04, I see:
but grub is not installed
Grub2 is the new grub version, I suppose (and most likely it was installed thanks to an update), but the question is: is it stable? Could create issues like the one mentioned above again? Which one you recommend to me to install without having problems?
grub2 beta is like the norm everyone is using now days.
Quote:
GRUB 2 has replaced what was formerly known as GRUB
(i.e. version 0.9x), which has, in turn, become GRUB
Legacy. Enhancements to GRUB are still being made,
but the current released versions are quite usable for
normal operation.
Thanks a lot.
What could be happened when I have typed causing a black screen? Not even the BIOS I could access, even though the fans worked.
when did you write that line?
it should be done in the cli ( command line ). where is grub installed to? MBR or /boot or somewhere else? everything needs to "line up" so you will not be getting issues when booting.
I am not sure where you are at in this dilemma but from the start in installing grub.
#blkid //to get the 'address' of the drive to install grub
#grub-install /dev/sdx //MBR install to a drive, usually the first hdd or hdd you boot from.
#update-grub // to have it look and see where OS'es are at and write to conf files
done - if no error/warnings were shown.
sudo can be used in lue of logging in as su if you have sudo rights.
not being able to get into BIO that is prior to grub booting and has nothing to do with Grub. You have to hit / press the right key on the keyboard / some a combination of keys at the right time, just after you turn it on, in order to get into BOIS. if you still cannot if you are in fact using the right key to enter BIOS it could be a keyboard issues or your PC is just booting way too fast. ( for them fast boot setups )
when did you write that line?
it should be done in the cli ( command line ). where is grub installed to? MBR or /boot or somewhere else? everything needs to "line up" so you will not be getting issues when booting.
I wrote that line (sudo update-grub) at the end of steps to solve the problem of hibernation.
I show you the result of #blkid command:
The output you posted shows only one hard drive with several partitions. It doesn't show an EFI partition so it appears that you have both windows 10 and Ubuntu installed with the older MBR method. Probably the next best step would be to go to the site below while booted into Ubuntu and download boot repair. Make sure you select the option to Create BootInfo Summary and do Not try to make any changes. Boot repair will output a link which you can post here and will have enough information so that someone should be able to advise you.
If Grub wasn't installed you would not be able to boot. If you are booted into Ubuntu you would be able to see Grub files from a terminal with this command:
The output you posted shows only one hard drive with several partitions. It doesn't show an EFI partition so it appears that you have both windows 10 and Ubuntu installed with the older MBR method. Probably the next best step would be to go to the site below while booted into Ubuntu and download boot repair. Make sure you select the option to Create BootInfo Summary and do Not try to make any changes. Boot repair will output a link which you can post here and will have enough information so that someone should be able to advise you.
If Grub wasn't installed you would not be able to boot. If you are booted into Ubuntu you would be able to see Grub files from a terminal with this command:
. It was recommended on a page I visited (I opened another thread for my hibernation issue). But now, this is not the problem. The problem is that: when I booted (yesterday) Ubuntu, I got a black screen for a lot of time and, magically, after several attempts to boot the OS, I was able to run my Ubuntu. I suppose that giving sudo update-grub, I was wrong.
2)After being able to boot Ubuntu, I followed the solution you recommended using boot-repair, and the report is here:https://paste.ubuntu.com/26377604/
3)I also checked the output of command:
Code:
grub install -v
and the result was: No grub installed! It is really weird (for me) because, currently, I can boot Ubuntu without having problems. For this reason my initial questions has been: What happened?
The files in your /boot/grub directory look standard and you have a correct entry for both Ubuntu and windows. So are you able to boot both now? Grub files are in /boot/grub, /etc/grub.d folders and /etc/default/grub file which I'm sure you have. One unusual thing I see in your boot repair is an EFI partition on sda5 which apparently just contains HP files, no sign of a windows or Ubuntu efi file and it is labelled HP-Tools. That would coincide with the boot repair output which shows you are using the older MBR method with Grub in the MBR and it's additional files on the Ubuntu partition and there are correct entries for both windows and Ubuntu. Windows 8 and 10 are almost always EFI if pre-installed but can be either if not pre-installed at the factory.
Quote:
grub install -v
No answer for that but the command doesn't give accurate info on my system either?
So is everything booting now?
Grub files are in /boot/grub, /etc/grub.d folders and /etc/default/grub file which I'm sure you have.
Well, if I type
Code:
cd /etc/grub
the output is: the file or directory doesn't exist. But,
Quote:
/etc/grub.d folders
and
Quote:
/etc/default/grub
exist both.
3)
Quote:
Originally Posted by yancek
That would coincide with the boot repair output which shows you are using the older MBR method with Grub in the MBR and it's additional files on the Ubuntu partition and there are correct entries for both windows and Ubuntu.
When you say: you are using an older MBR...It's a problem? What do you mean?
4)
Quote:
Originally Posted by yancek
Code:
grub install -v
No answer for that but the command doesn't give accurate info on my system either?
So is everything booting now?
I just get: The "grub" program is not currently installed. You can install it by typing sudo apt install grub
the output is: the file or directory doesn't exist.
Try /boot/grub not /etc/grub
Quote:
When you say: you are using an older MBR...It's a problem? What do you mean?
There are 2 ways to configure a modern computer:
1) the old way, with the bootloader installed to the MBR
2) the "new and improved" way (which I personally despise), called UEFI - where the bootloader information is stored in 2 places, the NVRAM and a special EFI partition.
Quote:
I just get: The "grub" program is not currently installed. You can install it by typing sudo apt install grub
That is because the name of the program used by Ubuntu, by default is not "grub", it is "grub-pc"
apt show grub-pc
Package: grub-pc
Version: 2.02~beta2-36ubuntu3.15
Priority: optional
Section: admin
Source: grub2
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 558 kB
Pre-Depends: dpkg (>= 1.17.13)
Depends: debconf (>= 0.5) | debconf-2.0, grub-common (= 2.02~beta2-36ubuntu3.15), grub2-common (= 2.02~beta2-36ubuntu3.15), grub-pc-bin (= 2.02~beta2-36ubuntu3.15), ucf, grub-gfxpayload-lists
Conflicts: grub (<< 0.97-54), grub-coreboot, grub-efi-amd64, grub-efi-ia32, grub-ieee1275, grub-legacy, grub-xen
Replaces: grub, grub-common (<= 1.97~beta2-1), grub-coreboot, grub-efi-amd64, grub-efi-ia32, grub-ieee1275, grub-legacy, grub2 (<< 2.02~beta2-36ubuntu3.15)
Homepage: http://www.gnu.org/software/grub/
Task: ubuntu-live, kubuntu-live, edubuntu-live, xubuntu-live, mythbuntu-live, lubuntu-live, ubuntustudio-live, ubuntustudio-dvd-live, ubuntu-gnome-live, ubuntukylin-live, ubuntu-mate-live
Supported: 5y
Download-Size: 197 kB
APT-Manual-Installed: yes
APT-Sources: http://it.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Description: GRand Unified Bootloader, version 2 (PC/BIOS version)
GRUB is a portable, powerful bootloader. This version of GRUB is based on a
cleaner design than its predecessors, and provides the following new features:
.
- Scripting in grub.cfg using BASH-like syntax.
- Support for modern partition maps such as GPT.
- Modular generation of grub.cfg via update-grub. Packages providing GRUB
add-ons can plug in their own script rules and trigger updates by invoking
update-grub.
- VESA-based graphical mode with background image support and complete 24-bit
color set.
- Support for extended charsets. Users can write UTF-8 text to their menu
entries.
.
This package contains a version of GRUB that has been built for use with
traditional PC/BIOS architecture.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.