All my partitions are automounted at startup, which is a good thing, but mounted in the wrong place, which is not such a good thing.
Right now, in my post-mount file I have:
Code:
umount /tmp/harddisk/part1
umount /tmp/harddisk/part2
umount /tmp/harddisk/part3
umount /tmp/harddisk
mkdir /tmp/harddisk/part1
mkdir /tmp/harddisk/part5
mkdir /tmp/harddisk/part6
mkdir /tmp/harddisk/part7
mount /dev/discs/disc0/part1 /tmp/harddisk/part1
mount /dev/discs/disc0/part5 /tmp/harddisk/part5
mount /dev/discs/disc0/part6 /tmp/harddisk/part6
mount /dev/discs/disc0/part7 /tmp/harddisk/part7
... which is kinda lame to unmount then remount the partition to the right place.
How to mount the partitions to the right place from beginning?
BTW, if it helps, I have the following lines in my post-boot script:
Code:
if [ ! -d /dev/discs ]
then
insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
fi
#Wait for /opt to mount
mount /dev/discs/disc0/part4 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
# Activate swap
swapon /dev/discs/disc0/part3