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.

Orsiris de Jong
  • 213
  • 1
  • 10
  • AFAIK, you don't need to reload partition table information manually on FreeBSD. Anyways, `man gpart`. – arrowd Sep 23 '21 at 18:47
  • Indeed, as long as geom can read something. After zeroing the disk, geom didn't "see" the disk so gpart couldn't create new partitions unless I reboot. – Orsiris de Jong Sep 24 '21 at 07:42
  • Hum? When I `dd` by USB stick with zeroes, geom automatically detects it and removes all partition information from `gpart` output, as well as partition character devices from `/dev/`. – arrowd Sep 24 '21 at 08:06

1 Answers1

0

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