I've been using Clonezilla for weekly image backups, which is obviously a little bit of a hassle. I've been trying to switch to dd, so I can have cron run it for me.
This is what my backup script looks like:
#!/bin/bash
#dd whole drive
dd if=/dev/sda of=/media/temp/image/"image-$(date +"%Y-%m-%d").img"
I ended up with a 256gb img file, and decided to give it a test run. I booted from the Ubuntu 14.10 live USB stick, opened gnome disk utility, and did "restore disk image" from my NFS-mounted img file.
This is where it gets weird.
After rebooting, I started getting the Grub menu (I only run Linux via UEFI and never get this menu) offering recovery mode. I booted normally, and couldn't enter text into the lightdm password field, although I could move the cursor. X kept restarting every 30 seconds or so, and I couldn't find any errors in /var/log/syslog. After tons of reading online, I tried running apt-get update, which failed an error about some list (I didn't take a screenshot in the heat of the moment). Thinking the nvidia driver might be acting up, I switched to my Intel card (Thinkpad with Optimus) and the exact same thing happened.
I'm back up and running with my Clonezilla image, but I can't figure out where I went wrong. Should I not use the disk utility to restore?
What else might I be doing wrong?