Results 1 to 7 of 7

Thread: Restore Grub2 on encrypted partition

  1. #1
    Join Date
    Oct 2005
    Location
    Earth
    Beans
    170
    Distro
    Ubuntu 11.04 Natty Narwhal

    Restore Grub2 on encrypted partition

    Hey

    I had to reinstall Windows, which has obviously overwritten my lovely Ubuntu Natty

    I would like restore grub2, however failling to do so

    I'm running:

    Code:
    sudo mount /dev/sda1 /mnt/boot
    sudo cryptsetup luksOpen /dev/sda5 crypt1
    Enter LUKS passphrase:
    key slot 0 unlocked.
    Command successful.
    However
    Code:
    sudo pvscan
     No matching physical volumes found
    Please help

  2. #2
    Join Date
    Jul 2005
    Location
    Hughenden, Australia
    Beans
    5,100
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Restore Grub2 on encrypted partition

    Code:
    sudo grub-setup -d /mnt/boot/grub -m /mnt/boot/grub/device.map /dev/sda
    Ubuntu user since 2004 (Warty Warthog)

  3. #3
    Join Date
    Oct 2005
    Location
    Earth
    Beans
    170
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Restore Grub2 on encrypted partition

    Thank you for the reply, with your command I get

    Code:
    cannot stat /mnt/boot/grub/boot.img
    /boot is mounted, however boot.img is a mess (characters of shapes)
    Last edited by serlex; June 12th, 2011 at 10:52 PM.

  4. #4
    Join Date
    Oct 2005
    Location
    Earth
    Beans
    170
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Restore Grub2 on encrypted partition

    Been an absolute nob! all fixed. It would help to type your command correctly!!!

  5. #5
    Join Date
    Jul 2005
    Location
    Hughenden, Australia
    Beans
    5,100
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Restore Grub2 on encrypted partition

    It would help to type your command correctly!!!
    Oh, I'm sorry. What's wrong with it? I tried to tailor it to my interpretation of your situation. I am looking at it and I still can't see my mistake. Maybe I need another coffee.
    Ubuntu user since 2004 (Warty Warthog)

  6. #6
    Join Date
    Oct 2005
    Location
    Earth
    Beans
    170
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Restore Grub2 on encrypted partition

    All good, what I meant was that it would if I typed your command correctly.

    Thank you

  7. #7
    Join Date
    Jul 2005
    Location
    Hughenden, Australia
    Beans
    5,100
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Restore Grub2 on encrypted partition

    Oh, good, okay, you're welcome.

    Regards, Herman
    Ubuntu user since 2004 (Warty Warthog)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •