LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-04-2011, 04:12 AM   #1
prowlerxpla
Member
 
Registered: Aug 2003
Location: latina (italy)
Distribution: suse 9.1 & mdk 10.0
Posts: 30

Rep: Reputation: 0
mount root with cifs samba


I can aesily mount a windows resource in this way:
if I want to mount 192.168.1.2/abbaino in /homecasa I use:
Code:
mount -t cifs -o username=sonoio,password=pwmia 192.168.1.2:/abbaino /homecasa
using superuser or inserting a similar thing in fstab.
I tryed:
Code:
mount -t cifs -o username=sonoio,password=pwmia 192.168.1.2:/ /homecasa
but doesn't works.

is there a way to mount directly 192.168.1.2/???
and in this way having access to all the other subdirectoryes??

and performing this mounting without beeing superusers???

thanks for any response
ciao:-) pla

Last edited by prowlerxpla; 12-04-2011 at 04:13 AM.
 
Old 12-04-2011, 05:40 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

[QUOTE=prowlerxpla;4541493]I can aesily mount a windows resource in this way:
Code:
mount -t cifs -o username=sonoio,password=pwmia 192.168.1.2:/abbaino /homecasa
yes, that's okay this way.

Quote:
Originally Posted by prowlerxpla View Post
I tryed:
Code:
mount -t cifs -o username=sonoio,password=pwmia 192.168.1.2:/ /homecasa
but doesn't works.
Of course not. You can only samba-mount a shared directory, not an entire server or its list of shared directories, which is what you would be trying with the above instruction.

Quote:
Originally Posted by prowlerxpla View Post
is there a way to mount directly 192.168.1.2/???
No, there isn't. You can share the entire C drive of the windows box, but you still need to give it a share name.
Beware of possible security risks when you share an entire drive.

[X] Doc CPU
 
Old 12-08-2011, 06:56 AM   #3
prowlerxpla
Member
 
Registered: Aug 2003
Location: latina (italy)
Distribution: suse 9.1 & mdk 10.0
Posts: 30

Original Poster
Rep: Reputation: 0
my curiosity is why I can use shared / with all the subdirectory using smb://192.168.1.2/ and there isn't a way to do it mounting in a place on my linux machine, with other filesystem, as ssh or sftp for example, I can use fusermount, isn't a fusermount or similar thing for smb??
ciao pier

Last edited by prowlerxpla; 12-08-2011 at 06:57 AM.
 
  


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
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 03:48 PM
samba cifs mount - sbs2003 error Unclesmiff Linux - Software 1 01-22-2008 02:02 PM
cifs samba mount as group saavik Linux - Server 1 05-29-2007 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:50 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration