You are not logged in.

#1 2008-12-13 13:11:28

DanWA
Member
From: Collie, Western Australia
Registered: 2008-12-12
Posts: 6
Website

[Solved] Mounting Windows Share

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

#2 2008-12-13 15:43:19

Hrod beraht
Member
Registered: 2008-09-30
Posts: 186

Re: [Solved] Mounting Windows Share

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

#3 2008-12-13 19:48:33

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [Solved] Mounting Windows Share

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

#4 2008-12-13 22:32:17

DanWA
Member
From: Collie, Western Australia
Registered: 2008-12-12
Posts: 6
Website

Re: [Solved] Mounting Windows Share

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

#5 2008-12-13 22:49:41

DanWA
Member
From: Collie, Western Australia
Registered: 2008-12-12
Posts: 6
Website

Re: [Solved] Mounting Windows Share

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 smile


[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

#6 2008-12-13 23:59:52

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [Solved] Mounting Windows Share

Oops, forgot to change the noauto to auto! Sorry! Glad you got it working! You can edit your first post to add [Solved] to the title.

Scott

Offline

Board footer

Powered by FluxBB