Mounting a windows drive on a Linux machine (connected via an ethernet network)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
first you need to make a directory where you want the share to be mounted, i use /mnt/smb but you can use anything you want
so, from a terminal do this (as root):
mkdir /mnt/smb
mount -t smbfs -o username=user //winaddr/sharename /mnt/smb
where:
user is a user on your windows network/machine
winaddr is the network address of your windows machine (ip or hostname)
and sharename is the name of the share
also, you should be able to add an entry in your fstab so you just have to type
mount /mnt/smb
look at man fstab
you will need support for smb filesystems (which you should have unless you have re-compiled your kernel without it)
Thanks for the suggestion,however I tried the following as root
ipconfig /all (on my Windows PC).This gives me following IP address 192.168.1.101
ifconfig -a on Linux machine .This gives me ip adress 192.168.1.100.
Both PC's are behing a wireless base station.
Then on my RH73 Linux machine I did :
mkdir /mnt/smb
mount -t smbfs -o username=user //winaddr/sharename /mnt/smb
where:
user is a user on my windows machine network/machine
winaddr is the network address of your windows machine (ip or hostname)
and sharename is the name of the share .
I used $c as sharename since I want to share my C drive on my Windows machine
Below you find the reult of the mount command with the fields specifieds as mentioned aboveDo you have any further suggestions.
3831: session request to 192.168.1.101 failed (Called name not present)
3831: session request to 192 failed (Called name not present)
Password:
3831: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
[root@localhost root]#
Thanks for the suggestion,however I tried the following as root
ipconfig /all (on my Windows PC).This gives me following IP address 192.168.80.3
ifconfig -a on Linux machine .This gives me ip adress 192.168.1.100.
Both PC's are behing a wireless base station.
Then on my RHEL$ Linux machine I did :
mkdir /mnt/smb
mount -t smbfs -o username=user //winaddr/sharename /mnt/smb
where:
user is a user on my windows machine network/machine
winaddr is the network address of your windows machine (ip or hostname)
and sharename is the name of the share .
I used $c as sharename since I want to share my C drive on my Windows machine
Below you find the reult of the mount command with the fields specifieds as mentioned aboveDo you have any further suggestions.
Mounting a windows drive on a Linux machine (connected via an ethernet network)
I use windows xp on one and ubuntu on another and I was able to just enable file sharing on the xp and share all of C drive (no password, full access to files) then on linux click home folder then on the left network servers and C on XP popped right up no configuring at all, then drug a link to the desktop so it's always there. Not sure if that will help anyone but was simple and worked right off the bat.
hi,
friends topic is interesting i not yet tried tomorrow i try
i want to clarify one thing can we mount ntfs and fat.
i came to know ntfs is not possible to mount
thanks in advance
jnreddy
Maybe this is the problem I have? I am trying to connect WinXP Pro (NTFS) and Red Hat 9, but haven't been able to figure it out. Is that correct that NTFS cannot be mounted?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.