The situation is the following:
I want to delete da0p3. So I try that:
Ok, maybe I need to turn off swap?
So swap is already turned off. Maybe it is mounted somewhere?
Looks like it also isn't mounted. At this point I have no clue how to delete this partition. Any ideas?
I am running FreeBSD 14.1. I moved the filesystem to a RAM disk so I could delete the current filesystem and re-do it.
Code:
# lsblk
DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
da0 0:92 36G GPT - -
<FREE> -:- 33M - - -
da0p3 0:95 1.0G freebsd-swap gpt/swapfs -
<FREE> -:- 37G - - -
md0 0:106 4.0G ufs - /
I want to delete da0p3. So I try that:
sh:
# gpart delete -i 3 da0
gpart: Device busy
Ok, maybe I need to turn off swap?
sh:
# swapoff /dev/da0p3
swapoff: /dev/da0p3: Invalid argument
So swap is already turned off. Maybe it is mounted somewhere?
sh:
# mount
/dev/md0 on / (ufs, local, soft-updates)
devfs on /dev (devfs)
Looks like it also isn't mounted. At this point I have no clue how to delete this partition. Any ideas?
I am running FreeBSD 14.1. I moved the filesystem to a RAM disk so I could delete the current filesystem and re-do it.