any simple tool to extract files from an UFS image ?

Ivan Voras ivoras at freebsd.org
Mon Jun 9 15:11:24 UTC 2008


Luigi Rizzo wrote:
> Hi,
> I am doing some work recently on small FreeBSD images (picobsd and friends),
> and I need to run on a linux machine some script to customize
> both the UFS and the ISO image.
> 
> Because the customization is just writing some text into a file,
> my approach is to put in the UFS image a file with a recognizable
> start and end markers, and then dd into the image the stuff I need.
> 
> I was wondering if i could avoid shipping both images, and instead
> use some trick to extract the tree from the UFS image and then
> use mkisofs on the linux side to build the ISO.
> 
> I know that bsdtar can read ISO images, but I don't think it does
> the same on UFS. 

If I understand you correctly, you may try mounting the images in Linux,
with suitably compiled kernel.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080609/108b0962/signature.pgp


More information about the freebsd-current mailing list