teejee2008 / timeshift

System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots. Supports scheduled snapshots, multiple backup levels, and exclude filters. Snapshots can be restored while system is running or from Live CD/USB.
GNU Lesser General Public License v3.0
4.65k stars 281 forks source link

Grub fail #87

Open rockandruby opened 6 years ago

rockandruby commented 6 years ago

I did snapshot of Linux Mint 18.3 x64 Cinnamon. Then on another pc I run live usb Linux Mint 18.1 x64 Cinnamon and try to restore state. After, I get 'Restore completed with errors' and then when reboot I get grub error: boot/grub/i386-pc/normal.mod not found

Linux Mint 18.1 x64 Cinnamon. Timeshift 17.11.2

teejee2008 commented 6 years ago

It looks like your system is configured for EFI boot but you booted from the Live CD in BIOS mode. Boot from the Live CD in UEFI mode instead of Legacy BIOS mode (your PC's boot menu will have both options when you boot). Restore the snapshot again and it should work.

rockandruby commented 6 years ago

@teejee2008 Thanks for reply, I don't have any selection for UEFI or Legacy. FYI also the same error happens when I install new OS and try to recover.

gderf commented 6 years ago

Nevermind.

I had the same grub error. But it was caused by user error.

The system I was taking snapshots of has two partitions, / and swap. There are no separate /boot or /home partitions.

When I did the restore, I should have set /boot and /home to "Keep on Root Device." But what I did wrong was to change these away to be on the drive I was restoring to. The result of this was to create empty /boot and /home folders on the restore target drive. All the rest of the restored files were lost. So, there was nothing to boot into at all, hence the grub error.

Once I figured this out, the restore went fine with one exception. The swap partition was not created on the restore target drive. This resulted in a rather long boot as swap was specified in /etc/fstab, and Debian takes 90 seconds to time out looking for a partition that does not exist.

teejee2008 commented 6 years ago

For people facing this error, please provide details of your system setup. For example, are you using LVM or Luks? Is boot on a separate partition? System is installed in Uefi or Bios mode?

If you are able to resolve the issue, please provide details of how you resolved it.

Useful Links: https://askubuntu.com/a/462995