(offered ended December 2nd. 2013)
sudo bash
apt-get update
apt-get install ntfs-3g
apt-get install hfsplus hfsutils (mac volumes only)
sudo apt-get install samba samba-common-bin
fdisk -l (find the mount point for your disk)
mkdir /media/RPI_SHARE
mount -o auto /dev/sda1 /media/RPI_SHARE (mount the disk)
mkdir /media/RPI_SHARE/shares
configure samba
cp /etc/samba/smb.conf /etc/samba/smb.conf.backup
pico /etc/samba/smb.conf
Uncomment the security = user line by removing the # sign
[RPI_DISK]
comment = Raspberry Pi Shared Drve
path = /media/RPI_SHARE/shares
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
read only = no
restart the samba daemon
/etc/init.d/samba restart
create a user for the share
useradd rpidisk -m -G users
passwd rpidisk
smbpasswd -a rpidisk
Make the mounting persistent so it will work after a reboot
Edit /etc/fstab
cd /etc
sudo pico -w fstab
/dev/sda1 /media/RPI_SHARE/shares ntfs-3g quiet,defaults,locale=en_US.utf8,umask=0,noexec 0 0