|
Home > Archive > Red Hat Networking > September 2005 > mounting a windows network share on fedora fc2
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
mounting a windows network share on fedora fc2
|
|
| Chris Tenney 2004-07-09, 11:58 am |
| I have a workgroup of "home" and a computer called "THEBOX" with a share
of "My Music". I can browse to it from my X desktop but I get error
messages when I use the command line:
mount -t user=XXXX,password=XXXX //THEBOX/My Music /audio
What do I need to do differently?
Thanks,
Chris
| |
| Alexander Dalloz 2004-07-09, 11:58 am |
| On Wed, 07 Jul 2004 19:40:29 +0000 Chris Tenney wrote:
> I have a workgroup of "home" and a computer called "THEBOX" with a share
> of "My Music". I can browse to it from my X desktop but I get error
> messages when I use the command line:
> mount -t user=XXXX,password=XXXX //THEBOX/My Music /audio
>
> What do I need to do differently?
man mount -> to see what "-t" meants and that it need a value
Too notice the space in "My Music".
> Chris
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
| |
| Chris Tenney 2004-07-09, 11:58 am |
|
"Alexander Dalloz" <alexander.dalloz@uni-bielefeld.de> wrote in message
news:pan.2004.07.07.20.43.52.855715@uni-bielefeld.de...
> On Wed, 07 Jul 2004 19:40:29 +0000 Chris Tenney wrote:
>
>
>
> man mount -> to see what "-t" meants and that it need a value
>
> Too notice the space in "My Music".
>
>
> Alexander
>
>
> --
> Alexander Dalloz | Enger, Germany
> PGP key valid: made 13.07.1999
> PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
>
the command line should read
mount -t smbfs //THEBOX/My Music /audio -o user=XXXX,password=XXXX
But, 1 question, how does Linux handle spaces in names like "My Music"? Do
I type it as shown, or do I do something else?
Thanks,
Chris
| |
| Scott Lurndal 2004-07-09, 11:58 am |
| "Chris Tenney" <tenneyc@earthlink.net> writes:
>the command line should read
>mount -t smbfs //THEBOX/My Music /audio -o user=XXXX,password=XXXX
>
>But, 1 question, how does Linux handle spaces in names like "My Music"? Do
>I type it as shown, or do I do something else?
You do something else.
Oh, you actually want to know what? Why not ask?
Surround the argument in which blanks are significant with
quotation marks.
mount -t smbfs "//THEBOX/My Musix" /audio -o ...
Do ensure you mkdir /audio first.
scott
>
>Thanks,
>
>Chris
>
>
| |
| Alexander Dalloz 2004-07-09, 11:58 am |
| On Wed, 07 Jul 2004 22:08:08 +0000 Chris Tenney wrote:
> the command line should read
> mount -t smbfs //THEBOX/My Music /audio -o user=XXXX,password=XXXX
Great, you helped yourself. Isn't that a good feeling? ;)
> But, 1 question, how does Linux handle spaces in names like "My Music"? Do
> I type it as shown, or do I do something else?
In general I would avoid using directory names with spaces, either under
*NIX or Windows[tm]. Some too avoid spaces in files names too. You don't
really need white spaced names.
To cover your actual situation you would need to modify the mount command
line by putting the UNC name - which is the Windows[tm] share - into "".
> Chris
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
| |
| Chris Tenney 2004-07-09, 11:58 am |
| On Wed, 07 Jul 2004 22:19:01 +0000, Scott Lurndal wrote:
[vbcol=seagreen]
> "Chris Tenney" <tenneyc@earthlink.net> writes:
>
>
> You do something else.
>
>
>
>
>
>
>
>
>
> Oh, you actually want to know what? Why not ask?
>
> Surround the argument in which blanks are significant with quotation
> marks.
>
> mount -t smbfs "//THEBOX/My Musix" /audio -o ...
>
> Do ensure you mkdir /audio first.
>
> scott
I got it:
mount -t smbfs //thebox/my\ music /audio -o username=XXX,password=XXXX
Now, how do I place this im /etc/fstab to mount on boot. I placed the
above line there and it gave me an error?
Thanks,
Chris
| |
| Alexander Dalloz 2004-07-09, 11:58 am |
| On Thu, 08 Jul 2004 20:59:11 +0000 Chris Tenney wrote:
> I got it:
>
> mount -t smbfs //thebox/my\ music /audio -o username=XXX,password=XXXX
>
> Now, how do I place this im /etc/fstab to mount on boot. I placed the
> above line there and it gave me an error?
man fstab
The /etc/fstab entries have a specific format.
> Chris
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
| |
|
| Chris Tenney wrote:
> I have a workgroup of "home" and a computer called "THEBOX" with a share
> of "My Music". I can browse to it from my X desktop but I get error
> messages when I use the command line:
>
>
> mount -t user=XXXX,password=XXXX //THEBOX/My Music /audio
>
> What do I need to do differently?
>
> Thanks,
>
> Chris
try:
smbmount /localdirectory //windowsserver/share -o
username=xxxx,password=xxxx
| |
| Jan Gerrit Kootstra 2005-09-18, 7:47 am |
| Kurt wrote:
> Chris Tenney wrote:
>
>
>
> try:
>
> smbmount /localdirectory //windowsserver/share -o
> username=xxxx,password=xxxx
Chris,
Is not the syntax: smbmount //windowsserver/share /localdirectory -o
username=xxxx,password=xxxx ?
Alernative:
mount -t smb //windowsserver/share /localdirectory -o
user=XXXX,password=XXXX
second alternative:
put following lines in your /etc/fstab:
//windowsserver/share /localdirectory smbfs
defaults,noauto,user=XXXX,password=XXXX
where noauto is optional, avoids boot problems when your Windows machine
is offline when you boot the linux machine.
Kind regards,
Jan Gerrit Kootstra
| |
| Angelus 2005-09-23, 5:54 pm |
| Jan Gerrit Kootstra wrote:
> Kurt wrote:
>
>
> Chris,
>
>
> Is not the syntax: smbmount //windowsserver/share /localdirectory -o
> username=xxxx,password=xxxx ?
>
> Alernative:
>
> mount -t smb //windowsserver/share /localdirectory -o
> user=XXXX,password=XXXX
>
> second alternative:
>
> put following lines in your /etc/fstab:
>
> //windowsserver/share /localdirectory smbfs
> defaults,noauto,user=XXXX,password=XXXX
>
> where noauto is optional, avoids boot problems when your Windows machine
> is offline when you boot the linux machine.
>
>
> Kind regards,
>
>
> Jan Gerrit Kootstra
If the Windows share is an NTFS partition, you might want to mount it as
read only.
$ mount -r -t smbfs -o user=xx password=xx //machine/share /localdirectory
|
|
|
|
|