Related to grub rescue
up vote
0
down vote
favorite
every time I restart my laptop control enters into grub rescue mode, then I have to type the following commands to boot into ubuntu:-
1:-set boot=(hd0,gpt4)
2:-set prefix=(hd0,gpt4)/boot/grub
3:-insmod normal
4:-normal
how to permanently fix this issue? so that I directly boot into ubuntu.
18.04
New contributor
add a comment |
up vote
0
down vote
favorite
every time I restart my laptop control enters into grub rescue mode, then I have to type the following commands to boot into ubuntu:-
1:-set boot=(hd0,gpt4)
2:-set prefix=(hd0,gpt4)/boot/grub
3:-insmod normal
4:-normal
how to permanently fix this issue? so that I directly boot into ubuntu.
18.04
New contributor
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
every time I restart my laptop control enters into grub rescue mode, then I have to type the following commands to boot into ubuntu:-
1:-set boot=(hd0,gpt4)
2:-set prefix=(hd0,gpt4)/boot/grub
3:-insmod normal
4:-normal
how to permanently fix this issue? so that I directly boot into ubuntu.
18.04
New contributor
every time I restart my laptop control enters into grub rescue mode, then I have to type the following commands to boot into ubuntu:-
1:-set boot=(hd0,gpt4)
2:-set prefix=(hd0,gpt4)/boot/grub
3:-insmod normal
4:-normal
how to permanently fix this issue? so that I directly boot into ubuntu.
18.04
18.04
New contributor
New contributor
edited Nov 28 at 21:08
abu_bua
3,07081023
3,07081023
New contributor
asked Nov 28 at 18:17
C0ffeeMachine
1
1
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Check your bios settings, secure boot feature in BIOS should be disabled.
Since you can boot into Ubuntu with commands. Do it, and when you are in Ubuntu:
At first try
sudo update-grub
andreboot
If no success.
- To find out if you have efi or legacy boot run in terminal:
[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
For efi boot:
sudo grub-install --boot-directory="your boot directory" --bootloader-id=ubuntu --target=x86_64-efi --efi-directory="your efi directory"
Example "your boot directory" =/boot
and "your efi directory" =/boot/efi
- For Legacy boot:
sudo grub-install sdx
x in sdx being your disc with Ubuntu eg. sda, sdb etc. You can find this out withgparted
- Last
sudo update-grub
andreboot
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Check your bios settings, secure boot feature in BIOS should be disabled.
Since you can boot into Ubuntu with commands. Do it, and when you are in Ubuntu:
At first try
sudo update-grub
andreboot
If no success.
- To find out if you have efi or legacy boot run in terminal:
[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
For efi boot:
sudo grub-install --boot-directory="your boot directory" --bootloader-id=ubuntu --target=x86_64-efi --efi-directory="your efi directory"
Example "your boot directory" =/boot
and "your efi directory" =/boot/efi
- For Legacy boot:
sudo grub-install sdx
x in sdx being your disc with Ubuntu eg. sda, sdb etc. You can find this out withgparted
- Last
sudo update-grub
andreboot
add a comment |
up vote
0
down vote
Check your bios settings, secure boot feature in BIOS should be disabled.
Since you can boot into Ubuntu with commands. Do it, and when you are in Ubuntu:
At first try
sudo update-grub
andreboot
If no success.
- To find out if you have efi or legacy boot run in terminal:
[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
For efi boot:
sudo grub-install --boot-directory="your boot directory" --bootloader-id=ubuntu --target=x86_64-efi --efi-directory="your efi directory"
Example "your boot directory" =/boot
and "your efi directory" =/boot/efi
- For Legacy boot:
sudo grub-install sdx
x in sdx being your disc with Ubuntu eg. sda, sdb etc. You can find this out withgparted
- Last
sudo update-grub
andreboot
add a comment |
up vote
0
down vote
up vote
0
down vote
Check your bios settings, secure boot feature in BIOS should be disabled.
Since you can boot into Ubuntu with commands. Do it, and when you are in Ubuntu:
At first try
sudo update-grub
andreboot
If no success.
- To find out if you have efi or legacy boot run in terminal:
[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
For efi boot:
sudo grub-install --boot-directory="your boot directory" --bootloader-id=ubuntu --target=x86_64-efi --efi-directory="your efi directory"
Example "your boot directory" =/boot
and "your efi directory" =/boot/efi
- For Legacy boot:
sudo grub-install sdx
x in sdx being your disc with Ubuntu eg. sda, sdb etc. You can find this out withgparted
- Last
sudo update-grub
andreboot
Check your bios settings, secure boot feature in BIOS should be disabled.
Since you can boot into Ubuntu with commands. Do it, and when you are in Ubuntu:
At first try
sudo update-grub
andreboot
If no success.
- To find out if you have efi or legacy boot run in terminal:
[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
For efi boot:
sudo grub-install --boot-directory="your boot directory" --bootloader-id=ubuntu --target=x86_64-efi --efi-directory="your efi directory"
Example "your boot directory" =/boot
and "your efi directory" =/boot/efi
- For Legacy boot:
sudo grub-install sdx
x in sdx being your disc with Ubuntu eg. sda, sdb etc. You can find this out withgparted
- Last
sudo update-grub
andreboot
edited Nov 28 at 23:07
answered Nov 28 at 21:35
Hobbyist
1,126617
1,126617
add a comment |
add a comment |
C0ffeeMachine is a new contributor. Be nice, and check out our Code of Conduct.
C0ffeeMachine is a new contributor. Be nice, and check out our Code of Conduct.
C0ffeeMachine is a new contributor. Be nice, and check out our Code of Conduct.
C0ffeeMachine is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1096882%2frelated-to-grub-rescue%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