Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

Persistent USB mount locations on Pogoplug (and other Linux devices) (1 reply)

$
0
0
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
  1. ejecting the drives
  2. unplugging the drives
  3. rebooting the pogoplug
  4. 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.

Viewing all articles
Browse latest Browse all 3247

Trending Articles