How to reinstall grub from a liveUSB if the / partition is encrypted and there is a separate /boot partition?
I found few threads that explain how to reinstall grub2 by the mean of chroot but none of them explain how to proceed if my / is encrypted and if there is a plain /boot partition. Thing is I installed Debian in EFI mode and it made an unbootable entry (Japanese character) in the UEFI boot menu.
I tried to make a new entry using efibootmgr from Ubuntu liveUSB but it is still unbootable. I'd like to reinstall grub from Ubuntu liveUSB but I don't know to chroot the encrypted / partition and how the separate /boot partition blends in.
boot grub2 uefi reinstall
add a comment |
I found few threads that explain how to reinstall grub2 by the mean of chroot but none of them explain how to proceed if my / is encrypted and if there is a plain /boot partition. Thing is I installed Debian in EFI mode and it made an unbootable entry (Japanese character) in the UEFI boot menu.
I tried to make a new entry using efibootmgr from Ubuntu liveUSB but it is still unbootable. I'd like to reinstall grub from Ubuntu liveUSB but I don't know to chroot the encrypted / partition and how the separate /boot partition blends in.
boot grub2 uefi reinstall
Given your configuration, you might want to try my rEFInd boot manager, which tends to handle multi-distribution configurations better than GRUB. Try downloading the USB flash drive or CD-R version to see if it will boot both Debian and Ubuntu. (You may need to add extra boot options to identify your root filesystem by pressing F2 or Delete twice to boot Ubuntu.) If it works, you can install the PPA from Ubuntu or the Debian package in either Debian or Ubuntu.
– Rod Smith
Jan 10 '16 at 15:16
add a comment |
I found few threads that explain how to reinstall grub2 by the mean of chroot but none of them explain how to proceed if my / is encrypted and if there is a plain /boot partition. Thing is I installed Debian in EFI mode and it made an unbootable entry (Japanese character) in the UEFI boot menu.
I tried to make a new entry using efibootmgr from Ubuntu liveUSB but it is still unbootable. I'd like to reinstall grub from Ubuntu liveUSB but I don't know to chroot the encrypted / partition and how the separate /boot partition blends in.
boot grub2 uefi reinstall
I found few threads that explain how to reinstall grub2 by the mean of chroot but none of them explain how to proceed if my / is encrypted and if there is a plain /boot partition. Thing is I installed Debian in EFI mode and it made an unbootable entry (Japanese character) in the UEFI boot menu.
I tried to make a new entry using efibootmgr from Ubuntu liveUSB but it is still unbootable. I'd like to reinstall grub from Ubuntu liveUSB but I don't know to chroot the encrypted / partition and how the separate /boot partition blends in.
boot grub2 uefi reinstall
boot grub2 uefi reinstall
edited Jan 3 '17 at 15:51
Thomas W.
13415
13415
asked Jan 10 '16 at 11:29
ChiseledAbs
12615
12615
Given your configuration, you might want to try my rEFInd boot manager, which tends to handle multi-distribution configurations better than GRUB. Try downloading the USB flash drive or CD-R version to see if it will boot both Debian and Ubuntu. (You may need to add extra boot options to identify your root filesystem by pressing F2 or Delete twice to boot Ubuntu.) If it works, you can install the PPA from Ubuntu or the Debian package in either Debian or Ubuntu.
– Rod Smith
Jan 10 '16 at 15:16
add a comment |
Given your configuration, you might want to try my rEFInd boot manager, which tends to handle multi-distribution configurations better than GRUB. Try downloading the USB flash drive or CD-R version to see if it will boot both Debian and Ubuntu. (You may need to add extra boot options to identify your root filesystem by pressing F2 or Delete twice to boot Ubuntu.) If it works, you can install the PPA from Ubuntu or the Debian package in either Debian or Ubuntu.
– Rod Smith
Jan 10 '16 at 15:16
Given your configuration, you might want to try my rEFInd boot manager, which tends to handle multi-distribution configurations better than GRUB. Try downloading the USB flash drive or CD-R version to see if it will boot both Debian and Ubuntu. (You may need to add extra boot options to identify your root filesystem by pressing F2 or Delete twice to boot Ubuntu.) If it works, you can install the PPA from Ubuntu or the Debian package in either Debian or Ubuntu.
– Rod Smith
Jan 10 '16 at 15:16
Given your configuration, you might want to try my rEFInd boot manager, which tends to handle multi-distribution configurations better than GRUB. Try downloading the USB flash drive or CD-R version to see if it will boot both Debian and Ubuntu. (You may need to add extra boot options to identify your root filesystem by pressing F2 or Delete twice to boot Ubuntu.) If it works, you can install the PPA from Ubuntu or the Debian package in either Debian or Ubuntu.
– Rod Smith
Jan 10 '16 at 15:16
add a comment |
1 Answer
1
active
oldest
votes
Try this:
Boot from an Ubuntu Live USB with a working connection to the internet.
Open a Terminal window (Applications ---- Accessories ---- Terminal).
Type the following commands:
sudo -i
apt-get update
apt-get install cryptsetup lvm2
fdisk -l
cryptsetup luksOpen /dev/sda? TAG #sda? is your root partition
vgchange -ay
vgscan
vgchange -ay [VOLUME GROUP NAME]
lvscan
/dev/[VOLUME GROUP NAME]/[LOGICAL VOLUME NAME] /mnt
modprobe efivars
mount /dev/sda? /mnt/boot/efi #sda? is your efi partition
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
cp /etc/resolv.conf /mnt/etc/
chroot /mnt
apt-get install --reinstall grub-efi-amd64
or
apt-get install --reinstall grub-efi
update-grub
umount /mnt
vgchange -an
cryptsetup luksClose TAG
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%2f719409%2fhow-to-reinstall-grub-from-a-liveusb-if-the-partition-is-encrypted-and-there-i%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try this:
Boot from an Ubuntu Live USB with a working connection to the internet.
Open a Terminal window (Applications ---- Accessories ---- Terminal).
Type the following commands:
sudo -i
apt-get update
apt-get install cryptsetup lvm2
fdisk -l
cryptsetup luksOpen /dev/sda? TAG #sda? is your root partition
vgchange -ay
vgscan
vgchange -ay [VOLUME GROUP NAME]
lvscan
/dev/[VOLUME GROUP NAME]/[LOGICAL VOLUME NAME] /mnt
modprobe efivars
mount /dev/sda? /mnt/boot/efi #sda? is your efi partition
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
cp /etc/resolv.conf /mnt/etc/
chroot /mnt
apt-get install --reinstall grub-efi-amd64
or
apt-get install --reinstall grub-efi
update-grub
umount /mnt
vgchange -an
cryptsetup luksClose TAG
add a comment |
Try this:
Boot from an Ubuntu Live USB with a working connection to the internet.
Open a Terminal window (Applications ---- Accessories ---- Terminal).
Type the following commands:
sudo -i
apt-get update
apt-get install cryptsetup lvm2
fdisk -l
cryptsetup luksOpen /dev/sda? TAG #sda? is your root partition
vgchange -ay
vgscan
vgchange -ay [VOLUME GROUP NAME]
lvscan
/dev/[VOLUME GROUP NAME]/[LOGICAL VOLUME NAME] /mnt
modprobe efivars
mount /dev/sda? /mnt/boot/efi #sda? is your efi partition
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
cp /etc/resolv.conf /mnt/etc/
chroot /mnt
apt-get install --reinstall grub-efi-amd64
or
apt-get install --reinstall grub-efi
update-grub
umount /mnt
vgchange -an
cryptsetup luksClose TAG
add a comment |
Try this:
Boot from an Ubuntu Live USB with a working connection to the internet.
Open a Terminal window (Applications ---- Accessories ---- Terminal).
Type the following commands:
sudo -i
apt-get update
apt-get install cryptsetup lvm2
fdisk -l
cryptsetup luksOpen /dev/sda? TAG #sda? is your root partition
vgchange -ay
vgscan
vgchange -ay [VOLUME GROUP NAME]
lvscan
/dev/[VOLUME GROUP NAME]/[LOGICAL VOLUME NAME] /mnt
modprobe efivars
mount /dev/sda? /mnt/boot/efi #sda? is your efi partition
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
cp /etc/resolv.conf /mnt/etc/
chroot /mnt
apt-get install --reinstall grub-efi-amd64
or
apt-get install --reinstall grub-efi
update-grub
umount /mnt
vgchange -an
cryptsetup luksClose TAG
Try this:
Boot from an Ubuntu Live USB with a working connection to the internet.
Open a Terminal window (Applications ---- Accessories ---- Terminal).
Type the following commands:
sudo -i
apt-get update
apt-get install cryptsetup lvm2
fdisk -l
cryptsetup luksOpen /dev/sda? TAG #sda? is your root partition
vgchange -ay
vgscan
vgchange -ay [VOLUME GROUP NAME]
lvscan
/dev/[VOLUME GROUP NAME]/[LOGICAL VOLUME NAME] /mnt
modprobe efivars
mount /dev/sda? /mnt/boot/efi #sda? is your efi partition
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
cp /etc/resolv.conf /mnt/etc/
chroot /mnt
apt-get install --reinstall grub-efi-amd64
or
apt-get install --reinstall grub-efi
update-grub
umount /mnt
vgchange -an
cryptsetup luksClose TAG
answered Jan 10 '16 at 15:25
kyodake
9,65011932
9,65011932
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.
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%2f719409%2fhow-to-reinstall-grub-from-a-liveusb-if-the-partition-is-encrypted-and-there-i%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
Given your configuration, you might want to try my rEFInd boot manager, which tends to handle multi-distribution configurations better than GRUB. Try downloading the USB flash drive or CD-R version to see if it will boot both Debian and Ubuntu. (You may need to add extra boot options to identify your root filesystem by pressing F2 or Delete twice to boot Ubuntu.) If it works, you can install the PPA from Ubuntu or the Debian package in either Debian or Ubuntu.
– Rod Smith
Jan 10 '16 at 15:16