UFS Replacing efi partition with freebsd-boot


Son of Beastie

Reaction score: 151
Messages: 3,251

Am I likely to run into any problems if I delete an efi partition and replace it with a freebsd-boot partition?

Here is the current partitioning:-
root@FreeBSD:~ # gpart show da0
=>        40  1953525088  da0  GPT  (932G)
          40      409600    1  efi  (200M)
      409640  1945747448    2  freebsd-ufs  (928G)
  1946157088     7368040    3  freebsd-swap  (3.5G)
Can I simply gpart delete -i 1 da0 and then gpart add -t freebsd-boot da0?


Son of Beastie

Reaction score: 1,604
Messages: 4,606

I think you have to give it starting position and size or sector number when you gpart add it back.

Warrens disk page is really helpful even if not directly.

You can't save changes to your partition table if any partition from the disk is mounted.
So you must do this offline with a rescue disk or some sort.