
On Fri, May 15, 2015 at 12:18:36PM +1000, Carl Turney wrote:
When booting up with a backup (near-clone), in place of the master disk, I get the following error message, just after the GRUB2 (?) menu...
Error: No such device: c2oc...07CB (i.e. the UUID of the master/source disk) Press any key to continue...
Then, after ~4 seconds, and without tapping any key, it just continues with the boot-up sequence and the entire system seems to run normally.
Should I harbour any concerns?
sounds like it finds the new root partition and boots successfully anyway. if you're going to keep running on the backup, you could run update-grub as root at this point to fix up the grub.cfg if the error message during the first-time boot bothers you, you can run sed to change the UUIDs in the backed up /boot/grub/grub.cfg after running the rsync backup. just put something like the following at the end of your rsync backup script (assuming you are backing up to a partition mounted as /target): sed -i -e 's/OLD_UUID/NEW_UUID/g' /target/boot/grub/grub.cfg if you need to change multiple UUIDs (e.g. for /, /boot, /home) then you can either run multiple sed commands or use multiple "-e 's/old/new/g'" options. you can find the old and new UUIDs by running the 'blkid' program when both old and new disks are plugged in. cut and paste them with a mouse to avoid typing errors. e.g. on one of my systems it produces output like this: # blkid /dev/sda2: UUID="db8bda5f-4f18-4abb-a151-08494e398047" TYPE="swap" PARTUUID="3a1e16ae-02" /dev/sda1: UUID="08799b67-8ed7-4cee-aea1-0f9e7bd1fc04" TYPE="ext4" PARTUUID="3a1e16ae-01" /dev/sda3: UUID="fc967791-b9cf-4145-9047-8a8b223ac4bb" TYPE="xfs" PARTUUID="3a1e16ae-03" if there were a second disk installed, it would show them too. NOTE: if your /etc/fstab uses UUIDs (rather than device names like /dev/sda1) to specify which partitions to mount and where, you will certainly need to use sed to modify /target/etc/fstab after backing it up as well as /target/boot/grub/grub.cfg sed -i -e 's/OLD_UUID/NEW_UUID/g' /target/boot/grub/grub.cfg /target/etc/fstab craig -- craig sanders <cas@taz.net.au>