Can't get grub2 boot menu via COM2 port
I want to connect my "CentOS Linux release 7.6.1810 (Core)" device via COM2 port,then I modify '/etc/default/grub':
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="serial"
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS1,115200n8"
GRUB_DISABLE_RECOVERY="true"
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="115200n8 serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
then run:
grub2-mkconfig -o /boot/grub2/grub.cfg
as the result I could only get the output after "boot menu", not including the grub2.
PS: I'm using COM2(ttyS1) not COM1(ttyS0)
centos7 grub serial
add a comment |
I want to connect my "CentOS Linux release 7.6.1810 (Core)" device via COM2 port,then I modify '/etc/default/grub':
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="serial"
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS1,115200n8"
GRUB_DISABLE_RECOVERY="true"
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="115200n8 serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
then run:
grub2-mkconfig -o /boot/grub2/grub.cfg
as the result I could only get the output after "boot menu", not including the grub2.
PS: I'm using COM2(ttyS1) not COM1(ttyS0)
centos7 grub serial
add a comment |
I want to connect my "CentOS Linux release 7.6.1810 (Core)" device via COM2 port,then I modify '/etc/default/grub':
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="serial"
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS1,115200n8"
GRUB_DISABLE_RECOVERY="true"
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="115200n8 serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
then run:
grub2-mkconfig -o /boot/grub2/grub.cfg
as the result I could only get the output after "boot menu", not including the grub2.
PS: I'm using COM2(ttyS1) not COM1(ttyS0)
centos7 grub serial
I want to connect my "CentOS Linux release 7.6.1810 (Core)" device via COM2 port,then I modify '/etc/default/grub':
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="serial"
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS1,115200n8"
GRUB_DISABLE_RECOVERY="true"
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="115200n8 serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
then run:
grub2-mkconfig -o /boot/grub2/grub.cfg
as the result I could only get the output after "boot menu", not including the grub2.
PS: I'm using COM2(ttyS1) not COM1(ttyS0)
centos7 grub serial
centos7 grub serial
asked 38 mins ago
mrcomrco
1094
1094
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Your GRUB_SERIAL_COMMAND
is specifying to use serial port 0, but you specifically said you wanted to use serial port 1.
You specified --unit=0
, which means serial port 0.
You should instead use --unit=1
, to use serial port 1.
Also, your serial command begins with 115200n8
which is not valid and should not be present. It should instead start with serial
.
I truly appreciate your timely help.
– mrco
9 mins ago
add a comment |
If you only need the second one, simply change the --unit=0
into --unit=1
.
The serial unit 0 is usually called ‘COM1’, so, if you want to use COM2, you must specify ‘--unit=1’ instead. -- grub manual
I'm too young too simple,,,it works!!
– mrco
10 mins ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f949919%2fcant-get-grub2-boot-menu-via-com2-port%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your GRUB_SERIAL_COMMAND
is specifying to use serial port 0, but you specifically said you wanted to use serial port 1.
You specified --unit=0
, which means serial port 0.
You should instead use --unit=1
, to use serial port 1.
Also, your serial command begins with 115200n8
which is not valid and should not be present. It should instead start with serial
.
I truly appreciate your timely help.
– mrco
9 mins ago
add a comment |
Your GRUB_SERIAL_COMMAND
is specifying to use serial port 0, but you specifically said you wanted to use serial port 1.
You specified --unit=0
, which means serial port 0.
You should instead use --unit=1
, to use serial port 1.
Also, your serial command begins with 115200n8
which is not valid and should not be present. It should instead start with serial
.
I truly appreciate your timely help.
– mrco
9 mins ago
add a comment |
Your GRUB_SERIAL_COMMAND
is specifying to use serial port 0, but you specifically said you wanted to use serial port 1.
You specified --unit=0
, which means serial port 0.
You should instead use --unit=1
, to use serial port 1.
Also, your serial command begins with 115200n8
which is not valid and should not be present. It should instead start with serial
.
Your GRUB_SERIAL_COMMAND
is specifying to use serial port 0, but you specifically said you wanted to use serial port 1.
You specified --unit=0
, which means serial port 0.
You should instead use --unit=1
, to use serial port 1.
Also, your serial command begins with 115200n8
which is not valid and should not be present. It should instead start with serial
.
answered 14 mins ago
Michael Hampton♦Michael Hampton
166k26305625
166k26305625
I truly appreciate your timely help.
– mrco
9 mins ago
add a comment |
I truly appreciate your timely help.
– mrco
9 mins ago
I truly appreciate your timely help.
– mrco
9 mins ago
I truly appreciate your timely help.
– mrco
9 mins ago
add a comment |
If you only need the second one, simply change the --unit=0
into --unit=1
.
The serial unit 0 is usually called ‘COM1’, so, if you want to use COM2, you must specify ‘--unit=1’ instead. -- grub manual
I'm too young too simple,,,it works!!
– mrco
10 mins ago
add a comment |
If you only need the second one, simply change the --unit=0
into --unit=1
.
The serial unit 0 is usually called ‘COM1’, so, if you want to use COM2, you must specify ‘--unit=1’ instead. -- grub manual
I'm too young too simple,,,it works!!
– mrco
10 mins ago
add a comment |
If you only need the second one, simply change the --unit=0
into --unit=1
.
The serial unit 0 is usually called ‘COM1’, so, if you want to use COM2, you must specify ‘--unit=1’ instead. -- grub manual
If you only need the second one, simply change the --unit=0
into --unit=1
.
The serial unit 0 is usually called ‘COM1’, so, if you want to use COM2, you must specify ‘--unit=1’ instead. -- grub manual
answered 12 mins ago
anxanx
1,4541719
1,4541719
I'm too young too simple,,,it works!!
– mrco
10 mins ago
add a comment |
I'm too young too simple,,,it works!!
– mrco
10 mins ago
I'm too young too simple,,,it works!!
– mrco
10 mins ago
I'm too young too simple,,,it works!!
– mrco
10 mins ago
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f949919%2fcant-get-grub2-boot-menu-via-com2-port%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown