0

I'm searching for a way to reload a partition table in FreeBSD 12 (FreeNAS). I don't have hdparm nor gfdisk nor partprobe.

What's the standard way of doing ?

PS: my pkg doesn't work behind a firewall so i probably can't install packages other than via SCP. [EDIT]Got my firewall rules relaxed, I can install packages if needed[/EDIT]

Already read Reread partition table without rebooting? but there are only solutions for linux.

2 Answers2

1

In theory, glabel refresh /dev/your/disk will help. In practice, in my case, it did not help.

1

A geom(4) “re‐taste” can be triggered with a write to the device, ideally a non‐destructive write such as:

  • : > /dev/da0
    
  • true > /dev/da0
    
  • false > /dev/da0
    
  • cp /dev/null /dev/da0
    

Replace da0 as appropriate. If you find “writing” to the disk a bit scary, try

camcontrol reprobe da0