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?

up vote 3 down vote accepted

You also need to mount /sys on to /mnt.

  • Now I'm getting WARNING: Failed to connect to lvmetad. Falling back to device scanning. while executing update-grub2 from chroot. – java-devel Oct 13 '17 at 16:09
  • Do blkid and check that id exists in /boot/grub/grub.cfg – jdwolf Oct 13 '17 at 16:19
  • I don't see why that warning is a problem assuming boot is not on lvm – jdwolf Oct 13 '17 at 16:20
  • Grub boots into command line mode instead of graphical mode. – java-devel Oct 13 '17 at 17:11
  • Okay, but is it booting Linux now? – jdwolf Oct 13 '17 at 18:50

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.