Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jun 2008 17:34:09 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        Ivan Voras <ivoras@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: any simple tool to extract files from an UFS image ?
Message-ID:  <20080609153409.GB98621@onelab2.iet.unipi.it>
In-Reply-To: <g2jeii$3ht$1@ger.gmane.org>
References:  <20080609141441.GA5025@onelab2.iet.unipi.it> <g2jeii$3ht$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 09, 2008 at 04:26:26PM +0200, Ivan Voras 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.
> > 
> > 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.

yes but that requires root privileges.
I try to avoid that even in FreeBSD (ni the picobsd script)
by using 'makefs'.

	cheers
	luigi





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