How to get info on my current GRUB / boot configuration?
First some background: I have dual-boot Windows 7 / Ubuntu 13.04 on Lenovo laptop. As I did the installation about 1.5 years ago and was then even more un-savvy linux user than I am now, I can't recall everything I did to get both OSes up and running. However, I do remember that it was quite troublesome procedure (running boot-repair at least once).
Now I'm considering trying another linux distro in addition to Ubuntu (most likely Arch), and this time I'd like to do it in a way that I have an idea what I'm doing (and possibly learn more about 'inner workings' of linux distros).
So that's enough for the background. Now my question is: How do I get information on what is my current grub / boot-loader configuration?
This seems to be first and quite separate issue to consider before even dreaming about installing a third OS and more advanced messing with partitions and boot.
installation 13.04 boot dual-boot grub2
add a comment |
First some background: I have dual-boot Windows 7 / Ubuntu 13.04 on Lenovo laptop. As I did the installation about 1.5 years ago and was then even more un-savvy linux user than I am now, I can't recall everything I did to get both OSes up and running. However, I do remember that it was quite troublesome procedure (running boot-repair at least once).
Now I'm considering trying another linux distro in addition to Ubuntu (most likely Arch), and this time I'd like to do it in a way that I have an idea what I'm doing (and possibly learn more about 'inner workings' of linux distros).
So that's enough for the background. Now my question is: How do I get information on what is my current grub / boot-loader configuration?
This seems to be first and quite separate issue to consider before even dreaming about installing a third OS and more advanced messing with partitions and boot.
installation 13.04 boot dual-boot grub2
You may usegrub-install -v
Here is another post.
– Stanislav
Oct 11 '15 at 0:38
add a comment |
First some background: I have dual-boot Windows 7 / Ubuntu 13.04 on Lenovo laptop. As I did the installation about 1.5 years ago and was then even more un-savvy linux user than I am now, I can't recall everything I did to get both OSes up and running. However, I do remember that it was quite troublesome procedure (running boot-repair at least once).
Now I'm considering trying another linux distro in addition to Ubuntu (most likely Arch), and this time I'd like to do it in a way that I have an idea what I'm doing (and possibly learn more about 'inner workings' of linux distros).
So that's enough for the background. Now my question is: How do I get information on what is my current grub / boot-loader configuration?
This seems to be first and quite separate issue to consider before even dreaming about installing a third OS and more advanced messing with partitions and boot.
installation 13.04 boot dual-boot grub2
First some background: I have dual-boot Windows 7 / Ubuntu 13.04 on Lenovo laptop. As I did the installation about 1.5 years ago and was then even more un-savvy linux user than I am now, I can't recall everything I did to get both OSes up and running. However, I do remember that it was quite troublesome procedure (running boot-repair at least once).
Now I'm considering trying another linux distro in addition to Ubuntu (most likely Arch), and this time I'd like to do it in a way that I have an idea what I'm doing (and possibly learn more about 'inner workings' of linux distros).
So that's enough for the background. Now my question is: How do I get information on what is my current grub / boot-loader configuration?
This seems to be first and quite separate issue to consider before even dreaming about installing a third OS and more advanced messing with partitions and boot.
installation 13.04 boot dual-boot grub2
installation 13.04 boot dual-boot grub2
asked Oct 3 '13 at 17:04
aqsaloseaqsalose
33115
33115
You may usegrub-install -v
Here is another post.
– Stanislav
Oct 11 '15 at 0:38
add a comment |
You may usegrub-install -v
Here is another post.
– Stanislav
Oct 11 '15 at 0:38
You may use
grub-install -v
Here is another post.– Stanislav
Oct 11 '15 at 0:38
You may use
grub-install -v
Here is another post.– Stanislav
Oct 11 '15 at 0:38
add a comment |
2 Answers
2
active
oldest
votes
Use the BootInfoScript
Check out the README if you have prblems running it.
add a comment |
To view your /boot/grub/grub/cfg file, you might use the following command,
cat /boot/grub/grub.cfg
Press your up or down arrow keys to scroll up and down the file, use your 'q' key to quit and return to your regular terminal prompt.
The grub-mkconfig program runs other scripts and programs such as grub-mkdevice.map and grub-probe and then generates a new grub.cfg file. It also reads files in /etc/default/grub and the /etc/grub.d/debian theme file to tell it what to do. Those are the files we can edit or create for ourselves to change our GRUB settings. I'll show you more about that later.
Below here is an example of a grub.cfg for a new Ubuntu installation in a computer that already has one other Ubuntu installation dual booting with Windows XP.
I have highlighted the commented lines in yellow to draw your attention to them.
You should notice that they each mark the beginning and ending of their own section of the grub.cfg and they appear in numerical sequence starting from the /etc/grub.d/00_header at the top.
The last section of this file is the /etc/grub.d/40_custom area at the bottom of the grub.cfg file.
Each of these sections of the grub.cfg file are controlled by the scripts with the same names, and those are the ones we edit to make changes to our grub.cfg.
The changes will come into effect right after we run 'sudo grub-mkconfig -o /boot/grub/grub.cfg' to write the new grub.cfg file.
SOURCE: http://members.iinet.net/~herman546/p20/GRUB2%20Configuration%20File%20Commands.html
2
Give the guy some credit members.iinet.net/~herman546/p20/…
– wojox
Oct 3 '13 at 17:34
dead link(s) (inc comment)
– Madivad
Apr 27 '18 at 0:28
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%2f353254%2fhow-to-get-info-on-my-current-grub-boot-configuration%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
Use the BootInfoScript
Check out the README if you have prblems running it.
add a comment |
Use the BootInfoScript
Check out the README if you have prblems running it.
add a comment |
Use the BootInfoScript
Check out the README if you have prblems running it.
Use the BootInfoScript
Check out the README if you have prblems running it.
answered Oct 3 '13 at 17:26
mikewhatevermikewhatever
23.6k76785
23.6k76785
add a comment |
add a comment |
To view your /boot/grub/grub/cfg file, you might use the following command,
cat /boot/grub/grub.cfg
Press your up or down arrow keys to scroll up and down the file, use your 'q' key to quit and return to your regular terminal prompt.
The grub-mkconfig program runs other scripts and programs such as grub-mkdevice.map and grub-probe and then generates a new grub.cfg file. It also reads files in /etc/default/grub and the /etc/grub.d/debian theme file to tell it what to do. Those are the files we can edit or create for ourselves to change our GRUB settings. I'll show you more about that later.
Below here is an example of a grub.cfg for a new Ubuntu installation in a computer that already has one other Ubuntu installation dual booting with Windows XP.
I have highlighted the commented lines in yellow to draw your attention to them.
You should notice that they each mark the beginning and ending of their own section of the grub.cfg and they appear in numerical sequence starting from the /etc/grub.d/00_header at the top.
The last section of this file is the /etc/grub.d/40_custom area at the bottom of the grub.cfg file.
Each of these sections of the grub.cfg file are controlled by the scripts with the same names, and those are the ones we edit to make changes to our grub.cfg.
The changes will come into effect right after we run 'sudo grub-mkconfig -o /boot/grub/grub.cfg' to write the new grub.cfg file.
SOURCE: http://members.iinet.net/~herman546/p20/GRUB2%20Configuration%20File%20Commands.html
2
Give the guy some credit members.iinet.net/~herman546/p20/…
– wojox
Oct 3 '13 at 17:34
dead link(s) (inc comment)
– Madivad
Apr 27 '18 at 0:28
add a comment |
To view your /boot/grub/grub/cfg file, you might use the following command,
cat /boot/grub/grub.cfg
Press your up or down arrow keys to scroll up and down the file, use your 'q' key to quit and return to your regular terminal prompt.
The grub-mkconfig program runs other scripts and programs such as grub-mkdevice.map and grub-probe and then generates a new grub.cfg file. It also reads files in /etc/default/grub and the /etc/grub.d/debian theme file to tell it what to do. Those are the files we can edit or create for ourselves to change our GRUB settings. I'll show you more about that later.
Below here is an example of a grub.cfg for a new Ubuntu installation in a computer that already has one other Ubuntu installation dual booting with Windows XP.
I have highlighted the commented lines in yellow to draw your attention to them.
You should notice that they each mark the beginning and ending of their own section of the grub.cfg and they appear in numerical sequence starting from the /etc/grub.d/00_header at the top.
The last section of this file is the /etc/grub.d/40_custom area at the bottom of the grub.cfg file.
Each of these sections of the grub.cfg file are controlled by the scripts with the same names, and those are the ones we edit to make changes to our grub.cfg.
The changes will come into effect right after we run 'sudo grub-mkconfig -o /boot/grub/grub.cfg' to write the new grub.cfg file.
SOURCE: http://members.iinet.net/~herman546/p20/GRUB2%20Configuration%20File%20Commands.html
2
Give the guy some credit members.iinet.net/~herman546/p20/…
– wojox
Oct 3 '13 at 17:34
dead link(s) (inc comment)
– Madivad
Apr 27 '18 at 0:28
add a comment |
To view your /boot/grub/grub/cfg file, you might use the following command,
cat /boot/grub/grub.cfg
Press your up or down arrow keys to scroll up and down the file, use your 'q' key to quit and return to your regular terminal prompt.
The grub-mkconfig program runs other scripts and programs such as grub-mkdevice.map and grub-probe and then generates a new grub.cfg file. It also reads files in /etc/default/grub and the /etc/grub.d/debian theme file to tell it what to do. Those are the files we can edit or create for ourselves to change our GRUB settings. I'll show you more about that later.
Below here is an example of a grub.cfg for a new Ubuntu installation in a computer that already has one other Ubuntu installation dual booting with Windows XP.
I have highlighted the commented lines in yellow to draw your attention to them.
You should notice that they each mark the beginning and ending of their own section of the grub.cfg and they appear in numerical sequence starting from the /etc/grub.d/00_header at the top.
The last section of this file is the /etc/grub.d/40_custom area at the bottom of the grub.cfg file.
Each of these sections of the grub.cfg file are controlled by the scripts with the same names, and those are the ones we edit to make changes to our grub.cfg.
The changes will come into effect right after we run 'sudo grub-mkconfig -o /boot/grub/grub.cfg' to write the new grub.cfg file.
SOURCE: http://members.iinet.net/~herman546/p20/GRUB2%20Configuration%20File%20Commands.html
To view your /boot/grub/grub/cfg file, you might use the following command,
cat /boot/grub/grub.cfg
Press your up or down arrow keys to scroll up and down the file, use your 'q' key to quit and return to your regular terminal prompt.
The grub-mkconfig program runs other scripts and programs such as grub-mkdevice.map and grub-probe and then generates a new grub.cfg file. It also reads files in /etc/default/grub and the /etc/grub.d/debian theme file to tell it what to do. Those are the files we can edit or create for ourselves to change our GRUB settings. I'll show you more about that later.
Below here is an example of a grub.cfg for a new Ubuntu installation in a computer that already has one other Ubuntu installation dual booting with Windows XP.
I have highlighted the commented lines in yellow to draw your attention to them.
You should notice that they each mark the beginning and ending of their own section of the grub.cfg and they appear in numerical sequence starting from the /etc/grub.d/00_header at the top.
The last section of this file is the /etc/grub.d/40_custom area at the bottom of the grub.cfg file.
Each of these sections of the grub.cfg file are controlled by the scripts with the same names, and those are the ones we edit to make changes to our grub.cfg.
The changes will come into effect right after we run 'sudo grub-mkconfig -o /boot/grub/grub.cfg' to write the new grub.cfg file.
SOURCE: http://members.iinet.net/~herman546/p20/GRUB2%20Configuration%20File%20Commands.html
edited Oct 3 '13 at 17:37
answered Oct 3 '13 at 17:30
krishna kaanthhkrishna kaanthh
5031413
5031413
2
Give the guy some credit members.iinet.net/~herman546/p20/…
– wojox
Oct 3 '13 at 17:34
dead link(s) (inc comment)
– Madivad
Apr 27 '18 at 0:28
add a comment |
2
Give the guy some credit members.iinet.net/~herman546/p20/…
– wojox
Oct 3 '13 at 17:34
dead link(s) (inc comment)
– Madivad
Apr 27 '18 at 0:28
2
2
Give the guy some credit members.iinet.net/~herman546/p20/…
– wojox
Oct 3 '13 at 17:34
Give the guy some credit members.iinet.net/~herman546/p20/…
– wojox
Oct 3 '13 at 17:34
dead link(s) (inc comment)
– Madivad
Apr 27 '18 at 0:28
dead link(s) (inc comment)
– Madivad
Apr 27 '18 at 0:28
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f353254%2fhow-to-get-info-on-my-current-grub-boot-configuration%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
You may use
grub-install -v
Here is another post.– Stanislav
Oct 11 '15 at 0:38