Dual boot setup with LUKS and rEFInd: Can't Restore Backup to Second Partition The Next CEO of Stack OverflowUnable to boot with dracut and luks: '/dev/resume' : file existsCan Grub2 multi-boot LUKS/LVM distros with only one boot partition?Problem with GRUB for dual-boot installation of LMDE 2 (and Windows) on encrypted luks-lvm (truecrypt)why can't I partition a LUKS mounted partition?Guide for Gentoo setup with full disk encryption using LUKS+LVMDo I need boot partition on UEFI & Luks?LUKS partition destroyed, can't recoverModify LUKS encryption after installUnlock LUKS non-root filesystem partition on bootHow to boot an encrypted Debian, from an unencrypted Ubuntu?
Is 'diverse range' a pleonastic phrase?
Complex fractions
Indicator light circuit
WOW air has ceased operation, can I get my tickets refunded?
Interfacing a button to MCU (and PC) with 50m long cable
Is there a difference between "Fahrstuhl" and "Aufzug"
Is it possible to search for a directory/file combination?
What is "(CFMCC)" on an ILS approach chart?
Is it ever safe to open a suspicious html file (e.g. email attachment)?
What does "Its cash flow is deeply negative" mean?
Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis
How do I reset passwords on multiple websites easily?
I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin
Which tube will fit a -(700 x 25c) wheel?
What can we do to stop prior company from asking us questions?
Novel about a guy who is possessed by the divine essence and the world ends?
Do I need to enable Dev Hub in my PROD Org?
Is "for causing autism in X" grammatical?
Multiple labels for a single equation
How to prevent changing the value of variable?
How does the Z80 determine which peripheral sent an interrupt?
If/When UK leaves the EU, can a future goverment conduct a referendum to join the EU?
In excess I'm lethal
If a black hole is created from light, can this black hole then move at speed of light?
Dual boot setup with LUKS and rEFInd: Can't Restore Backup to Second Partition
The Next CEO of Stack OverflowUnable to boot with dracut and luks: '/dev/resume' : file existsCan Grub2 multi-boot LUKS/LVM distros with only one boot partition?Problem with GRUB for dual-boot installation of LMDE 2 (and Windows) on encrypted luks-lvm (truecrypt)why can't I partition a LUKS mounted partition?Guide for Gentoo setup with full disk encryption using LUKS+LVMDo I need boot partition on UEFI & Luks?LUKS partition destroyed, can't recoverModify LUKS encryption after installUnlock LUKS non-root filesystem partition on bootHow to boot an encrypted Debian, from an unencrypted Ubuntu?
I have a dual boot setup on a Windows machine with multiple partitions, the two Linux ones being encrypted using LUKS. For some reason, I can no longer restore a backup to my second Linux LUKS partition and properly boot into the LUKS splash screen so I can enter my decryption password. Instead, it tries to boot the root partition and throws a dracut error.
The key partitions in my setup for this question are:
- /dev/sda1 EFI
- /dev/sda5 Boot for Fedora I
- /dev/sda6 Root for Fedora I -- ENCRYPTED LUKS
- /dev/sda7 Boot for Fedora II
- /dev/sda8 Root for Fedora II -- ENCRYPTED LUKS
I use one combo (Fedora I Root and Boot) for my main driver. Then, if I want to try something new, I backup everything using tar and install it to to the second combo (Fedora II Root and Boot). So I happily go back and forth between my installs without risking borking my setup.
Until recently, I was able to untar a system backup to the decrypted LUKS logical partition, chroot into it, and update the initramfs (using sudo dracut -vf). Doing this is what (I thought) told it to look for the LUKS partition when booting. And on reboot, that newly installed system would display the LUKS decryption splash, then after I entered the password, boot from the root partition.
Now, however, I cannot seem to get a restored system using the second partition combo (Fedora II Root and Boot) to start at the LUKS splash screen. I have triple checked, and the setup is identical to the Fedora I combo. Specifically:
- On the Fedora I and Fedora II
/boot
partitions (note: each is a separate partition), there is a file namedrefind_linux.conf
the first stanza of which reads something like"Boot with standard options" "root=UUID=3a404a5a-3d2e-46cd-bf73-8f40e89efed3 ro rhgb quiet LANG=en_US.UTF-8 acpi_osi=Linux acpi_backlight=native"
, where3a404a5a-3d2e-46cd-bf73-8f40e89efed3
is the UUID for the partition inside the encrypted partition (aka/dev/mapper/luks-f3303886-beb1-4733-8e6f-5794d430e87e
). Of course, the UUID differs depending on whether it is the Fedora I partition or the Fedora II partition. On both the Fedora I and Fedora II root partitions (aka
/
), there is a file called/etc/fstab
, which provides the/
,/boot
, and/boot/efi
UUIDs for the respective partition. For example, one is:UUID=3a404a5a-3d2e-46cd-bf73-8f40e89efed3 / ext4 defaults 1 1
- UUID=D0BD-BA39 /boot/efi vfat umask=0077,shortname=winnt 0 2
- UUID=e40053cc-4402-478e-9af8-67a218401b33 /boot ext4 defaults 1 1
The UUID for the /
partition is the same one listed in refind_linux.conf
.
- On both the Fedora I and Fedora II root partitions (aka
/
), there is a file called/etc/crypttab
, which I thought tells Fedora where to look for the LUKS partition. Here, it is:luks-f3303886-beb1-4733-8e6f-5794d430e87e UUID=f3303886-beb1-4733-8e6f-5794d430e87e none luks
, wheref3303886-beb1-4733-8e6f-5794d430e87e
is the UUID of the LUKS wrapper (aka/dev/sda7
).
Although the setups are identical, the first combo boots and the second does not. What am I missing?
Is there some new method to get a newly installed system to recognize that there is an encrypted partition that it needs to read first?
What do I need to do to get the second partition combo to recognize that it should be looking at the LUKS partition first, not the root partition?
luks refind
New contributor
add a comment |
I have a dual boot setup on a Windows machine with multiple partitions, the two Linux ones being encrypted using LUKS. For some reason, I can no longer restore a backup to my second Linux LUKS partition and properly boot into the LUKS splash screen so I can enter my decryption password. Instead, it tries to boot the root partition and throws a dracut error.
The key partitions in my setup for this question are:
- /dev/sda1 EFI
- /dev/sda5 Boot for Fedora I
- /dev/sda6 Root for Fedora I -- ENCRYPTED LUKS
- /dev/sda7 Boot for Fedora II
- /dev/sda8 Root for Fedora II -- ENCRYPTED LUKS
I use one combo (Fedora I Root and Boot) for my main driver. Then, if I want to try something new, I backup everything using tar and install it to to the second combo (Fedora II Root and Boot). So I happily go back and forth between my installs without risking borking my setup.
Until recently, I was able to untar a system backup to the decrypted LUKS logical partition, chroot into it, and update the initramfs (using sudo dracut -vf). Doing this is what (I thought) told it to look for the LUKS partition when booting. And on reboot, that newly installed system would display the LUKS decryption splash, then after I entered the password, boot from the root partition.
Now, however, I cannot seem to get a restored system using the second partition combo (Fedora II Root and Boot) to start at the LUKS splash screen. I have triple checked, and the setup is identical to the Fedora I combo. Specifically:
- On the Fedora I and Fedora II
/boot
partitions (note: each is a separate partition), there is a file namedrefind_linux.conf
the first stanza of which reads something like"Boot with standard options" "root=UUID=3a404a5a-3d2e-46cd-bf73-8f40e89efed3 ro rhgb quiet LANG=en_US.UTF-8 acpi_osi=Linux acpi_backlight=native"
, where3a404a5a-3d2e-46cd-bf73-8f40e89efed3
is the UUID for the partition inside the encrypted partition (aka/dev/mapper/luks-f3303886-beb1-4733-8e6f-5794d430e87e
). Of course, the UUID differs depending on whether it is the Fedora I partition or the Fedora II partition. On both the Fedora I and Fedora II root partitions (aka
/
), there is a file called/etc/fstab
, which provides the/
,/boot
, and/boot/efi
UUIDs for the respective partition. For example, one is:UUID=3a404a5a-3d2e-46cd-bf73-8f40e89efed3 / ext4 defaults 1 1
- UUID=D0BD-BA39 /boot/efi vfat umask=0077,shortname=winnt 0 2
- UUID=e40053cc-4402-478e-9af8-67a218401b33 /boot ext4 defaults 1 1
The UUID for the /
partition is the same one listed in refind_linux.conf
.
- On both the Fedora I and Fedora II root partitions (aka
/
), there is a file called/etc/crypttab
, which I thought tells Fedora where to look for the LUKS partition. Here, it is:luks-f3303886-beb1-4733-8e6f-5794d430e87e UUID=f3303886-beb1-4733-8e6f-5794d430e87e none luks
, wheref3303886-beb1-4733-8e6f-5794d430e87e
is the UUID of the LUKS wrapper (aka/dev/sda7
).
Although the setups are identical, the first combo boots and the second does not. What am I missing?
Is there some new method to get a newly installed system to recognize that there is an encrypted partition that it needs to read first?
What do I need to do to get the second partition combo to recognize that it should be looking at the LUKS partition first, not the root partition?
luks refind
New contributor
add a comment |
I have a dual boot setup on a Windows machine with multiple partitions, the two Linux ones being encrypted using LUKS. For some reason, I can no longer restore a backup to my second Linux LUKS partition and properly boot into the LUKS splash screen so I can enter my decryption password. Instead, it tries to boot the root partition and throws a dracut error.
The key partitions in my setup for this question are:
- /dev/sda1 EFI
- /dev/sda5 Boot for Fedora I
- /dev/sda6 Root for Fedora I -- ENCRYPTED LUKS
- /dev/sda7 Boot for Fedora II
- /dev/sda8 Root for Fedora II -- ENCRYPTED LUKS
I use one combo (Fedora I Root and Boot) for my main driver. Then, if I want to try something new, I backup everything using tar and install it to to the second combo (Fedora II Root and Boot). So I happily go back and forth between my installs without risking borking my setup.
Until recently, I was able to untar a system backup to the decrypted LUKS logical partition, chroot into it, and update the initramfs (using sudo dracut -vf). Doing this is what (I thought) told it to look for the LUKS partition when booting. And on reboot, that newly installed system would display the LUKS decryption splash, then after I entered the password, boot from the root partition.
Now, however, I cannot seem to get a restored system using the second partition combo (Fedora II Root and Boot) to start at the LUKS splash screen. I have triple checked, and the setup is identical to the Fedora I combo. Specifically:
- On the Fedora I and Fedora II
/boot
partitions (note: each is a separate partition), there is a file namedrefind_linux.conf
the first stanza of which reads something like"Boot with standard options" "root=UUID=3a404a5a-3d2e-46cd-bf73-8f40e89efed3 ro rhgb quiet LANG=en_US.UTF-8 acpi_osi=Linux acpi_backlight=native"
, where3a404a5a-3d2e-46cd-bf73-8f40e89efed3
is the UUID for the partition inside the encrypted partition (aka/dev/mapper/luks-f3303886-beb1-4733-8e6f-5794d430e87e
). Of course, the UUID differs depending on whether it is the Fedora I partition or the Fedora II partition. On both the Fedora I and Fedora II root partitions (aka
/
), there is a file called/etc/fstab
, which provides the/
,/boot
, and/boot/efi
UUIDs for the respective partition. For example, one is:UUID=3a404a5a-3d2e-46cd-bf73-8f40e89efed3 / ext4 defaults 1 1
- UUID=D0BD-BA39 /boot/efi vfat umask=0077,shortname=winnt 0 2
- UUID=e40053cc-4402-478e-9af8-67a218401b33 /boot ext4 defaults 1 1
The UUID for the /
partition is the same one listed in refind_linux.conf
.
- On both the Fedora I and Fedora II root partitions (aka
/
), there is a file called/etc/crypttab
, which I thought tells Fedora where to look for the LUKS partition. Here, it is:luks-f3303886-beb1-4733-8e6f-5794d430e87e UUID=f3303886-beb1-4733-8e6f-5794d430e87e none luks
, wheref3303886-beb1-4733-8e6f-5794d430e87e
is the UUID of the LUKS wrapper (aka/dev/sda7
).
Although the setups are identical, the first combo boots and the second does not. What am I missing?
Is there some new method to get a newly installed system to recognize that there is an encrypted partition that it needs to read first?
What do I need to do to get the second partition combo to recognize that it should be looking at the LUKS partition first, not the root partition?
luks refind
New contributor
I have a dual boot setup on a Windows machine with multiple partitions, the two Linux ones being encrypted using LUKS. For some reason, I can no longer restore a backup to my second Linux LUKS partition and properly boot into the LUKS splash screen so I can enter my decryption password. Instead, it tries to boot the root partition and throws a dracut error.
The key partitions in my setup for this question are:
- /dev/sda1 EFI
- /dev/sda5 Boot for Fedora I
- /dev/sda6 Root for Fedora I -- ENCRYPTED LUKS
- /dev/sda7 Boot for Fedora II
- /dev/sda8 Root for Fedora II -- ENCRYPTED LUKS
I use one combo (Fedora I Root and Boot) for my main driver. Then, if I want to try something new, I backup everything using tar and install it to to the second combo (Fedora II Root and Boot). So I happily go back and forth between my installs without risking borking my setup.
Until recently, I was able to untar a system backup to the decrypted LUKS logical partition, chroot into it, and update the initramfs (using sudo dracut -vf). Doing this is what (I thought) told it to look for the LUKS partition when booting. And on reboot, that newly installed system would display the LUKS decryption splash, then after I entered the password, boot from the root partition.
Now, however, I cannot seem to get a restored system using the second partition combo (Fedora II Root and Boot) to start at the LUKS splash screen. I have triple checked, and the setup is identical to the Fedora I combo. Specifically:
- On the Fedora I and Fedora II
/boot
partitions (note: each is a separate partition), there is a file namedrefind_linux.conf
the first stanza of which reads something like"Boot with standard options" "root=UUID=3a404a5a-3d2e-46cd-bf73-8f40e89efed3 ro rhgb quiet LANG=en_US.UTF-8 acpi_osi=Linux acpi_backlight=native"
, where3a404a5a-3d2e-46cd-bf73-8f40e89efed3
is the UUID for the partition inside the encrypted partition (aka/dev/mapper/luks-f3303886-beb1-4733-8e6f-5794d430e87e
). Of course, the UUID differs depending on whether it is the Fedora I partition or the Fedora II partition. On both the Fedora I and Fedora II root partitions (aka
/
), there is a file called/etc/fstab
, which provides the/
,/boot
, and/boot/efi
UUIDs for the respective partition. For example, one is:UUID=3a404a5a-3d2e-46cd-bf73-8f40e89efed3 / ext4 defaults 1 1
- UUID=D0BD-BA39 /boot/efi vfat umask=0077,shortname=winnt 0 2
- UUID=e40053cc-4402-478e-9af8-67a218401b33 /boot ext4 defaults 1 1
The UUID for the /
partition is the same one listed in refind_linux.conf
.
- On both the Fedora I and Fedora II root partitions (aka
/
), there is a file called/etc/crypttab
, which I thought tells Fedora where to look for the LUKS partition. Here, it is:luks-f3303886-beb1-4733-8e6f-5794d430e87e UUID=f3303886-beb1-4733-8e6f-5794d430e87e none luks
, wheref3303886-beb1-4733-8e6f-5794d430e87e
is the UUID of the LUKS wrapper (aka/dev/sda7
).
Although the setups are identical, the first combo boots and the second does not. What am I missing?
Is there some new method to get a newly installed system to recognize that there is an encrypted partition that it needs to read first?
What do I need to do to get the second partition combo to recognize that it should be looking at the LUKS partition first, not the root partition?
luks refind
luks refind
New contributor
New contributor
edited 2 days ago
The Roark
New contributor
asked 2 days ago
The RoarkThe Roark
63
63
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
);
);
The Roark is a new contributor. Be nice, and check out our Code of Conduct.
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%2funix.stackexchange.com%2fquestions%2f509118%2fdual-boot-setup-with-luks-and-refind-cant-restore-backup-to-second-partition%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
The Roark is a new contributor. Be nice, and check out our Code of Conduct.
The Roark is a new contributor. Be nice, and check out our Code of Conduct.
The Roark is a new contributor. Be nice, and check out our Code of Conduct.
The Roark is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f509118%2fdual-boot-setup-with-luks-and-refind-cant-restore-backup-to-second-partition%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