You are not logged in.

#1 2016-11-29 11:21:37

percy_vere_uk
Member
Registered: 2016-01-08
Posts: 25

[solved] Cannot backup re-install

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

#2 2016-11-29 11:26:52

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [solved] Cannot backup re-install

Are you editing your fstab and bootloader config to correctly point to the new root partition?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2016-11-29 12:49:12

percy_vere_uk
Member
Registered: 2016-01-08
Posts: 25

Re: [solved] Cannot backup re-install

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

#4 2016-11-29 14:05:33

percy_vere_uk
Member
Registered: 2016-01-08
Posts: 25

Re: [solved] Cannot backup re-install

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

#5 2016-12-07 13:15:37

percy_vere_uk
Member
Registered: 2016-01-08
Posts: 25

Re: [solved] Cannot backup re-install

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

Board footer

Powered by FluxBB