Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Formatted ssd containing grub. How to install grub on other ssd?

  1. #1
    Join Date
    Apr 2014
    Beans
    76

    Formatted ssd containing grub. How to install grub on other ssd?

    Using a desktop comp with two ssd's, both loaded with Xubuntu 20.04. I never use the second drive, so I decided to format it using gparted. Both partitions of the drive to ext4.
    The second ssd must have had grub on it, because now when I boot into the main drive, instead of the grub choice menu, I get a message: "Gnu Grub version 2.04
    Minimal bash like line editing is supported..." If I boot into the formatted drive, the message : "Welcome to grub. error: no such device: ...
    error: unknown file system. grub rescue>_" (Using bios to boot to particular drive). As you can see, I know almost nothing about partitions etc.
    How can I get the main drive to boot into xubuntu?

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Formatted ssd containing grub. How to install grub on other ssd?

    Please copy & paste the pastebin link to the Bootinfo summary report ( do not post report), do not run the auto fix till reviewed.Lets see details, use ppa version with your USB installer (2nd option) or any working install, not Boot-Repair ISO
    https://help.ubuntu.com/community/Boot-Repair
    https://sourceforge.net/p/boot-repair/home/Home/

    I have always said with mulitiple drives or multiple installs, to only use Boot-Repair's advanced mode. It may choose wrong install or wrong drive for boot loader. But Yann is making some changes to improve choices in Boot-Repairs default fixes.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Apr 2014
    Beans
    76

    Re: Formatted ssd containing grub. How to install grub on other ssd?

    So if I understand correctly, you are giving me two options: first: Use Boot-Repair iso advanced mode and pastebin the link to summary report, do not autofix until report is analyzed and second: use ppa version? Can you be more specific and detailed, I don't know much about these things.

  4. #4
    Join Date
    May 2008
    Beans
    3,974
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Formatted ssd containing grub. How to install grub on other ssd?

    Two options but one recommendation, which is to use the ppa version.
    The reason is that the ppa will supply the current version (4ppa161)
    The boot-repair software is undergoing active development.

    Using your installation USB, can you boot into a live session, open the terminal and enter:-
    Code:
    sudo add-apt-repository ppa:yannubuntu/boot-repair
    Code:
    sudo apt-get update
    Code:
    sudo apt-get install -y boot-repair && boot-repair
    The final command will install the latest boot-repair software and also start the software.
    It will generate a report, together with a pastebin link.
    Post the pastebin link in this thread.

    As mentioned by oldfred - do not run the auto fix till reviewed
    Please allow forum members to study the report and offer advice.

  5. #5
    Join Date
    Jun 2014
    Beans
    7,375

    Re: Formatted ssd containing grub. How to install grub on other ssd?

    I'm sure you understand now that In situations like this, the standard procedure would be to boot into the OS you want to keep and install Grub to the device the OS is on.. . With UEFI and Legacy installs, it gets a little more complicated but I would suggest that you follow the advice above and also keep boot repair either on your OS or on a USB as it is a very useful tool.

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Formatted ssd containing grub. How to install grub on other ssd?

    Please click on the first link to Boot-Repair.
    It shows two options, one a live flash drive based on Lubuntu to be lightweight and the other is a ppa to add Boot-Repair to your current live installer or any working system.
    Instructions on ppa are the same as tea for one posted.

    Many new users do not understand all the options in the advanced mode, second link, and we need to review your configuration before making suggestions.
    Default repair often works, but best to have one of us review configuration first.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #7
    Join Date
    Apr 2014
    Beans
    76

    Re: Formatted ssd containing grub. How to install grub on other ssd?

    I also have a laptop with Xubuntu 20.04, which is what I am using to post this thread. Maybe the best thing would be to download the latest boot-repair iso onto a flash drive and use that on my desktop computer?

  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Formatted ssd containing grub. How to install grub on other ssd?

    You can use ISO, just not sure if it is as current as ppa.
    The ISO is typically not updated as frequently as the ppa.

    So suggest using Ubuntu live installer flash drive, that you should always have for current version of installed systems & use that.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #9
    Join Date
    Apr 2014
    Beans
    76

    Re: Formatted ssd containing grub. How to install grub on other ssd?

    Okay, I created a bootable usb drive with latest xubuntu 20.04, installed boot-repair via ppa and here is the url for the scan done by boot repair: https://paste.ubuntu.com/p/PPGmWYyDRx/
    The drive I want to keep with xubuntu on it is sda. The drive I formatted and want to keep empty is sdb. I await your instructions.
    Last edited by marsdenf; January 14th, 2022 at 08:53 PM.

  10. #10
    Join Date
    Apr 2014
    Beans
    76

    Re: Formatted ssd containing grub. How to install grub on other ssd?

    I inadvertently clicked "apply" on advanced options in boot-repair. So the repair is done, and everything works fine now. Will mark this thread as solved.
    Here is url for the report on the repair done: https://paste.ubuntu.com/p/7MhrSH2xtB/
    Last edited by marsdenf; January 14th, 2022 at 10:34 PM.

Page 1 of 2 12 LastLast

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
  •