Skip to content

Loop Mount .iso in FreeBSD


I needed to mount an .iso file this morning, which I’ve done dozens of times in Linux, and I realized the command I’d normally use in Linux does not work. For example:


mount -o loop image.iso /mnt

This works fine in Linux and lets you “mount” the .iso file as if it were burned and in the drive. This does not work on FreeBSD. You get an error like:

mount: image.iso mount option is unknown: Invalid argument


The solution (the only one I’ve found so far) is to use a much more in-depth command like:

mount_cd9660 -o ro /dev/$(mdconfig -a -t vnode -f /path/to/file.iso) /mount-point

Hopefully this little note helps someone else have less trouble than I did in mounting .iso images in FreeBSD.

Related Posts

  1. Configure FreeBSD To Use Blowfish Password Format
  2. pf (packet filter) Documentation
  3. Upcoming in FreeBSD 8.x
  4. FreeBSD Security Update: 7.1-RELEASE-p4 Available
  5. Update: Weekly Update Reporting Via Portmaster
  6. WordPress Permalink Support: FreeBSD + Lighttpd
  7. Weekly Update Notifications via Portmaster