I need to make a backup my Debian VPS server and create it copies on Virtual Machines. I'm following instructions on page https://help.ubuntu.com/community/BackupYourSystem/TAR.
Steps:
- I've done a tar archive of entire OS,
- I've copied it into host machine,
- I've created Debian virtual machine,
- I've booted Debian 8 Jessie livecd on VM,
- I've partitioned a disk,
- I've mounted root partition on
/mnt
, - I've entered to dir
/mnt
, - I've copied
backup.tar.gz
over ssh to/mnt
, - I've extracted archive
backup.tar.gz
in/mnt
, - I've executed command
for f in dev dev/pts proc ; do mount --bind /$f /mnt/$f ; done
, - I've chrooted into
/mnt
, - I've executed command
dpkg-reconfigure grub-pc
, - I've mounted /dev/sda1 in
/boot
, - I've executed
grub-install /dev/sda
.
I'm giving an device node not found
error at last step:
root@debian:/# grub-install /dev/sda
Installing for i386-pc platform.
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
device node not found
Installation finished. No error reported.
Can anyone help me?