What Linux loader does Mate 16.04 use?

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?

Thanks, Fred

I always use clonezilla

1 Like

GRUB 2. Find the exact version by typing “grub-install --version” in a terminal.

1 Like

Hi Steve,

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.

Thank, Fred

Then just follow the instructions to repair the boot sector?

Thanks, Fred

You should be able to move grub to the cloned disk with

sudo grub-install /dev/sdX

where X is the drive letter you want it written to.

See https://help.ubuntu.com/community/Grub2/Installing for details.

Hi Steve,

Below is what I am talking about.

After I clicked on the option local_dev.... at the top of the screen, at the bottom of the screen the extra verbiage showed up.

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.

So I hit Ctrl-C and the this screen popped up, which is not even shown in the documentation

It was supposed to be this instead.

I was following a script from this link: Clonezilla Documentation

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.

Thanks for your time, Fred

I booted from my original Mate install USB.

Since I have multiple partitions, from the instructions I chose sda3.
The result being: sudo: grub-install/dev/sda3: command not found

Did I miss something?

Thanks, Fred

The command is sudo space grub-install space /dev/sda. Better luck next time fey42.

You sure I don't need sda3?
The documentation implied that.

Thanks, Fred

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?

I am famous for misreading, but it was in Flip's reply.

I'm off to try it right now
Thanks, Fred

@mdooley

And it failed with: grub-install: error: failed to get canonical path of ‘/cow’.
Now what?
Thanks, Fred

You are now famous for not reading. Toward the end of the page Flip referred to was this line:

  1. Do not use the partition number with the grub-install command.

Was your command this?

sudo grub-install /dev/sda

Exactly like that just looked at it again.
Send you a screen shot if you like.

Wait just a moment and I’ll have a better answer.

see - https://unix.stackexchange.com/questions/96977/grub-wont-install

Follow these steps:

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.

Hope this helps fey42. Good luck.

Worked fine till here.
No joy, it failed different.

One more try for tonight Ok?

I just noticed it is working on i386-pc, I have a quad core I7.
This is a 64 bit install.

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 :frowning:

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.

Again, Thanks, Fred