Re: gpart destroy efi partition?
- Reply: Steve Kargl : "Re: gpart destroy efi partition?"
- In reply to: Steve Kargl : "gpart destroy efi partition?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 May 2023 03:51:40 UTC
On Mon, May 22, 2023, 9:45 PM Steve Kargl <sgk@troutmask.apl.washington.edu> wrote: > Is there a secret incantation for destroying an EFI > partition on a USB memstick? After installing FreeBSD, > I would like to re-use a memstick, but > > % gpart destroy da0 > gpart: geom 'da0': Read-only file system > % gpart destroy -F da0 > gpart: geom 'da0': Read-only file system > % gpart show da0 > => 40 60063664 da0 GPT (29G) > 40 60063664 1 ms-basic-data (29G) > % gpart delete -i 1 da0 > gpart: geom 'da0': Read-only file system > % dd if=/dev/zero of=/dev/da0 bs=1m > dd: /dev/da0: Read-only file system > What's mounted? Warner -- > Steve > >