Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Apr 2024 10:29:29 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        "Edward Sanford Sutton, III" <mirror176@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: changing ext. USB disk to UEFI boot
Message-ID:  <Zg0TaYlxooKtQgGg@pureos>
In-Reply-To: <CO1PR11MB47705BD53215299409AA7414E63D2@CO1PR11MB4770.namprd11.prod.outlook.com>
References:  <Zgwv4JSUpxHS1JZp@c720-1400094> <CO1PR11MB47705BD53215299409AA7414E63D2@CO1PR11MB4770.namprd11.prod.outlook.com>

index | next in thread | previous in thread | raw e-mail

El día miércoles, abril 03, 2024 a las 12:23:57 -0700, Edward Sanford Sutton, III escribió:

> > How can I modify the partition da0p1 to UEFI without touching the already
> > installed da0p2? Is it enough to carry out the creation of the MS-DOS
> > file system in da0p1 and copy the boot loader /boot/loader.efi to it?
> 
> If it was bigger it would have worked. With such a small da0s1, consider
> deleting the swap partition, make a UEFI partition from part of its space,
> then make a swap partition from what remains. You would then have both UEFI
> and legacy booting available while avoiding a reformat. Manpages for
> loader.efi(8) and uefi(8) explain where it can go and what to name it.

Thanks, this is a nice idea. I never used this swap partition on this
external disk. As I said, it is only for testing a new FreeBSD or
compiled ports tree (with poudriere) before installing it.

So, I will delete the da0p3 and recreate it as -t efi, perhaps in
smaller size of 40M. The da0p4 is used for backup purpose.
Is it a problem that the efi partition is not the first one, or does
this no matter?

Thanks

	matthias

> > Current state of the drive da0:
> >
> > # gpart list da0
> >
> > ...
> > 2. Name: da0p2
> >     Mediasize: 274877906944 (256G)
> >     Sectorsize: 512
> >     Stripesize: 4096
> >     Stripeoffset: 0
> >     Mode: r0w0e0
> >     efimedia: HD(2,GPT,e1c1853d-90e5-11e9-a3c2-90489a929e43,0x800,0x20000000)
> >     rawuuid: e1c1853d-90e5-11e9-a3c2-90489a929e43
> >     rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b
> >     label: extrootfs
> >     length: 274877906944
> >     offset: 1048576
> >     type: freebsd-ufs
> >     index: 2
> >     end: 536872959
> >     start: 2048


-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Zg0TaYlxooKtQgGg>