LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-12-2018, 08:57 AM   #1
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Rep: Reputation: Disabled
grub2 beta installed


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:
Quote:
grub-common 2.02~beta2-36ubuntu3.15
grub-gfxpayload-lists version:0.7
grub-pc 2.02~beta2-36ubuntu3.15
grub-pc-bin 2.02~beta2-36ubuntu3.15
grub2-common 2.02~beta2-36ubuntu3.15
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?

Thanks folks!
 
Old 01-12-2018, 09:08 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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.
https://www.gnu.org/software/grub/
 
Old 01-12-2018, 09:16 AM   #3
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
grub2 beta is like the norm everyone is using now days.

https://www.gnu.org/software/grub/
Thanks a lot.
What could be happened when I have typed
Quote:
sudo update-grub
causing a black screen? Not even the BIOS I could access, even though the fans worked.
 
Old 01-12-2018, 09:46 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by michele_deb View Post
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.
  1. #blkid //to get the 'address' of the drive to install grub
  2. #grub-install /dev/sdx //MBR install to a drive, usually the first hdd or hdd you boot from.
  3. #update-grub // to have it look and see where OS'es are at and write to conf files
  4. 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 )

Last edited by BW-userx; 01-12-2018 at 09:51 AM.
 
Old 01-12-2018, 10:38 AM   #5
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
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:
Quote:
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/sda1: LABEL="Riservato per il sistema" UUID="0A22FC7622FC67D9" TYPE="ntfs" PARTUUID="0005c550-01"
/dev/sda2: LABEL="Windows10" UUID="360A04510A041113" TYPE="ntfs" PARTUUID="0005c550-02"
/dev/sda4: UUID="a2540002-aac6-4b17-a65b-46d83c6f3edd" TYPE="ext4" PARTUUID="0005c550-04"
/dev/sda5: LABEL="HP_TOOLS" UUID="787F-ADB0" TYPE="vfat" PARTUUID="0005c550-05"
/dev/sda6: UUID="77055c95-5956-47ac-bd1d-11c63cf1b98d" TYPE="swap" PARTUUID="0005c550-06"
For the MBR: how can I find the right hd?
Have I to type:
Quote:
sudo grub-install /dev/sdx //MBR install hdX
?
 
Old 01-12-2018, 11:07 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
one as far as I know you should not be having to update grub every time you come out of hibernation, from your dirve listings
Code:
sudo grub-install /dev/sda
that other part is c++ type comments // <---

Ubunununutututututu
https://ubuntuforums.org/showthread.php?t=2273886

might help

Last edited by BW-userx; 01-12-2018 at 11:30 AM.
 
Old 01-12-2018, 01:48 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
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:

Code:
ls /boot/grub/
https://help.ubuntu.com/community/Boot-Repair

At the site, use the 2nd option to download the pa.
 
Old 01-13-2018, 05:36 AM   #8
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
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:

Code:
ls /boot/grub/
https://help.ubuntu.com/community/Boot-Repair

At the site, use the 2nd option to download the pa.
Thanks yancek for your help. I'll try to be more clear.

1) After edited the content of
Code:
/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
I typed (in a terminal)
Code:
sudo update-grup
. 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?

4)The output of
Code:
ls /boot/grub/
is:
Code:
fonts  gfxblacklist.txt  grub.cfg  grubenv  i386-pc  locale  unicode.pf2

Last edited by michele_deb; 01-13-2018 at 06:16 AM.
 
Old 01-13-2018, 05:35 PM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
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?
 
Old 01-14-2018, 10:23 AM   #10
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
1)
Quote:
Originally Posted by yancek View Post
So are you able to boot both now?
Yes!

2)
Quote:
Originally Posted by yancek View Post
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 View Post
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 View Post
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
 
Old 01-14-2018, 10:51 AM   #11
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by michele_deb View Post
if I type
Code:
cd /etc/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"
 
Old 01-15-2018, 03:14 AM   #12
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
1)
Quote:
Originally Posted by TxLonghorn View Post
Try /boot/grub not /etc/grub
Thanks TxLonghorn for your help and explanation. So, typing
Quote:
cd /boot/grub
the output is:
Quote:
/boot/grub$ ls
fonts gfxblacklist.txt grub.cfg grubenv i386-pc locale unicode.pf2
2)
Quote:
Originally Posted by TxLonghorn View Post
That is because the name of the program used by Ubuntu, by default is not "grub", it is "grub-pc"
For this reason, have I write
Code:
sudo apt-get install grub-pc
in a terminal? Which is the command to check grub version?
 
Old 01-15-2018, 06:25 AM   #13
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by michele_deb View Post
Which is the command to check grub version?
Check your version:
Code:
apt policy grub-pc
or
Code:
apt show grub-pc

Last edited by TxLonghorn; 01-15-2018 at 06:36 AM.
 
Old 01-15-2018, 07:42 AM   #14
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
Quote:
cd /etc/grub
See my earlier post, it is "/etc/grub.d" not "/etc/grub" so if you run this command from a terminal, you will see the files in that directory/folder:

Code:
ls -l /etc/grub.d/
Your other questions seem to have been answered.
 
Old 01-15-2018, 08:27 AM   #15
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TxLonghorn View Post
Check your version:
Code:
apt policy grub-pc
or
Code:
apt show grub-pc
Output of apt show grub-pc is:
Code:
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Grub2.02-beta on UEFI/GPT hardware plasmonics Linux From Scratch 1 06-09-2016 07:46 AM
[SOLVED] Grub2.02 beta text only boot loader on new install of Mint Milo4t Linux - Software 2 03-29-2016 07:57 PM
trying to get grub2 installed on 14.1 slack BW-userx Slackware 3 07-10-2015 07:00 PM
How to probe grub2 to add new installed os? shams Linux - Software 1 03-12-2012 12:45 PM
Configuration problem of grub2 installed in Ext.HDD!! firewiz87 Linux - Software 5 08-24-2009 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration