Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2007 09:30:34 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Howard Jones <howie@thingy.com>
Cc:        Paul Schmehl <pauls@utdallas.edu>, freebsd-questions@freebsd.org
Subject:   Re: [freebsd-questions] Mount an iso image?
Message-ID:  <20070425143034.GE50353@dan.emsphone.com>
In-Reply-To: <462F0FFE.70205@thingy.com>
References:  <48CA2894022F35F0D83C3AFD@utd59514.utdallas.edu> <20070423191854.GD49993@glitch.rwxrwxrwx.net> <3EC8E3B8930912D6CD250E65@utd59514.utdallas.edu> <20070423204514.GD50353@dan.emsphone.com> <462F0FFE.70205@thingy.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070425143034.GE50353>