I have a Pogoplug that's running Optware and an SMB share which shares 2 external drives on my LAN.
In the past rebooting the Pogo and getting back to where I want to be in terms of the SMB setup has involved
A while back I remember seeing this guide about getting persistent mount locations on the Pogo. http://www.leeandcathy.com/2011/10/persistent-usb-mount-locations-on.html
It wasn't until recently that I understood what it was doing, and how it accomplished the task of mounting the USB on /opt every time
I thought I could apply the same approach to my standard USBs (as I have the /opt directory on my internal flash on my E-02).
And the following commands work to mount my drives to the proper point on my root if I run them manually, but don't work after a reboot in the startup script: I threw in the /opt mount command and the samba start command to show where they these findfs commands live in my /etc/init.d/rcS script.
Is it possible it's failing because the drives aren't recognized quickly enough to be mounted properly before Samba starts? Is there any way to fix this, like delaying the samba startup, or maybe forcing the mount commands to execute successfully before moving to the next step.
Thanks for any ideas. If nothing else, it's nice to know I can reboot and run those mount command manually and regardless of which drive the Pogoplug mounts first, I can assign them to the right points, restart Samba and they will be properly mapped.
In the past rebooting the Pogo and getting back to where I want to be in terms of the SMB setup has involved
- ejecting the drives
- unplugging the drives
- rebooting the pogoplug
- plugging the drives in 1 x 1 so they get mounted on the right location
A while back I remember seeing this guide about getting persistent mount locations on the Pogo. http://www.leeandcathy.com/2011/10/persistent-usb-mount-locations-on.html
It wasn't until recently that I understood what it was doing, and how it accomplished the task of mounting the USB on /opt every time
I thought I could apply the same approach to my standard USBs (as I have the /opt directory on my internal flash on my E-02).
And the following commands work to mount my drives to the proper point on my root if I run them manually, but don't work after a reboot in the startup script: I threw in the /opt mount command and the samba start command to show where they these findfs commands live in my /etc/init.d/rcS script.
mount /dev/mtdblock3 /opt mount `findfs UUID="A6A0CA0F20419853"` /pogo1 mount `findfs UUID="21E599BF9F0F2CAB"` /pogo2 opt/etc/init.d/S08samba start
Is it possible it's failing because the drives aren't recognized quickly enough to be mounted properly before Samba starts? Is there any way to fix this, like delaying the samba startup, or maybe forcing the mount commands to execute successfully before moving to the next step.
Thanks for any ideas. If nothing else, it's nice to know I can reboot and run those mount command manually and regardless of which drive the Pogoplug mounts first, I can assign them to the right points, restart Samba and they will be properly mapped.