[freebsd-questions] Mount an iso image?

Dan Nelson dnelson at allantgroup.com
Wed Apr 25 14:30:51 UTC 2007


In the last episode (Apr 25), Howard Jones said:
> Dan Nelson wrote:
> > If that's all you need, there's an even easier way: "tar tvf
> > mycd.iso", since libarchive understands the iso9660 filesystem
> > format :)
>
> That's a useful trick!
> 
> Is there an equivalent for ufs filesystems? I'd like to be able to
> extract files from a floppy image without needing root privs... I'm
> writing a script to prepare a PXE-install environment from a set of
> release ISOs.

You could try using a "dump -f - ufsfs.img | restore -if -" pipeline;
dump to read the filesystem and restore -i to give you a simple
navigation interface.  Libarchive only handles the iso9660 format
because it happens to be readable sequentially with no seeking.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list