Eu escrevi um script init.d que inicia e interrompe o volume:
#! /bin/sh
### BEGIN INIT INFO
# Provides: networkRaid
# Required-Start: $network $named $remote_fs $syslog
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: handles the 'network raid'
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
. /lib/init/vars.sh
. /lib/lsb/init-functions
do_start() {
losetup /dev/loop0 /extDrives/drive0/data
losetup /dev/loop1 /extDrives/drive1/data
losetup /dev/loop2 /extDrives/drive2/data
mdadm --assemble /dev/md0 /dev/loop0 /dev/loop1 /dev/loop2
mount /dev/md0 /Storage
}
do_stop() {
umount /Storage
mdadm --stop /dev/md0
losetup -d /dev/loop0
losetup -d /dev/loop1
losetup -d /dev/loop2
}
case "$1" in
start)
do_start
exit 0
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop|status)
do_stop
exit 0
;;
*)
echo "Usage: $0 start|stop" >&2
exit 3
;;
esac