[SGVLUG] PogoPlug mount problem

Matthew Campbell dvdmatt at gmail.com
Thu Apr 4 03:51:45 PDT 2013


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.

So far the device has been fairly easy to work with:
http://mattswiki.seilcampbells.com/index.php5?title=PogoPlug#Mount_a_drive_in_a_given_location

But Samba wants a known mount point for the flighty USB drives.  I have
tried the following:
# head /etc/fstab
UUID=062801fe-7225-4834-b27d-104e375c1bbc  /media/backup1  ext3
defaults,errors=remount-ro 0 1
UUID=408d60e4-358b-450f-a6f0-4c3fdde4e8ed  /media/backup2  ext3
defaults,errors=remount-ro 0 1
UUID=2858227358223FC4                      /media/media    ntfs
defaults,errors=remount-ro 0 1
UUID=0d295fe2-b6b9-4d8e-b035-d68ec6c0843e  /opt            ext3
defaults,errors=remount-ro 0 1

# mount -a
mount: mounting UUID=062801fe-7225-4834-b27d-104e375c1bbc on /media/backup1
failed: No such file or directory
mount: mounting UUID=408d60e4-358b-450f-a6f0-4c3fdde4e8ed on /media/backup2
failed: No such file or directory
mount: mounting UUID=2858227358223FC4 on /media/media failed: No such file
or directory
mount: mounting UUID=0d295fe2-b6b9-4d8e-b035-d68ec6c0843e on /opt failed:
No such file or directory

It seems that busybox doesn't understand mounting by UUID

Second try, based on a couple of postings from people who got it to work:
# head /etc/init.d/rcS
#! /bin/sh

mount -t proc none /proc
mount -t sysfs none /sys
mount -t devpts none /dev/pts
mount -t tmpfs none /tmp
mkdir /tmp/var

DEV=`/sbin/findfs UUID="0d295fe2-b6b9-4d8e-b035-d68ec6c0843e" | \
        /bin/sed 's/dev/tmp\/.cemnt/'`
mount -t ext3 "$DEV" /opt
DEV=`/sbin/findfs UUID="2858227358223FC4" | \
        /bin/sed 's/dev/tmp\/.cemnt/'`
mount -t ntfs "$DEV" /media/media
DEV=`/sbin/findfs UUID="062801fe-7225-4834-b27d-104e375c1bbc" | \
        /bin/sed 's/dev/tmp\/.cemnt/'`
mount -t ext3 "$DEV" /media/backup1
DEV=`/sbin/findfs UUID="408d60e4-358b-450f-a6f0-4c3fdde4e8ed" | \
        /bin/sed 's/dev/tmp\/.cemnt/'`
mount -t ext3 "$DEV" /media/backup2

-- result --
silent fail
# busybox reboot
# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
ubi0:rootfs              99316     14104     85212  14% /
none                     59312        12     59300   0% /tmp
/tmp/.cemnt/sda1     2884283608  13772624 2723997732   1%
/tmp/.cemnt/mnt_sda1
/tmp/.cemnt/sdb1     1953512532 221298776 1732213756  11%
/tmp/.cemnt/mnt_sdb1
/tmp/.cemnt/sdc1     2884283608 220147784 2517622572   8%
/tmp/.cemnt/mnt_sdc1
/tmp/.cemnt/sdd1       3850176    181048   3473544   5% /tmp/.cemnt/mnt_sdd1
# <run the commands from init.d/rcS
Filesystem           1K-blocks      Used Available Use% Mounted on
ubi0:rootfs              99316     14108     85208  14% /
none                     59312        36     59276   0% /tmp
/tmp/.cemnt/sda1     2884283608  13772624 2723997732   1%
/tmp/.cemnt/mnt_sda1
/tmp/.cemnt/sda1     2884283608  13772624 2723997732   1% /media/backup1
/tmp/.cemnt/sdc1     2884283608 225730316 2512040040   8%
/tmp/.cemnt/mnt_sdc1
/tmp/.cemnt/sdd1       3850176    183208   3471384   5% /tmp/.cemnt/mnt_sdd1
/tmp/.cemnt/sdc1     2884283608 225730316 2512040040   8% /media/backup2
/tmp/.cemnt/sdd1       3850176    183208   3471384   5% /opt
/tmp/.cemnt/sdb1     1953512532 221325520 1732187012  11%
/tmp/.cemnt/mnt_sdb1


Do you have any ideas on what the right way is to mount these filesystems?

Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sgvlug.net/pipermail/sgvlug/attachments/20130404/3c6ecfbb/attachment.html>


More information about the SGVLUG mailing list