Solved gpart does not see disk

I created an ext4 filesystem on a 100GB disk using Arch Linux. GParted sees it but gpart does not. I previously ran gpart destroy -F da0 so am not sure how to partition the disk on FreeBSD. The disk is visible to camcontrol devlist and smartctl -a /dev/da0.

What to do?
 
Another good way to display currently available disks is sysctl kern.disks. This will show you exactly what kind of media is detected by and currently available to the kernel.

(edit)

Forgot about your question... If gpart doesn't show anything then it doesn't mean that there are no partitions, it basically means that there's no (valid) partition scheme to begin with (either MBR or GPT). You'd create one using the # gpart create command, check gpart(8) for more details on that.

I'd assume to use: # gpart create -s gpt ada0, after which you'll have yourself an empty disk again.

Next step (for example): # gpart add -t freebsd-ufs -s 50G -l newslice ada0, this would create a new slice ready to be usable for an UFS filesystem.
 
Back
Top