You are not logged in.
Pages: 1
Well what a 2nd post this is!
I've just spent forever trying not to have to post for help but its time i do.
I'm trying to mount a windows share on bootup in autostart.sh so that mpd doesn't die via not being able to find the tunes.
It seams you HAVE to be root to do this. Yes sudo will work but you don't get a password prompt.
I've only found one useful thread from google but these solutions don't seam to work for me http://bbs.archlinux.org/viewtopic.php?pid=272495
[dan@z0r ~]$ mount /mnt/shares/tank_d
mount: only root can mount //10.1.1.69/d$ on /mnt/shares/tank_d
Last edited by DanWA (2008-12-14 06:54:35)
[z0r] E6750 @ 3200mhz, GA-P35-DS3P, 4GB OCZ DDR2, GF 9800GT, 150GB Raptor, Windows7
[666] HP 6730B, P8600 @ 2400mhz, 4GB DDR2, Arch/Windows7
[fatty] E5500 @ 3000mhz, GA-P35-DS3L, 4GB OCZ @ 800mhz, XT1200, Dell Perc5/i, 2 x 320GB WD RAID0, 4 x 1TB WD RAID5, Server 2008
[shed] P4 3.4 @ 3600mhz, GA-P35-DS3R, 2GB OCZ DDR2, GF 8600GT, 150GB Raptop, Arch
Offline
Don't try and mount it at GUI start, mount it with all the other drives when your system starts. Put it in your /etc/fstab file so that it mounts at system boot - no password required.
Something similar to below. See the fstab link for exact details:
/dev/xxxx /mnt/shares/tank_d ntfs auto,user,rw 0 0
Bob
Last edited by Hrod beraht (2008-12-13 15:53:39)
Offline
Here is my /etc/fstab entry to mount a samba(cifs) share -- I think this is what you're asking for:
# Mediacenter
//192.168.0.100/scottandchrystie /mnt/mediacenter cifs credentials=/home/firecat53/.smbpasswd,uid=1000,gid=users,users,noauto 0 0
and the ~/.smbpasswd looks like:
username=myusername
password=mypassword
Good luck!
Scott
Offline
So firecat53 /mnt/mediaceter is loaded when you login as your normal user?
Doesn't work for me unless i su to root and run mount /mnt/shares/tank_d
Which log should i be looking into to see if theres an error?
[z0r] E6750 @ 3200mhz, GA-P35-DS3P, 4GB OCZ DDR2, GF 9800GT, 150GB Raptor, Windows7
[666] HP 6730B, P8600 @ 2400mhz, 4GB DDR2, Arch/Windows7
[fatty] E5500 @ 3000mhz, GA-P35-DS3L, 4GB OCZ @ 800mhz, XT1200, Dell Perc5/i, 2 x 320GB WD RAID0, 4 x 1TB WD RAID5, Server 2008
[shed] P4 3.4 @ 3600mhz, GA-P35-DS3R, 2GB OCZ DDR2, GF 8600GT, 150GB Raptop, Arch
Offline
All working now with a very similar fstab to that of above. VERY weird issue.
//10.1.1.69/d$ /mnt/shares/tank_d cifs users,auto,credentials=/home/dan/.smbpasswd,noexec 0 0
Cheers for the help, you can change this to solved now
[z0r] E6750 @ 3200mhz, GA-P35-DS3P, 4GB OCZ DDR2, GF 9800GT, 150GB Raptor, Windows7
[666] HP 6730B, P8600 @ 2400mhz, 4GB DDR2, Arch/Windows7
[fatty] E5500 @ 3000mhz, GA-P35-DS3L, 4GB OCZ @ 800mhz, XT1200, Dell Perc5/i, 2 x 320GB WD RAID0, 4 x 1TB WD RAID5, Server 2008
[shed] P4 3.4 @ 3600mhz, GA-P35-DS3R, 2GB OCZ DDR2, GF 8600GT, 150GB Raptop, Arch
Offline
Pages: 1