I lost my boot drive (sounds crunchy!). I was running Ubuntu Edgy, and I had /var and /home mounted on a RAID5. I also backed up /etc daily to /var/backup so I have all of that.
Here's the relevant lines from /etc/fstab:
Code:
root@ubuntu:/mnt/var/backup/CURRENT/etc# cat ./fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda3 -- converted during upgrade to edgy
UUID=21a6dc19-b80f-49f7-8722-69dd20b7b72d / ext3 defaults,errors=remount-ro 0 1
# /dev/hda6 -- converted during upgrade to edgy
UUID=04415998-25f0-40d4-9632-39f49ea530b7 none swap sw 0 0
/dev/md1 /var ext2 defaults,errors=remount-ro 0 1
/dev/md0 /home ext2 defaults,errors=remount-ro 0 1
/dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0
I have installed a new disk and I am currently installing Ubuntu Dapper from a live CD while I type up this message.
(Note, I am a little unsure of those lines pointing to /dev/hda since I have replaced that disk and I am not using the same partitions).
What is the best way to restore this?
One method:
1) Install dapper to the disk.
2) From the live CD boot, update the dapper fstab to mount the old /var and /home. Copy over the backup /etc.
3) Boot into the new installation, run apt to update the system.
Obviously, I am a little short on the details, but is this the way to go? If so, what is the command to force apt to glabally reinstall?
If you know a good HOWTO for this, please let me know. I am looking around, but I haven't seen anything that involves backups for /var and /etc.
Thanks!