Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question about creating Flash image

10 views
Skip to first unread message

Youngshin Jae

unread,
Aug 2, 2002, 4:29:55 PM8/2/02
to
Hi,

I am creating a Flash image. I have several filesystems and I only needs
couple of them. I tried to use -x option, but it only exclude one
filesystem. How can I exclude several filesystems ?

ex) I have /, /u01/app, /u01/bkup, /drroot .... and I only needs / and
/u01/app.
I did # flarcreate -n "Image" -R / -x /u01/bkup -x /drroot
my_image.archive, but the size of my_image.archive contains whole system
data including /u01/bkup /drroot.


Markus Gyger

unread,
Aug 3, 2002, 1:13:09 PM8/3/02
to
"Youngshin Jae" <ys...@att.com> writes:
> I am creating a Flash image. I have several filesystems and I only needs
> couple of them. I tried to use -x option, but it only exclude one
> filesystem. How can I exclude several filesystems ?

You could use find & grep, e.g.

df -a | awk '{ print $1 }' > /var/tmp/files
find / /u01/app ! -type D ! -type s -print \( ! -mount -o \
-fstype lofs \) -prune >> /var/tmp/files
egrep -v '^(/var/tmp|/var/crash|/export)/|^/$' /var/tmp/files | sort -ru | \
flarcreate -n s9-fcs -S -H -c -f /dev/stdin -F /var/tmp/s9-fcs.flar
rm /var/tmp/files


Markus

0 new messages