You are not logged in.
My hard drive, which is backed up with rsync, died. I would like to restore this rsync backup to another drive, but I know that copying the files is not enough. The drive also needs to be bootable. What I am thinking right now is to install arch to the drive and then add in all the files from the rsync backup. I don't really want to install Arch again, as this could take a while. Is there a utility for this? Also, am I missing anything that I need to make this work?
Thanks!
Offline
If you have backups of absolutely everything, you should be able to just partition your new drive similarly as you had previously, mount the drives in whatever configuration you want and then restore the backup.
My backups don't include /usr or /var though, so I would need to reinstall Arch and all my packages before restoring the rest. If you don't have backups of these, then you will need to do the same.
Offline
If you have backups of absolutely everything, you should be able to just partition your new drive similarly as you had previously, mount the drives in whatever configuration you want and then restore the backup.
That sounds good to me. You can use an Arch Linux live CD to boot, copy the files to the new drive, archchroot to the new drive, and install GRUB.
Make sure your GRUB config and "fstab" files are still pointing to the correct partitions!
Offline
Restore it just like you backed it up only backwards. For example if you did a backup like this:
rsync -aAXv /* /path/to/backup/location/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*}then you can restore like this:
rsync -aAXv /path/to/backup/location/* /mount/point/of/new/install/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*}After that just chroot in, reinstall grub, and reboot. To make your partition bootable you just set the boot flag in whatever partitioning program you are using.
Last edited by dodo3773 (2013-05-09 18:10:40)
Offline
Thanks guys! Can anyone recommend a good distro for booting live, partitioning, chrooting, etc? One of those rescue distros?
Offline
Thanks guys! Can anyone recommend a good distro for booting live, partitioning, chrooting, etc? One of those rescue distros?
Arch Linux ![]()
Any of them will work. I always keep an SDcard with PuppyLinux on it in my computer's bag.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
I usually use systemrescuecd for this kind of stuff. And use the option to mount the whole thing to ram and pull out the disk.
Offline
Unfortunately, my backup is encrypted with True crypt. Any rescue distros that come with it?
Offline
Ok, I used an Ubuntu Live USB, booted, partitioned the new drive, copied everything appropriately, and edited the fstab. (and learned a lot in the process!) My problem now is that pacman claims that mtab doesn't exist. It does exist, and is a symbolic link to /proc/self/mounts, which is a file that is generated by the kernel. Pacman won't work without this, but it seems that I need this file to make pacman work, and I need to install grub (using pacman) to boot and have the kernel generate this file. What can I do to get around this?
Offline
This is just a guess... Are you using "chroot" or "arch-chroot"? Because "arch-chroot" will automatically setup a bunch of stuff for you. See: https://wiki.archlinux.org/index.php/Change_Root
Last edited by drcouzelis (2013-05-12 02:35:51)
Offline
Thanks, I was not using arch-chroot. I will let you know if out works tomorrow morning when I try that!
Offline
I can't really say if it worked out or not since I am having issues mounting the /home partition. Mount says it can't find the label specified in the fstab, and when I run lsblk -f I get no labels on any of the drives. However, if I run it outside of the chroot, I do get labels. What could cause Arch not to recognize the labels?
Offline
I can't answer teh question directly, but I never mount by label - always by UUID. You can get the UUIDs of your drives with:
sudo blkidIf the labels are there they are easier to identify, but you may need to identify the partitions from geometry (or mount them to see what they are). Then simply edit fstab to reference each drive as
UUID=whatever_it_isRyzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline
I've changed the fstab to use UUIDs, but it still doesn't seem to be working. What is interesting is that running blkid returns no output. It seems like there is something stopping the chrooted Arch from reading information from the drives...
Offline
Run blkid on the host. It won't change the value.
Last edited by Roken (2013-05-13 12:42:00)
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline