LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 06-21-2006, 05:34 PM   #1
tronica
Member
 
Registered: Nov 2005
Location: KCMO
Posts: 82

Rep: Reputation: 15
mounting a samba share


ok i just got samba installed on my debian box. From my ubuntu machine i can do

Quote:
smb://debserv/share
and i can browse and write to that share. But on my ubuntu box i'm wanting to mount this shared folder like i do with my windows servers. when i give this command as i do with my windows servers this is what i get with the debian server:

Quote:
lyle@ubuntu:~$ sudo mount -t cifs //192.168.1.68/share/ /mnt/debserv -o user=lyle,pass=monster
mount: //192.168.1.68/share/ is not a valid block device
heres what i have in my smb.conf

Quote:
[share]
path = /home/lyle/Desktop/share
public = yes
writable = yes
valid users = lyle
create mask = 0777
can anybody help me get this going. Thanks
 
Old 06-21-2006, 06:04 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
I believe the type is smbfs, not cifs. Check man mount to see for sure...
 
Old 06-21-2006, 06:31 PM   #3
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
Two other possible issues:
1 - That trailing / on the share name //192.168.1.68/share/ may cause trouble. Try ../share without the trailing /

2 - You may need to name the server. Does the machine have a name? You can either put an entry into /etc/hosts to translate the IP, or as suggested on a similar thread - http://www.linuxquestions.org/questi...d.php?t=456604 - use the -o ip=[IP address] option.
 
Old 06-21-2006, 06:50 PM   #4
tronica
Member
 
Registered: Nov 2005
Location: KCMO
Posts: 82

Original Poster
Rep: Reputation: 15
ok i looked at that thread and still no luck. i keep getting

Quote:
wrong fs type, bad option, bad superblock on //192.168.1.68/storage
i just can't figure this out.
 
Old 06-21-2006, 07:33 PM   #5
luis14
Member
 
Registered: Jun 2006
Location: Des Moines
Distribution: Debian Lenny
Posts: 59

Rep: Reputation: 15
I'm new to this, but this is how I would phrase the command:
Quote:
sudo mount //192.168.1.68/share /mnt/debserv -o user=lyle,password=monster,dmask=777,fmask=777
good luck

Last edited by luis14; 06-21-2006 at 07:53 PM.
 
Old 06-21-2006, 07:44 PM   #6
tronica
Member
 
Registered: Nov 2005
Location: KCMO
Posts: 82

Original Poster
Rep: Reputation: 15
ok, i forgot to install smbfs on my ubuntu machine. so i got it mounted,however when i try to write the share. i get "don't have permissions"

but here is the command i used

Quote:
sudo smbmount //192.168.1.68/storage /mnt/debserv -o username=lyle,password=monster
do i need to add dmask=777,fmask=777 to the end of that to be able to write
 
Old 06-21-2006, 07:52 PM   #7
luis14
Member
 
Registered: Jun 2006
Location: Des Moines
Distribution: Debian Lenny
Posts: 59

Rep: Reputation: 15
The fmask dmask stuff should give you write permission. password=monster is your samba password, correct?
 
Old 06-21-2006, 08:47 PM   #8
tronica
Member
 
Registered: Nov 2005
Location: KCMO
Posts: 82

Original Poster
Rep: Reputation: 15
i got it to work, i installed smbfs and tried my mount -t cifs againg and it worked. Thanks for the help guys.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting a samba share resnostyle Ubuntu 11 05-20-2006 08:42 AM
Mounting XP share w/Samba KFoldesi Linux - Software 7 06-29-2004 09:51 PM
samba share mounting bacon22 Linux - Software 1 01-24-2004 07:13 AM
Mounting Samba shares and Samba Share Login time112852 Linux - Software 1 09-14-2003 02:23 PM
Mounting a Samba Share msjenkins Linux - Software 0 07-16-2003 10:19 PM


All times are GMT -5. The time now is 03:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration