Timeshift restore broke GRUB : 'grub_key_is_interrupt'


#21

Hmm, somehow I managed to do something. For future reference, and still need to check if it worked but I did the following:

1. # cryptsetup luksOpen /dev/sdb1 crypted_sdb1
2. # mount /dev/mapper/crypted_sdb1 /mnt
3. # cd /mnt
4. # mount -t proc proc /mnt/proc
5. # mount -t sysfs sys /mnt/sys
6. # mount -o bind /dev /mnt/dev
7. # mount -t devpts pts /mnt/dev/pts/
8. # chroot /mnt
9. # pacman -S mtools os-prober
10. # grub-install /dev/sdb
11. # grub install --recheck /dev/sdb
12. # update-grub

Then it showed:

“Generating grub configuration file …
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-4.19-x86_64
Found initrd image: /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs-4.19-x86_64.img
Found initrd fallback image: /boot/initramfs-4.19-x86_64-fallback.img
Found linux image: /boot/vmlinuz-4.14-x86_64
Found initrd image: /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs-4.14-x86_64.img
Found initrd fallback image: /boot/initramfs-4.14-x86_64-fallback.img
grub-probe: error: cannot find a GRUB drive for /dev/sdf1. Check your device.map.
Found Windows 10 on /dev/sda1
Found memtest86+ image: /boot/memtest86+/memtest.bin
done”

Going to restart in a bit and hope for the best. I picked sdb1 because that is where my Manjaro is installed.

It has the os, the boot, my home, etc.

Edit: just rebooted and went straight to windows. So whatever happened, it did not replaced the windows bootloader.


#22

Do you have a GPT partitioned drive?
Are you sure the system is not UEFI, or UEFI Legacy? Nah, of course you are sure…
Post some drive related info please:

sudo parted -l
sudo fdisk -l
sudo inxi -SMDpuoxxz

#23

sudo parted -l

Model: ATA M4-CT064M4SSD2 (scsi)
Disk /dev/sda: 64.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  577MB   576MB   primary  ntfs         boot
 2      577MB   64.0GB  63.4GB  primary  ntfs


Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sdb: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End    Size    Type     File system  Flags
 1      1049kB  238GB  238GB   primary
 2      238GB   256GB  18.5GB  primary


Model: ATA SAMSUNG HD103SJ (scsi)
Disk /dev/sdc: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  1000GB  1000GB  primary  ext4


Model: ATA WDC WD10EADS-00L (scsi)
Disk /dev/sdd: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  1000GB  1000GB  primary  ext4


Model: Seagate Expansion Desk (scsi)
Disk /dev/sde: 5001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 1      33.6MB  5000GB  5000GB  ext4


Model: 1F60 32GB (scsi)
Disk /dev/sdf: 32.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 2      1755MB  1759MB  4194kB  primary               esp

sudo fdisk -l

Disk /dev/loop0: 54.3 MiB, 56922112 bytes, 111176 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/loop1: 191.7 MiB, 201039872 bytes, 392656 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/loop2: 907.4 MiB, 951443456 bytes, 1858288 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/loop3: 461.8 MiB, 484175872 bytes, 945656 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/sda: 59.6 GiB, 64023257088 bytes, 125045424 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: dos
Disk identifier: 0x66c0c5c9

Device     Boot   Start       End   Sectors  Size Id Type
/dev/sda1  *       2048   1126399   1124352  549M  7 HPFS/NTFS/exFAT
/dev/sda2       1126400 125042687 123916288 59.1G  7 HPFS/NTFS/exFAT


Disk /dev/sdc: 931.5 GiB, 1000204886016 bytes, 1953525168 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: dos
Disk identifier: 0xea0af324

Device     Boot Start        End    Sectors   Size Id Type
/dev/sdc1        2048 1953523711 1953521664 931.5G 83 Linux


Disk /dev/sdd: 931.5 GiB, 1000204886016 bytes, 1953525168 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: dos
Disk identifier: 0xbebd353a

Device     Boot Start        End    Sectors   Size Id Type
/dev/sdd1        2048 1953523711 1953521664 931.5G 83 Linux


Disk /dev/sdb: 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: dos
Disk identifier: 0x7b7872ed

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1            2048 464052497 464050450 221.3G 83 Linux
/dev/sdb2       464052498 500103449  36050952  17.2G 83 Linux


Disk /dev/sde: 4.6 TiB, 5000981077504 bytes, 9767541167 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: 95BFDB6A-F9DC-495A-83B0-2A6494A7DA99

Device     Start        End    Sectors  Size Type
/dev/sde1  65535 9765698024 9765632490  4.6T Linux filesystem

Partition 1 does not start on physical sector boundary.


Disk /dev/sdf: 30.5 GiB, 32715571200 bytes, 63897600 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: dos
Disk identifier: 0x00000000

Device     Boot   Start     End Sectors  Size Id Type
/dev/sdf1  *         64 3427699 3427636  1.6G  0 Empty
/dev/sdf2       3427700 3435891    8192    4M ef EFI (FAT-12/16/32)

sudo inxi -SMDpuoxxz

System:    Host: manjaro-openbox Kernel: 4.19.0-4-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 
           Desktop: Openbox 3.6.1 dm: LightDM Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: Gigabyte model: Z77X-D3H v: x.x serial: N/A BIOS: American Megatrends v: F16 
           date: 10/24/2012 
Drives:    Local Storage: total: 6.69 TiB used: 80.0 MiB (0.0%) 
           ID-1: /dev/sda vendor: Crucial model: M4-CT064M4SSD2 size: 59.63 GiB speed: 6.0 Gb/s serial: <filter> 
           ID-2: /dev/sdb vendor: Samsung model: SSD 850 PRO 256GB size: 238.47 GiB speed: 6.0 Gb/s 
           serial: <filter> 
           ID-3: /dev/sdc vendor: Samsung model: HD103SJ size: 931.51 GiB speed: 3.0 Gb/s serial: <filter> 
           temp: 31 C 
           ID-4: /dev/sdd vendor: Western Digital model: WD10EADS-00L5B1 size: 931.51 GiB speed: 3.0 Gb/s 
           serial: <filter> temp: 32 C 
           ID-5: /dev/sde type: USB vendor: Seagate model: Expansion Desk size: 4.55 TiB serial: <filter> 
           ID-6: /dev/sdf type: USB model: 1F60 32GB size: 30.47 GiB serial: <filter> 
Partition: ID-1: / size: 11.72 GiB used: 80.0 MiB (0.7%) fs: overlay source: ERR-102 uuid: N/A 
           ID-2: /run/miso/bootmnt size: 1.63 GiB used: 1.63 GiB (100.0%) fs: iso9660 dev: /dev/sdf1 
           uuid: 2018-11-04-15-12-28-00 
           ID-3: /run/miso/sfs/desktopfs raw size: 907.4 MiB size: N/A (hidden?) used: N/A (hidden?) fs: squashfs 
           dev: /dev/loop2 uuid: N/A 
           ID-4: /run/miso/sfs/livefs raw size: 54.3 MiB size: N/A (hidden?) used: N/A (hidden?) fs: squashfs 
           dev: /dev/loop0 uuid: N/A 
           ID-5: /run/miso/sfs/mhwdfs raw size: 191.7 MiB size: N/A (hidden?) used: N/A (hidden?) fs: squashfs 
           dev: /dev/loop1 uuid: N/A 
           ID-6: /run/miso/sfs/rootfs raw size: 461.7 MiB size: N/A (hidden?) used: N/A (hidden?) fs: squashfs 
           dev: /dev/loop3 uuid: N/A 
Unmounted: ID-1: /dev/sda1 size: 549.0 MiB fs: ntfs label: N/A uuid: 66682EB4682E8343 
           ID-2: /dev/sda2 size: 59.09 GiB fs: ntfs label: Windows uuid: F6582A88582A47A7 
           ID-3: /dev/sdb1 size: 221.28 GiB fs: crypto_luks label: N/A uuid: 67abef90-a443-4cf2-a0da-5693db34cc17 
           ID-4: /dev/sdb2 size: 17.19 GiB fs: crypto_luks label: N/A uuid: f140448e-b36f-480f-9c6f-9fabe8ea4fe5 
           ID-5: /dev/sdc1 size: 931.51 GiB fs: ext4 label: Data_03 uuid: 482aa7ac-cfc8-4b53-b4b9-71c8b9d5b19d 
           ID-6: /dev/sdd1 size: 931.51 GiB fs: ext4 label: Data_01 uuid: f0a3f0b0-fe9d-4155-90cd-c6b92394c7e2 
           ID-7: /dev/sde1 size: 4.55 TiB fs: ext4 label: Data_02 uuid: 9d5ddb94-6169-4af7-9c59-26b9c2099728 
           ID-8: /dev/sdf2 size: 4.0 MiB fs: vfat label: MISO_EFI uuid: 9C7B-2A83 

Done from a freshly booted OpenBox live ISO. My installed OS is Manjaro Cinnamon.


#24

My suspicion was a fail… No GPT drive.

You have installed grub already on sdb2. Do you also choose that drive from BIOS/boot menu?

In MSDOS/MBR systems, each drive can have a bootloader. If Windows were “repaired”, they should have their bootloader at sda (I guess).
If Manjaro grub was installed on sdb, then choosing sdb from BIOS should at least give you Grub menu.
Are you getting to grub menu? (maybe I missed this information, sorry…)

Edit: Also verify that you installed on disk and not partition

The commands are correct, but were they run like this?


#25

When I look at gparted I do see that the windows drive, which indeed is sda, has the standard windows stuff, including the boot drive with the boot flag.

grub is on sdb. But when I turn on my computer I don’t get a boot menu, straight to windows.

Or do you mean pressing the BIOS key for the boot menu and then picking the hard drive where manjaro is installed to summon the grub that way?


#26

Yes, the same as permanent setting in BIOS.

I 've just found a related issue of timeshift for fully encrypted drive, although on UEFI, that timeshift suggests an unencrypted partition for /boot.

Also, I just mention that drive names can vary during boots, but I don’t think this may happened…
What choices have you made on restore?

Edit: …or you may just flag your sdb1 (root) partition with boot flag


Error reading Passphrase from Terminal
#27

Regarding the timeshift restore? No choices. I picked a time that was 3 hours back and then restored it.

I did looked at the options I had but since they where unclear to me I left the timeshift options at the default. Cant remember what the defaults where though.

Will try booting from the disk with Manjaro and see what happens.

Maybe I should write the bootloader in the boot partition of windows maybe? Since that has the boot flag.


#28

You can add the boot flag to sdb as well and change the boot drive in BIOS to sdb.


#29

I just booted from the drive where the Manjaro is and from there it worked as it should. I guess the simplest solution is now to make sdb the default drive then!

Typing this from my official Manjaro!


#30

Thanks everyone for all the help! I shall make sdb the default drive and thats that. Should hold me out until my new pc at the end of next year and then a fresh install without windows + all the Linux knowledge and preferences I have gained.


#31

About your original issue, I believe timeshift might have used another grub version to recreate/reinstall the bootloader and thus created mess…
What Live media (?) have you used to restore with timeshift? or was it online (current Manjaro system)?


#32

Yeah, I shall look into timeshift.

I downloaded a fresh Manjaro OpenBox Live ISO and “burned” that to a USB and was doing restore from there.


#33

Do you mean 17.1.12? That is from August, so it may had an old grub version, without silent-grub mods… just guessing.

I marked @dglt post for chroot and install grub as a solution, as that was the actual solution to the OT.

Have fun!!


#34

It was download today. Version 18!


#35

i didnt notice in the picture of first post that your drive/s were encrypted and i dont recall you mentioning it which as you found out makes a difference. anyway glad you got it working.
thanks @petsam for stepping in


closed #36

This topic was automatically closed after 90 days. New replies are no longer allowed.