New iso format on 9.0

Devin Teske devin.teske at fisglobal.com
Tue Feb 21 18:28:40 UTC 2012



> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org [mailto:owner-freebsd-
> questions at freebsd.org] On Behalf Of egoitz at ramattack.net
> Sent: Tuesday, February 21, 2012 10:14 AM
> To: freebsd-questions at freebsd.org
> Subject: RE: New iso format on 9.0
> 
> > 	umount /mnt
> > 	vnconfig -u vn99c
> >
> > Or, you can just download this script which works on both Linux and
> > FreeBSD:
> >
> >
> >
> http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid/src/tools/
> umo
> > unt_iso.sh?view=log
> >
> > Usage:
> > 	./umount_iso.sh /mnt
> 
> 
> Hello all,
> 
> And thanks a lot really for you're answers. Yes... I know the way you
> can mount an iso image (I have done a couple of times yesterday in
> fact)... but I'm really worried about how making a consistent copy of it
> like I did with tar... as I said this is for an unattended installation
> system... so I cannot be depending on having the cd mounted on the
> operating system... with tar the -p option was important for preserving
> permissions, flags, and so... perhaps now... should mount like you said
> before for example.... and later having an rsync compiled with file flag
> preserving support do an rsync -av /cd-mount-point
> /disk-place-to-copy-cd-content ??
> 
> this last is the real question... I have played previously several
> times with memory disks mappings, mdconfig and those staff.... but how
> to make a consistent copy of the cd for the unattended installation
> system...

Why can't you mount the disc on /mnt and then use tar after mounting the disk to copy the files from /mnt to /destdir ...

tar cpf - -C /mnt . | tar xvpf - -C /destdir

That will preserve hard links, symlinks, permissions, and times (and doesn't require rsync).

There are other methods involving cpio, but I find tar to be nice.
-- 
Devin

_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.


More information about the freebsd-questions mailing list