UPDATE
There seems to be a difference between the way RASPBMC and RASPBIAN behave.
I used a KINGSTON Micro-USB thumb drive of 8 GB to test.
First I changed the name of the FAT32 volume from KINGSTON to USBTHUMB in Win7.
RASPBMC
Then I plugged it into the RASPBMC Pi and could observe that /media now contained a subdir named USBTHUMB in which there were actually also a few files. I did not have to use any mount commands.
RASPBIAN
Next I unplugged it from the Pi and plugged it into my Pi B+ running RASPBIAN.
But here there is no sign of anything at all inside the /media dir!
I tried to use:
Code: Select all
sudo mount -t vfat -o uid=pi,gid=pi /dev/sda1 /media/USBTHUMB
but got a message that the dir USBTHUMB did not exist. So I created it and repeated the mount command.
Now the mount succeeded and I could list the files.
After I unplugged the drive and then plugged it again the mount seems to have disappear, ls -l /media/USBTHUMB returns zero files. What causes the difference?
So it seems like my RASPBMC unit is further along the way I want the system to work than the RASPBIAN system.
Unfortunately it is on a RASPBIAN system I need to set this thing up such that I can exchange files with my daughter on the other side of the ocean. I have VPN connectivity to the Pi B+ on her end and I must transfer some files to her on a regular basis, but the SD-card is no use for this.
So she has to plug in a drive of some sort and then I have to be able to transfer the files...
So I need:
- Auto mounting of the USB drives (Notice: NOT only on Pi reboot!!!)
- Samba sharing of the auto mounted drive
- Auto umount when the drive is removed
Any ideas?