You are not logged in.
Pages: 1
Hi
I have backed up severval arch systems using the following format:
tar -cvzp --atime-preserve --exclude=home/myself/Downloads/* --exclude=var/cache/* --exclude=mnt/* --exclude=var/log/* --exclude=proc/* -f arch2_26-11-16.tar.gz *
I use the format
tar -xvzps --atime-preserve -f arch2_26-11-16.tar.gz -C /media/partition_to_install_to
To restore.
Changing /etc/fstab accordingly then 'grub-mkconfig -o /boot/grub/grub.cfg'
This method has always worked fine with gentoo.
When I try to install to a new partition with arch I always get the following boot error with all the arch backups:
Kernel panic - not synching: vfs: unable to mount root fs on unknown - block (0,0)[
Is there somthing additionally that I need to do when backing up or restoring with arch.
I know there are other backup methods but I would really like to continue using tar as it has always worked well with gentoo.
percy
Last edited by percy_vere_uk (2016-11-29 14:06:34)
Offline
Are you editing your fstab and bootloader config to correctly point to the new root partition?
Offline
slithery
The only file I have edited is /etc/fstab changed from:
/dev/sdb2 / ext4 rw,relatime,data=ordered 0 1 TO /dev/sdb7 / ext4 rw,relatime,data=ordered 0 1
Also tried a restore on /dev/sda
/dev/sda10 / ext4 rw,relatime,data=ordered 0 1
Giving the same boot error.
Then grub-mkconfig -o /boot/grub/grub.cfg
Offline
slithery
Problem solved, all I needed to do was 'chroot . /bin/bash' prior to backup.
Never did this with gentoo, and never had a probem restoring.
Thanks for your input on this.
percy
Offline
As an addition to the above I found that I needed to:
chroot into the target system then 'mkinitcpio -p linux' {To regenerate the kernel image}
In gentoo I do not have an initramfs and this is what foxed me!
Offline
Pages: 1