Re: [crisos] Re: Mounting USB storage with DarwinFox 8.09

[ Thread Index | Date Index | More lists.tuxfamily.org/crisos Archives ]


Hi,

If the problem is just with the device, I guess You should install kmod-fs-vfat (instead of kmod-fs-fat)? If I recall correctly, I had a similar problem concerning mountings and the error message simply indicates that the vfat type of device cannot be mounted; either device or the type can be wrong.

---

The following may be a little off topic, but perhaps this would be of a little help for Robby:

I overtook the mountpoint (and variying devicename /dev/sda1, sdb2, sda4 etc.) problem by simply modifying hotplug mounting script, "/etc/hotplug.d/block/10-mount". If hotplug2 is in use, this script is called when the usb-stick is plugged in (and it does the mounting, too).

Instead of using the device name as mountpoint, I made a loop that checks whether /mnt/disk0 is mounted, if it is, then /mnt/disk1 etc. until disk10. The end value 10 is "out of the sleeve" and, at least in our usage, theoretical. :-)

This way I can access the same mountpoint each time (as long as I've got one usb-stick attached at a time), not dependent of the current devicename.  I don't have a patch for it, but I attached below the add -part of script:

-- clip --

add)
                # Original script functionality, commented out
                # mkdir -p /mnt/$device
                # mount /dev/$device /mnt/$device
               
                # get the first unmounted disk
                ind=0
                while grep "disk$ind" /etc/mtab && [ $ind -lt "10" ]; do
                  ind=$((ind +1))
                done
                mnt="/mnt/disk$ind"
                mkdir -p $mnt
                mount /dev/$device $mnt

-- clip --

Hope this will help you.


Regards, Zoni



2009/4/5 Robby Balona <robby@xxxxxxxxxx>
I think it autmaticly mounts in /mnt/sda1. I had the same problem until I looked in mnt. Its strange though sometmes its there and other time not but a reboot brings it back.




Joonas Sarajärvi wrote:
2009/3/25 Joonas Sarajärvi <muepsj@xxxxxxxxx>:
Hello

When I first connect an usual 2 GB USB drive to the Foxboard (With the
stock DarwinFox 8.09 firmware), it appears under /dev as /dev/sda and
the partition as /dev/sda1. However, when I try to mount it by
running:

mkdir /addon
mount -t vfat /dev/sda1 /addon

I get this:
mount: mounting /dev/sda1 on /addon failed: No such device

Has anyone else succeeded in mounting a USB storage device when
running DarwinFox?

--
Joonas Sarajärvi
muepsj@xxxxxxxxx


If I recall correctly, this got already resolved by installing kmod-fs-fat.




---
CrisOs mailing list
Official multi-language http://www.crisos.org/ mailing list

For unsubscribe send empty mail to: crisos-request@xxxxxxxxxxxxxxxxxxx with subject unsubscribe.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/