On Mon, Dec 13, 2010 at 03:04:13PM -0500, Ted Unangst wrote:
| I can agree there's a problem here, but the fact that you're using
| hotplug to mount disks that aren't hotplugged indicates the problem is
| elsewhere. :) I don't think hotplug was supposed to be the "do random
| stuff a little bit but not too long after boot" utility.
I use an @reboot cronjob to fsck and mount large partitions that are
not immediately necessary upon boot. I get an e-mail from cron if
there was an issue found during fsck'ing, and usually things just work
out fine. These partitions are marked with 0 0 in fstab:
[weerd@bfib] $ cat /usr/local/libexec/cronscripts/afterboot
#!/bin/sh
# afterboot: fsck and mount large partitions
######################################################################
PATH=/bin:/sbin:/usr/bin
for PART in `awk '/0 0$/ {print $1}' /etc/fstab`
do
if fsck -p ${PART} > /dev/null
then
mount ${PART}
else
echo "Errors found on ${PART}, please check"
fi
done
Many ways to skin a cat, I suppose, but this one works fine for me...
Cheers,
Paul 'WEiRD' de Weerd
--