From owner-freebsd-current@FreeBSD.ORG Mon Jun 9 21:06:27 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 BE96B1065670 for ; Mon, 9 Jun 2008 21:06:27 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (ns1.bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id A78A58FC15 for ; Mon, 9 Jun 2008 21:06:27 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 128EB5B4B; Mon, 9 Jun 2008 13:49:36 -0700 (PDT) To: Julian Elischer In-reply-to: Your message of "Mon, 09 Jun 2008 11:50:23 PDT." <484D7B6F.6000205@elischer.org> Date: Mon, 09 Jun 2008 13:49:35 -0700 From: Bakul Shah Message-Id: <20080609204936.128EB5B4B@mail.bitblocks.com> Cc: Luigi Rizzo , current@freebsd.org Subject: Re: 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 21:06:27 -0000 On Mon, 09 Jun 2008 11:50:23 PDT Julian Elischer wrote: > Luigi Rizzo wrote: > > On Mon, Jun 09, 2008 at 10:51:56AM -0700, Julian Elischer wrote: > >> 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. > >> dump and restore? That was my first thought too! > > the UFS image is just a file produced on FreeBSD - i'd rather not > > require root privs to mount the image in order to manipulate it. > > > > cheers > > luigi > > dump reads the UFS filesystem directly does it not? piped into > restore, it puts the files onto a mounted filesystem. You'd have to modify dump a bit since it insists on a special device to dump from (and make dump+restore work on linux). Or he can use vbackup & vftp from plan9ports. vbackup can read a variety of filesystems and archive them to a venti server. vftp can be used to retrieve files from venti. None of the three require root privs and already work on linux. http://swtch.com/plan9port/