Results 1 to 5 of 5

Thread: mistakenly formatted /dev/sda1 (BIOS boot)

  1. #1

    Default mistakenly formatted /dev/sda1 (BIOS boot)

    Last night, I had mistakenly formatted my /dev/sda1 which had the BIOS boot. Is it possible to recover this BIOS boot partition or do I have to reinstall OPenSuSE v42.3?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    30,498

    Default Re: mistakenly formatted /dev/sda1 (BIOS boot)

    Do you mean the /boot partition or do you mean the EFI partition?
    Henk van Velden

  3. #3
    Join Date
    Sep 2012
    Posts
    7,496

    Default Re: mistakenly formatted /dev/sda1 (BIOS boot)

    The easiest way to recover BIOS boot partition is to simply reinstall GRUB.

  4. #4
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,914
    Blog Entries
    3

    Default Re: mistakenly formatted /dev/sda1 (BIOS boot)

    Quote Originally Posted by habibie View Post
    Last night, I had mistakenly formatted my /dev/sda1 which had the BIOS boot. Is it possible to recover this BIOS boot partition or do I have to reinstall OPenSuSE v42.3?
    I'm assuming that this for a GPT partitioned disk.

    You have to make sure that it still shows as a BIOS boot partition. If necessary, you can use "gdisk" to set that. It should have a type code of EF02 (as shown by "gdisk"). If the data in that partition has been destroyed, you will need to reinstall grub -- assuming that it depends on that partition.

    I just checked one of my own computers. It has two disks, with a BIOS Boot partition on each. And each showed in "gdisk" as being linux file systems (type code 8300). There must be some errant software did that. I changed the type codes back. But this is a UEFI computer, so those partitions aren't really used except when I put the system into legacy booting mode for tests.
    openSUSE Leap 15.4 Beta; KDE Plasma 5.24.4;
    testing Tumbleweed.

  5. #5

    Default Re: mistakenly formatted /dev/sda1 (BIOS boot)

    Yes and the HDD has been partitioned using GPT. I think I will try to reinstall grub to see if that will restore the /dev/sda1 partition. Thank you all.

Posting Permissions

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