On Sat, 2002-09-28 at 05:00, usbat2-request(a)lists.lysator.liu.se wrote:
> -my cards are mounted only writable by the root (even if my mount directory is
> writable by everybody);
make sure you specify the "user" option to mount. The default for mount
is "nouser". "man mount" for more details (look at the options
section). Like Herrald pointed out, it's much easier if you add an
/etc/fstab entry.
>
> -I cannot unmount the device; I get a message telling that it is busy even if I
> do not anymore access to it. Even mount -f does not work. I cannot rmmod
> usb-storage either.
>
In my experience, busy messages usually result from another process
having the mount point or something under it as its CWD (current working
directory). Do you have a shell up in which you have cd'ed over to your
/mnt/flash (or whatever you called it). Do you have a file manager that
is working in that directory? Are you cd'ed into that directory while
trying to umount it? I've done that more times than I care to admit:
mount /mnt/flash
cd /mnt/flash
ls -l
cp pic1.jpg /home/pictures/testpic.jpg
umount /mnt/flash
The above sequence will always give a busy error, because I'm still in
the directory. So if I just do a "cd" between the cp and the umount, I
could unmount it in this situation.
> Las question : I am not an expert in modules stuff. I have now a
> usb-storage.o.gz file in the standard /lib/modules/.... directory and a
> usb-storage.o file in the directory where I have compiled usbat2. Can I just
> repalce the .gz file by the new .o file?
>
Try adding usb-storage to /etc/modules, which specifies a list of
modules to load at boot time.
For example, mine looks like this (Mandrake 8.1):
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a `#', and everything on the line after them are ignored.
scsi_hostadapter
ide-floppy
sd_mod
usb-storage
--
Darin W. Smith
Gig `em Ags!