Restoring Timeshift snapshot on encrypted disk: “Boot device not selected” error

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I am having a problem restoring a Timeshift snapshot on an encrypted disk. Here are the detailed steps:



1.Install Manjaro Linux 17.1.11 in UEFI mode using default settings except enabling full disk encryption. This will create three partitions: root, swap and EFI.



My fdisk v-l output:



Disk /dev/nvme0n1: 238,5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 24BD641B-F706-4C3A-BBEA-77A2094BF117

Device Start End Sectors Size Type
/dev/nvme0n1p1 4097 618497 614401 300M EFI System
/dev/nvme0n1p2 618498 481648510 481030013 229,4G Linux filesystem
/dev/nvme0n1p3 481648511 500103449 18454939 8,8G Linux filesystem


Disk /dev/mapper/luks-cf34ea3e-2eac-4506-88df-299d01ff70be: 229,4 GiB, 246285269504 bytes, 481025917 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/luks-2dbbe0fd-517d-40a4-b6d4-cb0b0f1f8f73: 8,8 GiB, 9446831616 bytes, 18450843 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


My df -h output:



Filesystem Size Used Avail Use% Mounted on
dev 3,9G 0 3,9G 0% /dev
run 3,9G 9,7M 3,9G 1% /run
/dev/dm-0 225G 68G 147G 32% /
tmpfs 3,9G 64M 3,8G 2% /dev/shm
tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
tmpfs 3,9G 7,1M 3,9G 1% /tmp
/dev/nvme0n1p1 300M 408K 299M 1% /boot/efi
tmpfs 789M 20K 789M 1% /run/user/120
tmpfs 789M 15M 775M 2% /run/user/1000


cat /etc/fstab output:



# <file system> <mount point> <type> <options> <dump> <pass>

UUID=9738-630B /boot/efi vfat defaults,noatime 0 2
UUID=c630065d-90ce-4212-b613-563b15f74730 / ext4 defaults,noatime 0 1
/dev/mapper/luks-2dbbe0fd-517d-40a4-b6d4-cb0b0f1f8f73 swap swap defaults,noatime 0 2


tree -d /boot output:



/boot
├── efi
│   └── EFI
│   ├── boot
│   └── Manjaro
├── grub
│   ├── fonts
│   ├── themes
│   │   └── starfield
│   └── x86_64-efi
└── memtest86+


  1. Open Timeshift and configure it to use rsync snapshots saved to the system disk (i.e. nvme0n1p2):

image



  1. Create a snapshot either on-demand or on schedule.

  2. Now try to restore the snapshot using the default settings suggested by Timeshift:

image



This results in the "Boot device not selected" error:



image



Full error text:



Boot device not selected.
An encrypted device is selected for root file system (/). The boot directory (/boot) must be mounted on a non-encrypted device for the system to boot successfully.
Either select a non-encrypted device for boot directory or select a non-encrypted device for root filesystem.


Any ideas on what I am missing here?










share|improve this question























  • Interesting. The directory /boot is in fact in one of your LUKS containers and the ESP (the real boot directory on EFI systems) is mounted in /boot/efi. Is that the way it's configured in /etc/fstab? Can you provide a directory listing of /boot? Perhaps you have paths like /boot/efi/EFI/....
    – Emmanuel Rosa
    Aug 11 at 11:45










  • Updated myt question with the info you reauested. And yes, I do have /boot/efi/EFI/
    – Igor
    Aug 11 at 12:37










  • Hmm... Manjaro expects the ESP to be mounted at /boot/efi, oh well. I see you've already reported the issue on Github. It seems like the problem is Timeshift needs GRUB to be on an decrypted partition.
    – Emmanuel Rosa
    Aug 11 at 12:58














up vote
0
down vote

favorite












I am having a problem restoring a Timeshift snapshot on an encrypted disk. Here are the detailed steps:



1.Install Manjaro Linux 17.1.11 in UEFI mode using default settings except enabling full disk encryption. This will create three partitions: root, swap and EFI.



My fdisk v-l output:



Disk /dev/nvme0n1: 238,5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 24BD641B-F706-4C3A-BBEA-77A2094BF117

Device Start End Sectors Size Type
/dev/nvme0n1p1 4097 618497 614401 300M EFI System
/dev/nvme0n1p2 618498 481648510 481030013 229,4G Linux filesystem
/dev/nvme0n1p3 481648511 500103449 18454939 8,8G Linux filesystem


Disk /dev/mapper/luks-cf34ea3e-2eac-4506-88df-299d01ff70be: 229,4 GiB, 246285269504 bytes, 481025917 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/luks-2dbbe0fd-517d-40a4-b6d4-cb0b0f1f8f73: 8,8 GiB, 9446831616 bytes, 18450843 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


My df -h output:



Filesystem Size Used Avail Use% Mounted on
dev 3,9G 0 3,9G 0% /dev
run 3,9G 9,7M 3,9G 1% /run
/dev/dm-0 225G 68G 147G 32% /
tmpfs 3,9G 64M 3,8G 2% /dev/shm
tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
tmpfs 3,9G 7,1M 3,9G 1% /tmp
/dev/nvme0n1p1 300M 408K 299M 1% /boot/efi
tmpfs 789M 20K 789M 1% /run/user/120
tmpfs 789M 15M 775M 2% /run/user/1000


cat /etc/fstab output:



# <file system> <mount point> <type> <options> <dump> <pass>

UUID=9738-630B /boot/efi vfat defaults,noatime 0 2
UUID=c630065d-90ce-4212-b613-563b15f74730 / ext4 defaults,noatime 0 1
/dev/mapper/luks-2dbbe0fd-517d-40a4-b6d4-cb0b0f1f8f73 swap swap defaults,noatime 0 2


tree -d /boot output:



/boot
├── efi
│   └── EFI
│   ├── boot
│   └── Manjaro
├── grub
│   ├── fonts
│   ├── themes
│   │   └── starfield
│   └── x86_64-efi
└── memtest86+


  1. Open Timeshift and configure it to use rsync snapshots saved to the system disk (i.e. nvme0n1p2):

image



  1. Create a snapshot either on-demand or on schedule.

  2. Now try to restore the snapshot using the default settings suggested by Timeshift:

image



This results in the "Boot device not selected" error:



image



Full error text:



Boot device not selected.
An encrypted device is selected for root file system (/). The boot directory (/boot) must be mounted on a non-encrypted device for the system to boot successfully.
Either select a non-encrypted device for boot directory or select a non-encrypted device for root filesystem.


Any ideas on what I am missing here?










share|improve this question























  • Interesting. The directory /boot is in fact in one of your LUKS containers and the ESP (the real boot directory on EFI systems) is mounted in /boot/efi. Is that the way it's configured in /etc/fstab? Can you provide a directory listing of /boot? Perhaps you have paths like /boot/efi/EFI/....
    – Emmanuel Rosa
    Aug 11 at 11:45










  • Updated myt question with the info you reauested. And yes, I do have /boot/efi/EFI/
    – Igor
    Aug 11 at 12:37










  • Hmm... Manjaro expects the ESP to be mounted at /boot/efi, oh well. I see you've already reported the issue on Github. It seems like the problem is Timeshift needs GRUB to be on an decrypted partition.
    – Emmanuel Rosa
    Aug 11 at 12:58












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am having a problem restoring a Timeshift snapshot on an encrypted disk. Here are the detailed steps:



1.Install Manjaro Linux 17.1.11 in UEFI mode using default settings except enabling full disk encryption. This will create three partitions: root, swap and EFI.



My fdisk v-l output:



Disk /dev/nvme0n1: 238,5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 24BD641B-F706-4C3A-BBEA-77A2094BF117

Device Start End Sectors Size Type
/dev/nvme0n1p1 4097 618497 614401 300M EFI System
/dev/nvme0n1p2 618498 481648510 481030013 229,4G Linux filesystem
/dev/nvme0n1p3 481648511 500103449 18454939 8,8G Linux filesystem


Disk /dev/mapper/luks-cf34ea3e-2eac-4506-88df-299d01ff70be: 229,4 GiB, 246285269504 bytes, 481025917 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/luks-2dbbe0fd-517d-40a4-b6d4-cb0b0f1f8f73: 8,8 GiB, 9446831616 bytes, 18450843 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


My df -h output:



Filesystem Size Used Avail Use% Mounted on
dev 3,9G 0 3,9G 0% /dev
run 3,9G 9,7M 3,9G 1% /run
/dev/dm-0 225G 68G 147G 32% /
tmpfs 3,9G 64M 3,8G 2% /dev/shm
tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
tmpfs 3,9G 7,1M 3,9G 1% /tmp
/dev/nvme0n1p1 300M 408K 299M 1% /boot/efi
tmpfs 789M 20K 789M 1% /run/user/120
tmpfs 789M 15M 775M 2% /run/user/1000


cat /etc/fstab output:



# <file system> <mount point> <type> <options> <dump> <pass>

UUID=9738-630B /boot/efi vfat defaults,noatime 0 2
UUID=c630065d-90ce-4212-b613-563b15f74730 / ext4 defaults,noatime 0 1
/dev/mapper/luks-2dbbe0fd-517d-40a4-b6d4-cb0b0f1f8f73 swap swap defaults,noatime 0 2


tree -d /boot output:



/boot
├── efi
│   └── EFI
│   ├── boot
│   └── Manjaro
├── grub
│   ├── fonts
│   ├── themes
│   │   └── starfield
│   └── x86_64-efi
└── memtest86+


  1. Open Timeshift and configure it to use rsync snapshots saved to the system disk (i.e. nvme0n1p2):

image



  1. Create a snapshot either on-demand or on schedule.

  2. Now try to restore the snapshot using the default settings suggested by Timeshift:

image



This results in the "Boot device not selected" error:



image



Full error text:



Boot device not selected.
An encrypted device is selected for root file system (/). The boot directory (/boot) must be mounted on a non-encrypted device for the system to boot successfully.
Either select a non-encrypted device for boot directory or select a non-encrypted device for root filesystem.


Any ideas on what I am missing here?










share|improve this question















I am having a problem restoring a Timeshift snapshot on an encrypted disk. Here are the detailed steps:



1.Install Manjaro Linux 17.1.11 in UEFI mode using default settings except enabling full disk encryption. This will create three partitions: root, swap and EFI.



My fdisk v-l output:



Disk /dev/nvme0n1: 238,5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 24BD641B-F706-4C3A-BBEA-77A2094BF117

Device Start End Sectors Size Type
/dev/nvme0n1p1 4097 618497 614401 300M EFI System
/dev/nvme0n1p2 618498 481648510 481030013 229,4G Linux filesystem
/dev/nvme0n1p3 481648511 500103449 18454939 8,8G Linux filesystem


Disk /dev/mapper/luks-cf34ea3e-2eac-4506-88df-299d01ff70be: 229,4 GiB, 246285269504 bytes, 481025917 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/luks-2dbbe0fd-517d-40a4-b6d4-cb0b0f1f8f73: 8,8 GiB, 9446831616 bytes, 18450843 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


My df -h output:



Filesystem Size Used Avail Use% Mounted on
dev 3,9G 0 3,9G 0% /dev
run 3,9G 9,7M 3,9G 1% /run
/dev/dm-0 225G 68G 147G 32% /
tmpfs 3,9G 64M 3,8G 2% /dev/shm
tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
tmpfs 3,9G 7,1M 3,9G 1% /tmp
/dev/nvme0n1p1 300M 408K 299M 1% /boot/efi
tmpfs 789M 20K 789M 1% /run/user/120
tmpfs 789M 15M 775M 2% /run/user/1000


cat /etc/fstab output:



# <file system> <mount point> <type> <options> <dump> <pass>

UUID=9738-630B /boot/efi vfat defaults,noatime 0 2
UUID=c630065d-90ce-4212-b613-563b15f74730 / ext4 defaults,noatime 0 1
/dev/mapper/luks-2dbbe0fd-517d-40a4-b6d4-cb0b0f1f8f73 swap swap defaults,noatime 0 2


tree -d /boot output:



/boot
├── efi
│   └── EFI
│   ├── boot
│   └── Manjaro
├── grub
│   ├── fonts
│   ├── themes
│   │   └── starfield
│   └── x86_64-efi
└── memtest86+


  1. Open Timeshift and configure it to use rsync snapshots saved to the system disk (i.e. nvme0n1p2):

image



  1. Create a snapshot either on-demand or on schedule.

  2. Now try to restore the snapshot using the default settings suggested by Timeshift:

image



This results in the "Boot device not selected" error:



image



Full error text:



Boot device not selected.
An encrypted device is selected for root file system (/). The boot directory (/boot) must be mounted on a non-encrypted device for the system to boot successfully.
Either select a non-encrypted device for boot directory or select a non-encrypted device for root filesystem.


Any ideas on what I am missing here?







backup encryption manjaro






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 11 at 12:33

























asked Aug 11 at 11:34









Igor

12




12











  • Interesting. The directory /boot is in fact in one of your LUKS containers and the ESP (the real boot directory on EFI systems) is mounted in /boot/efi. Is that the way it's configured in /etc/fstab? Can you provide a directory listing of /boot? Perhaps you have paths like /boot/efi/EFI/....
    – Emmanuel Rosa
    Aug 11 at 11:45










  • Updated myt question with the info you reauested. And yes, I do have /boot/efi/EFI/
    – Igor
    Aug 11 at 12:37










  • Hmm... Manjaro expects the ESP to be mounted at /boot/efi, oh well. I see you've already reported the issue on Github. It seems like the problem is Timeshift needs GRUB to be on an decrypted partition.
    – Emmanuel Rosa
    Aug 11 at 12:58
















  • Interesting. The directory /boot is in fact in one of your LUKS containers and the ESP (the real boot directory on EFI systems) is mounted in /boot/efi. Is that the way it's configured in /etc/fstab? Can you provide a directory listing of /boot? Perhaps you have paths like /boot/efi/EFI/....
    – Emmanuel Rosa
    Aug 11 at 11:45










  • Updated myt question with the info you reauested. And yes, I do have /boot/efi/EFI/
    – Igor
    Aug 11 at 12:37










  • Hmm... Manjaro expects the ESP to be mounted at /boot/efi, oh well. I see you've already reported the issue on Github. It seems like the problem is Timeshift needs GRUB to be on an decrypted partition.
    – Emmanuel Rosa
    Aug 11 at 12:58















Interesting. The directory /boot is in fact in one of your LUKS containers and the ESP (the real boot directory on EFI systems) is mounted in /boot/efi. Is that the way it's configured in /etc/fstab? Can you provide a directory listing of /boot? Perhaps you have paths like /boot/efi/EFI/....
– Emmanuel Rosa
Aug 11 at 11:45




Interesting. The directory /boot is in fact in one of your LUKS containers and the ESP (the real boot directory on EFI systems) is mounted in /boot/efi. Is that the way it's configured in /etc/fstab? Can you provide a directory listing of /boot? Perhaps you have paths like /boot/efi/EFI/....
– Emmanuel Rosa
Aug 11 at 11:45












Updated myt question with the info you reauested. And yes, I do have /boot/efi/EFI/
– Igor
Aug 11 at 12:37




Updated myt question with the info you reauested. And yes, I do have /boot/efi/EFI/
– Igor
Aug 11 at 12:37












Hmm... Manjaro expects the ESP to be mounted at /boot/efi, oh well. I see you've already reported the issue on Github. It seems like the problem is Timeshift needs GRUB to be on an decrypted partition.
– Emmanuel Rosa
Aug 11 at 12:58




Hmm... Manjaro expects the ESP to be mounted at /boot/efi, oh well. I see you've already reported the issue on Github. It seems like the problem is Timeshift needs GRUB to be on an decrypted partition.
– Emmanuel Rosa
Aug 11 at 12:58















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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f461975%2frestoring-timeshift-snapshot-on-encrypted-disk-boot-device-not-selected-error%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f461975%2frestoring-timeshift-snapshot-on-encrypted-disk-boot-device-not-selected-error%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?