Page 1 of 1

Another mount post

Posted: Sun Nov 02, 2014 8:27 am
by taskman
I have spent a couple days now trying to get the mount to work correctly (can't write without sudo to it and can't auto mount) and it just doesn't like me. I have tried so many blogs and they just don't work. Please help.

I have a windows 7 share, I shared it to pi/raspberry. I already installed samba on the pi and I am able to mount, but just not on boot and also I can't write to the mount if I don't use sudo

This is one of the blogs I followed, I don't want to post all of them here
http://rasspberrypi.wordpress.com/2012/ ... pberry-pi/

I am posting only 2 of the many things that I have tried to get the permissions to work. I tried different combinations of chmod and chown before and after mount, but still can't write to the directory if I don't use sudo
I have the directory on the pi (/home/pi/dcim)
Try
I tried giving the following permissions before mounting
sudo chmod 0755 /home/pi/dcim
I mount using
sudo mount -t cifs -o username=pi,password=raspberry,workgroup=WORKGROUP //192.168.1.100/dcim /home/pi/dcim
I try to make a directory in dcim and get the following error
pi@raspberrypi ~/dcim $ mkdir test
mkdir: cannot create directory `test': Permission denied
I reboot, because I can't umount, drive in use

Try
After reboot run chown -R pi:pi /home/pi/dcim
Mount again
Try to create a directory, still no


Second problem is I can't get the drive to auto mount
This is my current fstab. Also tried many different combinations with the fstab line with and without default or boot or other combinations following the username/password/workgroup bit


proc /proc proc defaults 0 0
/dev/mmcblk0p5 /boot vfat defaults 0 2
/dev/mmcblk0p6 / ext4 defaults,noatime 0 1
//192.168.1.100/dcim /home/pi/DCIM cifs username=pi,password=raspberry,workgroup=WORKGROUP
# a swapfile is not a swap partition, so no using swapon|off from here on, use dphys-swapfile swap[on|off] for that