Having given up on my last problem, I did a clean reinstall from scratch.
This time, instead of using clonezilla, I used partimage manually. (I also imaged the entire boot track (63 sectors), instead of just the MBR, in order to pick up all the nice grub pieces.)
So far, so good.
Now I want to test my backup, so a swap hard drives, restore the boot track (which includes the MBR and partition table), and use partimage to restore all of my partitions.
Now the weird stuff starts happening.
When booting, it brings up the initial menu OK, I pick the normal Linux boot, and then (if I hit escape to watch whats happening as it boots) things hang up with:
waiting for device /dev/disk/by-id/scsi-SATA_WDC_WD2500BEVE-_WD-WXEZ07164872-part3 to appear…
When it gives up waiting, I’m in a very minimalist shell. Since my root partition didn’t load, I’m guessing that this is from initrd?
In any case, I look around and find a /config directory with several files. The problematic ones are:
mount.sh
"$rootdev" ] || rootdev='/dev/disk/by-id/scsi-SATA_WDC_WD2500BEVE-_WD-WXEZ07164872-part3'
"$rootfsck" ] || rootfsck='/sbin/fsck.ext3'
and also
storage.sh
"$fallback_rootdev" ] || fallback_rootdev='/dev/disk/by-id/scsi-SATA_WDC_WD2500BEVE-_WD-WXEZ07164872-part3'
"$rootdev" ] || rootdev='/dev/disk/by-id/scsi-SATA_WDC_WD2500BEVE-_WD-WXEZ07164872-part3'
"$resumedev" ] || resumedev='/dev/sda2'
I mount my root partition in order to be able to edit these files, but it’s a waste of time because the next time I boot they’re back as they were.
Does anyone have any idea where these files live, and if it is possible to edit them so that they stay edited?
Otherwise, my current backup solution is only useful as long as my current hard drive doesn’t die. And it is useless for imaging a series of essentially identical machines for the same reason.
Or do I have to reinstall from scratch yet again and make sure the partitioning doesn’t mount by disk id?
Thanks!
S.