On Wed, Jun 07, 2006 at 11:44:03AM +0100, Craig Skinner wrote: > Hi there, > > If you are like me and reslice, add & remove disks now and then, you may > find this useful: > > $ cat /etc/monthly.local > #!/bin/sh - > > echo "Saving disklabels." > store="/etc/disklabels" > > for disk in $(awk '/^(s|w)d[[:digit:]] / {print $1}' /var/run/dmesg.boot) > do > > disklabel ${disk} > ${store}/${disk}.label 2>&1 > disklabel -t ${disk} > ${store}/${disk}.tab 2>&1 > done > > echo "Done." >
you can also find current and previous disklabels for your devices in /var/backups (which security(8) produces), which may be enough. i'm slightly curious about /etc/disklabels though...i'd always imagined something would actually use it. but it looks like nothing does. jmc