I am using Acronis HD True Image 2016 to clone my drive to another drive. It pops up a message that tells you to load Linux, log in as root and enter one of two commands as shown below:
Which one should I use or am I in the third category and need something else?
Tried it late last night and the help screens didn't match the program, it went sideways. Do you know of a link that matches up? I'll try again later today.
At which point I hit enter because the drive on a USB adapter already plugged in.
After hitting Enter this screen popped up, which is correct: sda is the SSD, sdb is the HDD I am trying to clone to.
Last I think that Clonezilla wants the drive to be totally clean, because I had even worse problems, before I used Disks and deleted all the partitions on the HDD.
So far neither Acronis or Clonezilla have managed to clone the SSD to the HDD. Now I am beginning to wonder if the backups of Mate I have been doing are of any value.
One doesn’t install grub to partitions, one installs grub to a drive. So sda3 is not correct. Sda is correct. Where is this documentation you referred to fey42?
Boot into a Live Linux session. (Which you’ve done.)
Mount the / partition of your installed OS to /mnt
sudo mount /dev/sda3 /mnt
(I’m kind of guessing from your previous post)
Set up a chroot environment:
sudo chroot /mnt
You are now in a “fake” Linux install that treats /mnt as /. This means that all the files necessary for GRUB are in /boot where the system expects them to be and you can install GRUB just as if you were actually running your installed system:
sudo grub-install /dev/sda sudo update-grub
Now reboot and you should see the GRUB menu appear normally.
OK then. @fey42 The following is from my own notes on the subject. I sure do hope that this’ll work for you. It’s worked for me more than once.
So here’s how: Boot from a live USB.
Determine the partition number of your main (root) partition. GParted can help you here. I’m going to assume in this answer that it’s /dev/sda3, but make sure you use the correct partition number for your system! (mine was /dev/sda6, for instance) Look to see which drive grub uses to boot from. It’ll have a boot flag. Almost certainly sda in your case.
Mount your partition:
sudo mount /dev/sda3 /mnt
*make sure that sda or whatever is correct!
Bind mount some other necessary stuff:
for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done
chroot into your Ubuntu install:
sudo chroot /mnt
At this point, you’re in your install, not the live CD, and running as root. Install grub:
grub-install /dev/sda
*make sure that this is the correct (bootable) HD! Gparted will label boot.
Update grub:
update-grub
If everything worked without errors, then you’re all set:
exit
At this point, you should be able to reboot normally. Best wishes fey42.
Sadly no joy.
See attached screen shot. Note I did make a typing error, (missed a semicolon after /dev) so I opened our conversation and did copy and paste from then on. I was being lazy
Again I see it is fetching from /i386-pc/. Knowing nothing about all this that seems to be an error to me. My live USB and this install is AMD since I have a quad core i7. Is that maybe the problem?
I have to knock off for tonight, other things to do and an early morning tomorrow. Thank you for all your efforts and hopefully it can be sorted out tomorrow.