Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi - I'm hoping that one of the DNS323/linux gurus here can clarify something for for us newbies.
In the funplug script, the variables are set to the path /mnt/HD_a2/ff, and if I understand correctly the RAID1 volume is /dev/md0. If only reading, I would think it shouldn't make any difference which path is used, but if writing (and this path is used to install the tarball!) I would think that this would mess up the RAID volume. Is my assumption correct? Does the path /mnt/HD_a2/ffp need to be changed to /dev/md0/ffp? If a change isn't needed can someone offer a simple explanation of why not?
Thanks
[Code being referenced above]
#!/bin/sh
# switch to safe working directory on ramdisk
cd /
# write a log, in case sth goes wrong
FFP_LOG=/mnt/HD_a2/ffp.log
#FFP_LOG=/dev/null
exec >>$FFP_LOG 2>&1
# real path to ffp
FFP_PATH=/mnt/HD_a2/ffp
# where to search for the install tarball
FFP_TARBALL=/mnt/HD_a2/fun_plug.tgz
# setup script (used for ffp on USB disk)
FFP_SETUP_SCRIPT=/mnt/HD_a2/.bootstrap/setup.sh
# rc file path
FFP_RC=/ffp/etc/rc
echo "**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****"
[snip]
Offline
No changes are needed. The /mnt/HD_a2 location works for Raid and non-Raid as that is where the device gets mounted.
From a Raid install
Filesystem Size Used Available Use% Mounted on
rootfs 9.7M 7.5M 1.6M 82% /
/dev/root 9.7M 7.5M 1.6M 82% /
/dev/loop0 5.6M 5.6M 0 100% /sys/crfs
/dev/md0 915.9G 418.1G 497.8G 46% /mnt/HD_a2
/dev/sda4 486.2M 29.0k 486.2M 0% /mnt/HD_a4
/dev/sdb4 486.2M 21.0k 486.2M 0% /mnt/HD_b4
/dev/sdc1 3.7G 485.3M 3.0G 14% /mnt/usb
From a non-Raid install
Filesystem Size Used Available Use% Mounted on
rootfs 9.7M 7.5M 1.6M 82% /
/dev/root 9.7M 7.5M 1.6M 82% /
/dev/loop0 5.6M 5.6M 0 100% /sys/crfs
/dev/sda2 1.3T 707.9G 666.5G 52% /mnt/HD_a2
/dev/sdb2 1.3T 839.2G 535.2G 61% /mnt/HD_b2
/dev/sda4 486.2M 10.3M 475.9M 2% /mnt/HD_a4
/dev/sdb4 486.2M 10.3M 475.9M 2% /mnt/HD_b4
/dev/sdc1 3.7G 374.1M 3.1G 10% /mnt/usb
Last edited by FunFiler (2011-03-12 21:16:31)
Offline
Thanks FunFiler that really helps!
Offline