Solved Resizing partitions within a slice

I mixed up the sizes of two partitions within a slice and don't know how to delete or resize them :(....

I have a freebsd-ufs (da0s1a) of 64k and freebsd-swap (da0s1b) of 135G !!!

After deleting, then recreating -s bsd da0s1 did not work...

gpart: geom 'da0s1': File exists

How do I delete da0s1a and da0s1b ?
 
If you don't have anything on that disk, then # gpart destroy -F da0

By the way, "after deleting" doesn't tell us much on what you did.
 
I have a Windows partition on the disk and am trying to install FreeBSD on da0s3, which I have added and deleted many times but I can't get rid of the slices da0s3a and da0s3b after deleting da0s3. They seem to persist when re-add da03. I'm looking for an option to resize da0s3[a:b] or gpart delete -i 3a da0.
 
In gpart terminology, you "add" and "delete" partitions, "create" and "destroy" slices/partitioning schemes.
So, as Beastie said, gpart destroy -F da0s1 destroys the slice, gpart delete -i 1 da0s1 would delete a partition on that slice. Right?
 
Thanks, that worked. gpart destroy -F da0 sounded a bit drastic... but didn't think of using 'destroy' for the partition. Learnt something new today...
 
Back
Top