Pages

Saturday 25 July 2015

System backup

  • Transfer all the files to the new partition

    rsync -aAXvHS --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/data"} /* /mnt/backup/
    
  • Get the UUID for the new partition

    [root@archie /]# blkid /dev/sda2 
    /dev/sda2: UUID="ca2f7146-122f-4746-8725-7aeb4ca792e6" TYPE="ext4" PARTUUID="48c724bf-02"
    
  • Edit mountpoints

    [root@archie /]# vim /etc/fstab
    
  • Edit the new system's boot configuration

    [root@archie /]# vim /mnt/backup/boot/syslinux/syslinux.cfg
    
  • Enter the new system and fix booting

    [root@archie /]# arch-chroot /mnt/backup/
    sh-4.3# syslinux-install_update -i -a -m
    Syslinux BIOS install successful
    Boot Flag Set - /dev/sda2
    Installed MBR (/usr/lib/syslinux/bios/mbr.bin) to /dev/sda
    

No comments:

Post a Comment