EDIT : did this guide in reversed order, for adding local hdd, see end of this post
Alternatively you can make a script which mounts all your windows shares and have that script start up in rc.local
(this can even solve issues with fstab mounting before NIC initializes)..
Make sure to make the directories in which you would like to mount first.
Here is how I do step-by-step :
# ADDING NETWORK SHARES :
Making the dirs needed to mount in :
Quote:cd ~
sudo mkdir ~/media
sudo mkdir ~/media/movies
sudo mkdir ~/media/mp3
sudo mkdir ~/media/tvseries
sudo mkdir ~/media/tvseries2
^Give the dirs anyname you'd like or place them anywhere you want, this is just my config
Making the script which mounts my win shares :
Quote:cd ~
mkdir scripts
cd scripts
sudo nano mount.sh
Paste the following and edit the lines to reflect your shares (you can find additional threads about a more secure way using smb credentials, but i run like this)
Quote:# windows shares to mount
sleep 5s
#mounting my movie folder
sudo mount -t cifs //10.0.0.2/movies /home/xbmc/media/movies -o username=*,password=*,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
#mounting tvseries folder from hdd1 on win comp
sudo mount -t cifs //10.0.0.2/tvseries /home/xbmc/media/tvseries -o username=*,password=*f,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
#mounting tvseries2 folder from hdd2 on win comp
sudo mount -t cifs //10.0.0.2/tvseries2 /home/xbmc/media/tvseries2 -o username=*,password=*,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
#mounting mp3 folder
sudo mount -t cifs //10.0.0.2/mp3 /home/xbmc/media/mp3 -o username=*,password=*,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
#mounting tools folder which i use for transferring misc files to htpc
sudo mount -t cifs //10.0.0.2/tools /home/xbmc/media/tools -o username=*,password=*,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
#mounting folder from laptop, also transfer folder
sudo mount -t cifs //10.0.0.4/temp /home/xbmc/media/laptop -o username=*,password=*,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
Change user/pass or just delete it if you don't use any to your windows shares.
The sleep command is to make sure NIC is initialized before mounting.
Edit rc.local :
Quote:sudo nano /etc/rc.local
Paste this into the last section of the file :
Quote:./home/xbmc/scripts/mount.sh
exit 0
^make sure path is correct if you changed script path above.
and do a reboot to make sure everything is loaded on startup
Quote:sudo reboot
Hope this helps. Works flawlessly for me on my asrock 330
Some good info about mounting shares can be found
here as well
# ADDING INTERNAL HDD :
Adding internal hdd can be done via fstab, this is my line :
(Of course make the mount dir first, same way as described above, in this case my mount dir is /home/xbmc/media/asrockhdd)
Quote:sudo nano /etc/fstab
add a line similar to this (make sure to ID the hdd first with fdisk -l as described in previous post):
Quote:/dev/sda3 /home/xbmc/media/asrockhdd ntfs user,auto,exec,utf8 0 0