The disk that holds my /var partition (and /home) went fishing and I had it replaced. The problem is that I cannot bring my arch installation back to life.
A copy if my /var partition on a ntfs external hdd (made with cp -r).
Pretty much nothing from my home (everything I need is somewhere else, so no big deal, just getting the system to work is enough).
A new HDD.
Partition the new HDD the same way I did the old one - /var and /home on it (/ is on a different hdd, it has not been changed).
Copy everything I've backed up back to /var (probably with completely wrong permissions).
Edit to /etc/fstab to change the UUIDs.
The system goes through grub2, loads the kernel and errors out with a message that it cannot find a hdd (by listing it by UUID) with the UUID of the / (root) hard drive (the one that's not changed in any way) and drops me into a [rootfs /] prompt that even doesn't have fdisk in it.
Last edited by vladev (2012-10-07 10:46:32)
Yeah, the permissions thing is going to suck. Dunno how to recover from that. Boot from a live CD, chroot into your install, and regenerate the grub.cfg.
In the future, you can simply tar up the target partition -- to any fs -- which will retain the permissions therein. You'll just have to do it from a live CD or another Linux partition.
# tar zcvfp /path/to/var_backup-20121005.tar.gz /path/to/var/
I eneded up reinstalling Arch. Thank you graysky, will know the next time.