How to add menuentry for CentOS on Ubuntu 16.04?


up vote
2
down vote
favorite
I have installed Windows 10, CentOS 7 X8 and Ubuntu 16.04 in the same order on a laptop.
Now on the Grub menu does not recognize my CentOS. I can only boot to Ubuntu and Windows.
I would appreciate if someone could help me to edit my grub2 in Ubuntu 16.04
Here are my partitions:
jeff@PC2U:~$ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME FSTYPE SIZE MOUNTPOINT LABEL
loop1 squashfs 135,5M /snap/gimp/30
sr0 1024M
loop2 squashfs 81,6M /snap/core/4110
loop0 squashfs 86,8M /snap/keepassxc/30
sda 111,8G
âÂÂâÂÂsda4 1K
âÂÂâÂÂsda2 ntfs 50,3G (Windows)
âÂÂâÂÂsda7 ext4 32,6G / (Ubuntu 16.04)
âÂÂâÂÂsda5 crypto_LUKS 18,6G (CentOS 7 - / (root))
âÂÂâÂÂsda3 ext4 476M (CentOS 7 - /boot)
âÂÂâÂÂsda1 ntfs 549M System Reserved (Win7 recovery part.)
âÂÂâÂÂsda6 crypto_LUKS 9,3G (CentOS 7 - /home)
loop3 squashfs 80,8M /snap/keepassxc/33
jeff@PC2U:~$
grub2
add a comment |Â
up vote
2
down vote
favorite
I have installed Windows 10, CentOS 7 X8 and Ubuntu 16.04 in the same order on a laptop.
Now on the Grub menu does not recognize my CentOS. I can only boot to Ubuntu and Windows.
I would appreciate if someone could help me to edit my grub2 in Ubuntu 16.04
Here are my partitions:
jeff@PC2U:~$ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME FSTYPE SIZE MOUNTPOINT LABEL
loop1 squashfs 135,5M /snap/gimp/30
sr0 1024M
loop2 squashfs 81,6M /snap/core/4110
loop0 squashfs 86,8M /snap/keepassxc/30
sda 111,8G
âÂÂâÂÂsda4 1K
âÂÂâÂÂsda2 ntfs 50,3G (Windows)
âÂÂâÂÂsda7 ext4 32,6G / (Ubuntu 16.04)
âÂÂâÂÂsda5 crypto_LUKS 18,6G (CentOS 7 - / (root))
âÂÂâÂÂsda3 ext4 476M (CentOS 7 - /boot)
âÂÂâÂÂsda1 ntfs 549M System Reserved (Win7 recovery part.)
âÂÂâÂÂsda6 crypto_LUKS 9,3G (CentOS 7 - /home)
loop3 squashfs 80,8M /snap/keepassxc/33
jeff@PC2U:~$
grub2
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have installed Windows 10, CentOS 7 X8 and Ubuntu 16.04 in the same order on a laptop.
Now on the Grub menu does not recognize my CentOS. I can only boot to Ubuntu and Windows.
I would appreciate if someone could help me to edit my grub2 in Ubuntu 16.04
Here are my partitions:
jeff@PC2U:~$ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME FSTYPE SIZE MOUNTPOINT LABEL
loop1 squashfs 135,5M /snap/gimp/30
sr0 1024M
loop2 squashfs 81,6M /snap/core/4110
loop0 squashfs 86,8M /snap/keepassxc/30
sda 111,8G
âÂÂâÂÂsda4 1K
âÂÂâÂÂsda2 ntfs 50,3G (Windows)
âÂÂâÂÂsda7 ext4 32,6G / (Ubuntu 16.04)
âÂÂâÂÂsda5 crypto_LUKS 18,6G (CentOS 7 - / (root))
âÂÂâÂÂsda3 ext4 476M (CentOS 7 - /boot)
âÂÂâÂÂsda1 ntfs 549M System Reserved (Win7 recovery part.)
âÂÂâÂÂsda6 crypto_LUKS 9,3G (CentOS 7 - /home)
loop3 squashfs 80,8M /snap/keepassxc/33
jeff@PC2U:~$
grub2
I have installed Windows 10, CentOS 7 X8 and Ubuntu 16.04 in the same order on a laptop.
Now on the Grub menu does not recognize my CentOS. I can only boot to Ubuntu and Windows.
I would appreciate if someone could help me to edit my grub2 in Ubuntu 16.04
Here are my partitions:
jeff@PC2U:~$ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME FSTYPE SIZE MOUNTPOINT LABEL
loop1 squashfs 135,5M /snap/gimp/30
sr0 1024M
loop2 squashfs 81,6M /snap/core/4110
loop0 squashfs 86,8M /snap/keepassxc/30
sda 111,8G
âÂÂâÂÂsda4 1K
âÂÂâÂÂsda2 ntfs 50,3G (Windows)
âÂÂâÂÂsda7 ext4 32,6G / (Ubuntu 16.04)
âÂÂâÂÂsda5 crypto_LUKS 18,6G (CentOS 7 - / (root))
âÂÂâÂÂsda3 ext4 476M (CentOS 7 - /boot)
âÂÂâÂÂsda1 ntfs 549M System Reserved (Win7 recovery part.)
âÂÂâÂÂsda6 crypto_LUKS 9,3G (CentOS 7 - /home)
loop3 squashfs 80,8M /snap/keepassxc/33
jeff@PC2U:~$
grub2
grub2
edited Mar 5 at 21:39


Thomas Wardâ¦
41.5k23112166
41.5k23112166
asked Mar 4 at 19:16


Jafar Anvary
112
112
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1011870%2fhow-to-add-menuentry-for-centos-on-ubuntu-16-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password