<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>I am running into some problems trying to get my USB drives to mount automatically in a known location when my PogoPlug Mobile v4 boots.<br><br>So far the device has been fairly easy to work with:<br>
<a href="http://mattswiki.seilcampbells.com/index.php5?title=PogoPlug#Mount_a_drive_in_a_given_location">http://mattswiki.seilcampbells.com/index.php5?title=PogoPlug#Mount_a_drive_in_a_given_location</a><br><br></div><div>
But Samba wants a known mount point for the flighty USB drives. I have tried the following:<br></div></div># head /etc/fstab<br>UUID=062801fe-7225-4834-b27d-104e375c1bbc /media/backup1 ext3 defaults,errors=remount-ro 0 1<br>
UUID=408d60e4-358b-450f-a6f0-4c3fdde4e8ed /media/backup2 ext3 defaults,errors=remount-ro 0 1<br>UUID=2858227358223FC4 /media/media ntfs defaults,errors=remount-ro 0 1<br>UUID=0d295fe2-b6b9-4d8e-b035-d68ec6c0843e /opt ext3 defaults,errors=remount-ro 0 1<br>
<br></div># mount -a<br>mount: mounting UUID=062801fe-7225-4834-b27d-104e375c1bbc on /media/backup1 failed: No such file or directory<br>mount: mounting UUID=408d60e4-358b-450f-a6f0-4c3fdde4e8ed on /media/backup2 failed: No such file or directory<br>
mount: mounting UUID=2858227358223FC4 on /media/media failed: No such file or directory<br>mount: mounting UUID=0d295fe2-b6b9-4d8e-b035-d68ec6c0843e on /opt failed: No such file or directory<br><br></div>It seems that busybox doesn't understand mounting by UUID<br>
<br></div>Second try, based on a couple of postings from people who got it to work:<br></div># head /etc/init.d/rcS<br>#! /bin/sh<br> <br>mount -t proc none /proc<br>mount -t sysfs none /sys<br>mount -t devpts none /dev/pts<br>
mount -t tmpfs none /tmp <br>mkdir /tmp/var <br> <br>DEV=`/sbin/findfs UUID="0d295fe2-b6b9-4d8e-b035-d68ec6c0843e" | \<br> /bin/sed 's/dev/tmp\/.cemnt/'`<br>mount -t ext3 "$DEV" /opt <br>
DEV=`/sbin/findfs UUID="2858227358223FC4" | \<br> /bin/sed 's/dev/tmp\/.cemnt/'`<br>mount -t ntfs "$DEV" /media/media <br>DEV=`/sbin/findfs UUID="062801fe-7225-4834-b27d-104e375c1bbc" | \<br>
/bin/sed 's/dev/tmp\/.cemnt/'`<br>mount -t ext3 "$DEV" /media/backup1 <br>DEV=`/sbin/findfs UUID="408d60e4-358b-450f-a6f0-4c3fdde4e8ed" | \<br> /bin/sed 's/dev/tmp\/.cemnt/'`<br>
mount -t ext3 "$DEV" /media/backup2 <br> <br></div>-- result --<br></div>silent fail<br></div># busybox reboot<br></div># df -k<br>Filesystem 1K-blocks Used Available Use% Mounted on<br>
ubi0:rootfs 99316 14104 85212 14% /<br>none 59312 12 59300 0% /tmp<br>/tmp/.cemnt/sda1 2884283608 13772624 2723997732 1% /tmp/.cemnt/mnt_sda1<br>/tmp/.cemnt/sdb1 1953512532 221298776 1732213756 11% /tmp/.cemnt/mnt_sdb1<br>
/tmp/.cemnt/sdc1 2884283608 220147784 2517622572 8% /tmp/.cemnt/mnt_sdc1<br>/tmp/.cemnt/sdd1 3850176 181048 3473544 5% /tmp/.cemnt/mnt_sdd1<br></div># <run the commands from init.d/rcS<br>Filesystem 1K-blocks Used Available Use% Mounted on<br>
ubi0:rootfs 99316 14108 85208 14% /<br>none 59312 36 59276 0% /tmp<br>/tmp/.cemnt/sda1 2884283608 13772624 2723997732 1% /tmp/.cemnt/mnt_sda1<br>/tmp/.cemnt/sda1 2884283608 13772624 2723997732 1% /media/backup1<br>
/tmp/.cemnt/sdc1 2884283608 225730316 2512040040 8% /tmp/.cemnt/mnt_sdc1<br>/tmp/.cemnt/sdd1 3850176 183208 3471384 5% /tmp/.cemnt/mnt_sdd1<br>/tmp/.cemnt/sdc1 2884283608 225730316 2512040040 8% /media/backup2<br>
/tmp/.cemnt/sdd1 3850176 183208 3471384 5% /opt<br>/tmp/.cemnt/sdb1 1953512532 221325520 1732187012 11% /tmp/.cemnt/mnt_sdb1<br><br clear="all"><div><div><div><div><div><div><div><div><div><div><div><div>
<div><div><br></div><div>Do you have any ideas on what the right way is to mount these filesystems?<br><br></div><div>Matt<br> <br></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div>