From my notes on setting up auto-mount of USB drives on a RaspBian Pi:
Code:
Automount USB thumb drive
=================================
see: http://www.instantsupportsite.com/self-help/raspberry-pi/raspberry-automatically-mount-usb-drive/
sudo apt-get install usbmount
Now change the permissions on all /media/usbx directories to 777
sudo chmod 777 /media/usb0
...
sudo chmod 777 /media/usb7
Then any USB thumb drive attached will get mounted to /media/usb0 (or usb1 if there is already a usb thumb drive attached to the pi)
To make the mount fully r/w edit the conf file:
sudo nano /etc/usbmount/usbmount.conf
Change to the following setting:
MOUNTOPTIONS="noexec,nodev,noatime,nodiratime"
FS_MOUNTOPTIONS="-fstype=vfat,uid=pi,gid=pi,dmask=000,fmask=111"
In order to share the USB via SAMBA:
Edit the /etc/samba/smb.conf file and create a section:
[data]
comment = Data share
path = /media/usb
browseable = yes
read only = no
Notice that the notes above deal with thumb drives which typically are formatted FAT32.
This is not the case for big drives like SSD or hard drives, which either come un-formatted or have NTFS on them.
I would advice to format the new empty drive to a Linux file system like ext4 in that case.
Then you have to change the FS_MOUNTOPTIONS above to specify the correct -fstype option of course.
If you need to move the drive back and forth between the Pi and a computer then you have to investigate file systems further.