This question already has an answer here:

Help please.
I had 2 hard drives in my computer and was running ubuntu 16.04. Then I installed Lubuntu 16.10 on the other drive (B) without removing the other drive (A).
This has corrupted the GRUB and I couldn't access drive A on its own. I also can't access all the files systems it I boot with the drive (B).
There are important files I need to access on drive A.
What can I do?
I changed Lubuntu to Ubuntu 16.10 and also encrypted it with LUKS but this couldn't make any difference.
Can I ask the system to boot to drive A even if GRUB is on drive B? Can I unlock drive B through drive A and access all the files? or Can I repair GRUB for drive A (encrypted)?

Many thanks. Sherif

That is what I got when I tried to reinstall GRUB. Would it be because it is encrypted as well?


marked as duplicate by Panther, Eric Carvalho, karel, David Foerster, Eliah Kagan Oct 16 '17 at 16:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • I can not really follow all your A's and B's. To open a LUKS crypt you need to know the password. See -the procedure to mount in - askubuntu.com/questions/686316/… and askubuntu.com/questions/63594/… . If you need help you really need to post the commands you ran and error messages. – Panther Oct 14 '17 at 12:53
  • You may re-install grub using a LiveCD or a netinstall, booting from a sane system (howtoubuntu.org/…) – SYN Oct 14 '17 at 12:59
  • I tried to mount the volume or decrypt it but it didn't work. I got "Device /dev/sdb5 doesn't exist or access denied" was the result when I followed one link OR "error looking up object for device /dev/mapper/ubuntu~root" for the other linke – Sherif Oct 14 '17 at 15:19
  • You have to post the output of fdisk -l or picture of gparted showing each hard drive and the exact commands you ran. – Panther Oct 14 '17 at 16:07
  • How can I add a picture? – Sherif Oct 14 '17 at 18:46

Browse other questions tagged or ask your own question.