Solved

How to mount a windows shared folder (host OS) from Linux (guest OS) in VMWare

Posted on 2004-10-20
8
1,524 Views
Last Modified: 2012-08-14
I am trying to mount shared folder from Windows on Linux. I am using VMWare to run RedHat 9 as guest. I am trying to mount a windows shared folder from Linux. Here is the command I am using.

mount -t smbfs -o username="xxx/yyy",passwd=zzz //172.192.1.1/e$ /mnt/local

The command barfs. Any pointers as to where I could be going wrong?

Kind regards
0
Comment
Question by:samble
8 Comments
 
LVL 4

Expert Comment

by:EinarTh
ID: 12360331
You'll have to 'escape' the '$' sign, i.e. use quotes or a backslash, e.g. :
mount -t smbfs -o username="xxx/yyy",passwd=zzz "//172.192.1.1/e$" /mnt/local

cheers
0
 
LVL 2

Expert Comment

by:ITG-SSNA
ID: 12360526
There is a better way. Take a look at SMBmount :

[root@la-irvine3-ext admin]# which smbmount
/usr/bin/smbmount

I don't have the man page, but it is a lot easier to use.

Can you post the error *barf* ?

Thanks

~K Black
Irvine, Ca.
0
 
LVL 3

Expert Comment

by:255x4
ID: 12361583
smbmount //{NetBIOS name}/{share name} /mnt/local -o username=xxx/yyy passwd=zzz

This should work for you.  Note, I do not know if the system would like a / in the username field, so I hope that is just an indicator to show different passwords.  Remember, you have to use the NetBIOS name and not the IP address of the machine.

If you want to "browse" a machine to see what it has, just use:

smbclient -L {NetBIOS name}

When you get the password prompt, just hitting enter will show you the normal list, except for password protected shares.  If you enter the correct password, it will show you the normal list, with the password protected shares that use that password.

Thanks,

255x4
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:samble
ID: 12365927
I figured it out.

The syntax is:

mount -t smbfs -o username=yyy,workgroup=xxx //{NETBios name}/{share name} /mnt/local

Then you will be prompted for the password (You can also specify the password on the command line itself). You have to specify the "workgroup" option.

Thanks for trying to help me out guys.

Kind regards
0
 
LVL 2

Expert Comment

by:ITG-SSNA
ID: 12372035
Warning!!! What you are doing is NOT advised! If the remote system hangs it WILL hang BOTH. Please check out smbmount which is MUCH safer than mount in this case.
0
 
LVL 3

Expert Comment

by:255x4
ID: 12372957
If the remote computer hangs while using smbmount, you simply log in as root, and give

smbumount /mnt/local

because issuing it as user causes problems.  If you use mount directly, you are either running as root, or mount is running as SU root, which makes it a root-level command, and no one can kill it if the remote machine either hangs or is rebooted.

Thanks ITG-SSNA for pointing that out.

255x4
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 16143328
PAQed with points (125) refunded

DarthMod
Community Support Moderator
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now