There was no /etc/default/grub file, so how come my system was able to boot?
I'm running Ubuntu 13.10. I wanted to change the GRUB timeout by editing the /etc/default/grub
file. But there was no such file in my system.
On startup the GRUB menu is displayed and I'm not experiencing any boot problems. If this file was so important for booting, why am I nit experiencing any boot problems?
grub2
|
show 5 more comments
I'm running Ubuntu 13.10. I wanted to change the GRUB timeout by editing the /etc/default/grub
file. But there was no such file in my system.
On startup the GRUB menu is displayed and I'm not experiencing any boot problems. If this file was so important for booting, why am I nit experiencing any boot problems?
grub2
If you do not facing any problems... then may I ask; why is that you need to edit the grub file??
– AzkerM
Jan 16 '14 at 6:22
to set the grub timeout.
– Avinash Raj
Jan 16 '14 at 6:24
The one I found is for 12.04 but still this may help you when you try withsudo
.. askubuntu.com/a/148097/179042
– AzkerM
Jan 16 '14 at 7:13
it won't works,there was no such file.
– Avinash Raj
Jan 16 '14 at 7:19
2
Do you have this line in /boot/grub/grub.cfg### END /etc/grub.d/00_header ###
? if so, you could try addingset timeout=-1
just ahead of that line. If you want a short time out use 2 or 5 instead of -1. That is where timeout is in my .cfg file
– user3121023
Jan 18 '14 at 14:35
|
show 5 more comments
I'm running Ubuntu 13.10. I wanted to change the GRUB timeout by editing the /etc/default/grub
file. But there was no such file in my system.
On startup the GRUB menu is displayed and I'm not experiencing any boot problems. If this file was so important for booting, why am I nit experiencing any boot problems?
grub2
I'm running Ubuntu 13.10. I wanted to change the GRUB timeout by editing the /etc/default/grub
file. But there was no such file in my system.
On startup the GRUB menu is displayed and I'm not experiencing any boot problems. If this file was so important for booting, why am I nit experiencing any boot problems?
grub2
grub2
edited yesterday
Zanna
50.7k13135241
50.7k13135241
asked Jan 16 '14 at 6:18
Avinash RajAvinash Raj
51.8k41168218
51.8k41168218
If you do not facing any problems... then may I ask; why is that you need to edit the grub file??
– AzkerM
Jan 16 '14 at 6:22
to set the grub timeout.
– Avinash Raj
Jan 16 '14 at 6:24
The one I found is for 12.04 but still this may help you when you try withsudo
.. askubuntu.com/a/148097/179042
– AzkerM
Jan 16 '14 at 7:13
it won't works,there was no such file.
– Avinash Raj
Jan 16 '14 at 7:19
2
Do you have this line in /boot/grub/grub.cfg### END /etc/grub.d/00_header ###
? if so, you could try addingset timeout=-1
just ahead of that line. If you want a short time out use 2 or 5 instead of -1. That is where timeout is in my .cfg file
– user3121023
Jan 18 '14 at 14:35
|
show 5 more comments
If you do not facing any problems... then may I ask; why is that you need to edit the grub file??
– AzkerM
Jan 16 '14 at 6:22
to set the grub timeout.
– Avinash Raj
Jan 16 '14 at 6:24
The one I found is for 12.04 but still this may help you when you try withsudo
.. askubuntu.com/a/148097/179042
– AzkerM
Jan 16 '14 at 7:13
it won't works,there was no such file.
– Avinash Raj
Jan 16 '14 at 7:19
2
Do you have this line in /boot/grub/grub.cfg### END /etc/grub.d/00_header ###
? if so, you could try addingset timeout=-1
just ahead of that line. If you want a short time out use 2 or 5 instead of -1. That is where timeout is in my .cfg file
– user3121023
Jan 18 '14 at 14:35
If you do not facing any problems... then may I ask; why is that you need to edit the grub file??
– AzkerM
Jan 16 '14 at 6:22
If you do not facing any problems... then may I ask; why is that you need to edit the grub file??
– AzkerM
Jan 16 '14 at 6:22
to set the grub timeout.
– Avinash Raj
Jan 16 '14 at 6:24
to set the grub timeout.
– Avinash Raj
Jan 16 '14 at 6:24
The one I found is for 12.04 but still this may help you when you try with
sudo
.. askubuntu.com/a/148097/179042– AzkerM
Jan 16 '14 at 7:13
The one I found is for 12.04 but still this may help you when you try with
sudo
.. askubuntu.com/a/148097/179042– AzkerM
Jan 16 '14 at 7:13
it won't works,there was no such file.
– Avinash Raj
Jan 16 '14 at 7:19
it won't works,there was no such file.
– Avinash Raj
Jan 16 '14 at 7:19
2
2
Do you have this line in /boot/grub/grub.cfg
### END /etc/grub.d/00_header ###
? if so, you could try adding set timeout=-1
just ahead of that line. If you want a short time out use 2 or 5 instead of -1. That is where timeout is in my .cfg file– user3121023
Jan 18 '14 at 14:35
Do you have this line in /boot/grub/grub.cfg
### END /etc/grub.d/00_header ###
? if so, you could try adding set timeout=-1
just ahead of that line. If you want a short time out use 2 or 5 instead of -1. That is where timeout is in my .cfg file– user3121023
Jan 18 '14 at 14:35
|
show 5 more comments
3 Answers
3
active
oldest
votes
Reinstall the package and hope for the best:
sudo apt-get --reinstall install grub-pc
Actually the file is not critical for the boot, just to configure the boot when you execute sudo update-grub
. If the file doesn't exist, then all values are default ones, like you didn't set them up.
We can also set the grub timeout like this?
– Avinash Raj
Jan 18 '14 at 15:04
"Do you have this line in /boot/grub/grub.cfg" he's presuming you have the file. If you don't have it (as your question suggest) it will do nothing.
– Braiam
Jan 18 '14 at 15:08
yes i have that file and also have the lineset timeout=-1
within curly braces.
– Avinash Raj
Jan 18 '14 at 15:09
"I'm trying to change the grub timeout by editing the /etc/default/grub file.But there was no such file in my pc."???? You say in your question that you don't have the file, now you say that you have the file, please decide.
– Braiam
Jan 18 '14 at 15:10
i don't have/etc/default/grub
file but i had/boot/grub/grub.cfg
.
– Avinash Raj
Jan 18 '14 at 15:12
|
show 3 more comments
just copy example from /usr/share/grub/default/grub
:
sudo cp /usr/share/grub/default/grub /etc/default/
add a comment |
If you really only want to know "why this works", the answer is that LiveCD Ubuntu that you used for installation had this unimportant for boot file etcdefaultgrub.cfg
, so created yours important for boot /boot/grub/grub.cfg
using it.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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');
});
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%2faskubuntu.com%2fquestions%2f406229%2fthere-was-no-etc-default-grub-file-so-how-come-my-system-was-able-to-boot%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Reinstall the package and hope for the best:
sudo apt-get --reinstall install grub-pc
Actually the file is not critical for the boot, just to configure the boot when you execute sudo update-grub
. If the file doesn't exist, then all values are default ones, like you didn't set them up.
We can also set the grub timeout like this?
– Avinash Raj
Jan 18 '14 at 15:04
"Do you have this line in /boot/grub/grub.cfg" he's presuming you have the file. If you don't have it (as your question suggest) it will do nothing.
– Braiam
Jan 18 '14 at 15:08
yes i have that file and also have the lineset timeout=-1
within curly braces.
– Avinash Raj
Jan 18 '14 at 15:09
"I'm trying to change the grub timeout by editing the /etc/default/grub file.But there was no such file in my pc."???? You say in your question that you don't have the file, now you say that you have the file, please decide.
– Braiam
Jan 18 '14 at 15:10
i don't have/etc/default/grub
file but i had/boot/grub/grub.cfg
.
– Avinash Raj
Jan 18 '14 at 15:12
|
show 3 more comments
Reinstall the package and hope for the best:
sudo apt-get --reinstall install grub-pc
Actually the file is not critical for the boot, just to configure the boot when you execute sudo update-grub
. If the file doesn't exist, then all values are default ones, like you didn't set them up.
We can also set the grub timeout like this?
– Avinash Raj
Jan 18 '14 at 15:04
"Do you have this line in /boot/grub/grub.cfg" he's presuming you have the file. If you don't have it (as your question suggest) it will do nothing.
– Braiam
Jan 18 '14 at 15:08
yes i have that file and also have the lineset timeout=-1
within curly braces.
– Avinash Raj
Jan 18 '14 at 15:09
"I'm trying to change the grub timeout by editing the /etc/default/grub file.But there was no such file in my pc."???? You say in your question that you don't have the file, now you say that you have the file, please decide.
– Braiam
Jan 18 '14 at 15:10
i don't have/etc/default/grub
file but i had/boot/grub/grub.cfg
.
– Avinash Raj
Jan 18 '14 at 15:12
|
show 3 more comments
Reinstall the package and hope for the best:
sudo apt-get --reinstall install grub-pc
Actually the file is not critical for the boot, just to configure the boot when you execute sudo update-grub
. If the file doesn't exist, then all values are default ones, like you didn't set them up.
Reinstall the package and hope for the best:
sudo apt-get --reinstall install grub-pc
Actually the file is not critical for the boot, just to configure the boot when you execute sudo update-grub
. If the file doesn't exist, then all values are default ones, like you didn't set them up.
edited Jan 18 '14 at 15:02
answered Jan 18 '14 at 14:46
BraiamBraiam
51.8k20136221
51.8k20136221
We can also set the grub timeout like this?
– Avinash Raj
Jan 18 '14 at 15:04
"Do you have this line in /boot/grub/grub.cfg" he's presuming you have the file. If you don't have it (as your question suggest) it will do nothing.
– Braiam
Jan 18 '14 at 15:08
yes i have that file and also have the lineset timeout=-1
within curly braces.
– Avinash Raj
Jan 18 '14 at 15:09
"I'm trying to change the grub timeout by editing the /etc/default/grub file.But there was no such file in my pc."???? You say in your question that you don't have the file, now you say that you have the file, please decide.
– Braiam
Jan 18 '14 at 15:10
i don't have/etc/default/grub
file but i had/boot/grub/grub.cfg
.
– Avinash Raj
Jan 18 '14 at 15:12
|
show 3 more comments
We can also set the grub timeout like this?
– Avinash Raj
Jan 18 '14 at 15:04
"Do you have this line in /boot/grub/grub.cfg" he's presuming you have the file. If you don't have it (as your question suggest) it will do nothing.
– Braiam
Jan 18 '14 at 15:08
yes i have that file and also have the lineset timeout=-1
within curly braces.
– Avinash Raj
Jan 18 '14 at 15:09
"I'm trying to change the grub timeout by editing the /etc/default/grub file.But there was no such file in my pc."???? You say in your question that you don't have the file, now you say that you have the file, please decide.
– Braiam
Jan 18 '14 at 15:10
i don't have/etc/default/grub
file but i had/boot/grub/grub.cfg
.
– Avinash Raj
Jan 18 '14 at 15:12
We can also set the grub timeout like this?
– Avinash Raj
Jan 18 '14 at 15:04
We can also set the grub timeout like this?
– Avinash Raj
Jan 18 '14 at 15:04
"Do you have this line in /boot/grub/grub.cfg" he's presuming you have the file. If you don't have it (as your question suggest) it will do nothing.
– Braiam
Jan 18 '14 at 15:08
"Do you have this line in /boot/grub/grub.cfg" he's presuming you have the file. If you don't have it (as your question suggest) it will do nothing.
– Braiam
Jan 18 '14 at 15:08
yes i have that file and also have the line
set timeout=-1
within curly braces.– Avinash Raj
Jan 18 '14 at 15:09
yes i have that file and also have the line
set timeout=-1
within curly braces.– Avinash Raj
Jan 18 '14 at 15:09
"I'm trying to change the grub timeout by editing the /etc/default/grub file.But there was no such file in my pc."???? You say in your question that you don't have the file, now you say that you have the file, please decide.
– Braiam
Jan 18 '14 at 15:10
"I'm trying to change the grub timeout by editing the /etc/default/grub file.But there was no such file in my pc."???? You say in your question that you don't have the file, now you say that you have the file, please decide.
– Braiam
Jan 18 '14 at 15:10
i don't have
/etc/default/grub
file but i had /boot/grub/grub.cfg
.– Avinash Raj
Jan 18 '14 at 15:12
i don't have
/etc/default/grub
file but i had /boot/grub/grub.cfg
.– Avinash Raj
Jan 18 '14 at 15:12
|
show 3 more comments
just copy example from /usr/share/grub/default/grub
:
sudo cp /usr/share/grub/default/grub /etc/default/
add a comment |
just copy example from /usr/share/grub/default/grub
:
sudo cp /usr/share/grub/default/grub /etc/default/
add a comment |
just copy example from /usr/share/grub/default/grub
:
sudo cp /usr/share/grub/default/grub /etc/default/
just copy example from /usr/share/grub/default/grub
:
sudo cp /usr/share/grub/default/grub /etc/default/
edited May 23 '17 at 14:46
Zanna
50.7k13135241
50.7k13135241
answered May 23 '17 at 14:27
alexander barakinalexander barakin
1111111
1111111
add a comment |
add a comment |
If you really only want to know "why this works", the answer is that LiveCD Ubuntu that you used for installation had this unimportant for boot file etcdefaultgrub.cfg
, so created yours important for boot /boot/grub/grub.cfg
using it.
add a comment |
If you really only want to know "why this works", the answer is that LiveCD Ubuntu that you used for installation had this unimportant for boot file etcdefaultgrub.cfg
, so created yours important for boot /boot/grub/grub.cfg
using it.
add a comment |
If you really only want to know "why this works", the answer is that LiveCD Ubuntu that you used for installation had this unimportant for boot file etcdefaultgrub.cfg
, so created yours important for boot /boot/grub/grub.cfg
using it.
If you really only want to know "why this works", the answer is that LiveCD Ubuntu that you used for installation had this unimportant for boot file etcdefaultgrub.cfg
, so created yours important for boot /boot/grub/grub.cfg
using it.
answered yesterday
Maciej PolańskiMaciej Polański
12
12
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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');
});
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%2faskubuntu.com%2fquestions%2f406229%2fthere-was-no-etc-default-grub-file-so-how-come-my-system-was-able-to-boot%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');
});
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');
});
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');
});
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
If you do not facing any problems... then may I ask; why is that you need to edit the grub file??
– AzkerM
Jan 16 '14 at 6:22
to set the grub timeout.
– Avinash Raj
Jan 16 '14 at 6:24
The one I found is for 12.04 but still this may help you when you try with
sudo
.. askubuntu.com/a/148097/179042– AzkerM
Jan 16 '14 at 7:13
it won't works,there was no such file.
– Avinash Raj
Jan 16 '14 at 7:19
2
Do you have this line in /boot/grub/grub.cfg
### END /etc/grub.d/00_header ###
? if so, you could try addingset timeout=-1
just ahead of that line. If you want a short time out use 2 or 5 instead of -1. That is where timeout is in my .cfg file– user3121023
Jan 18 '14 at 14:35