From owner-freebsd-current@FreeBSD.ORG Mon Jun 9 14:12:50 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CD5D1065691 for ; Mon, 9 Jun 2008 14:12:50 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id EDB068FC18 for ; Mon, 9 Jun 2008 14:12:49 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 79FC47308B; Mon, 9 Jun 2008 16:14:41 +0200 (CEST) Date: Mon, 9 Jun 2008 16:14:41 +0200 From: Luigi Rizzo To: current@freebsd.org Message-ID: <20080609141441.GA5025@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: any simple tool to extract files from an UFS image ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2008 14:12:50 -0000 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. Yet, if the boot2 code is able to squeeze the required pieces on 8k or so, maybe there is some simple (and portable) tool that can do the file extraction job ? cheers luigi