Mount a uzip compressed filesystem

  • Many of the FreeBSD appliances use uzip compressed filesystems: pfSense, ocean-miru, FreeNAS, etc.
  • It may be easiest to think of a uzip file as a compressed image of a previously created ramdisk.

Check that the geom_uzip kernel module is loaded

Display kernel linker status

kldstat -q -m g_uzip

Load the module

kldload geom_uzip

Attached the uzip file to a memory device (mdX)

mdconfig -a -f usr.uzip
  • mdconfig will return the name of the memory device.
  • usually something like /dev/md0.uzip or /dev/md1.uzip

Mount the filesystem

mount -o ro /dev/md1.uzip /usr
categories: freebsd |