473,386 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Trying to mount windows folder on Linux - getting error

365 100+
Trying to mount windows folder on Linux machine, getting this error. I have a folder called "CheckIn" on windows, I made that folder as Network sharing.
ON lInux, I tried to access that folder by mounting, getting error "Could not resolve mount point".

# mkdir /mnt/winstuff
# smbmount \\windows-machine-ip-addr\CheckIn
Could not resolve mount point
# ps -eaf | grep smb
root 27420 1 0 Dec03 ? 00:00:00 smbd -D
root 32063 30395 0 10:27 pts/6 00:00:00 grep smb
#
Dec 4 '09 #1
12 6775
tvnaidu
365 100+
Finally mounted, I was not pass username/password earlier, now I can access folder, but if I tried to go inside folder, getting "permission denied"

$ mount -t smbfs -o username=xyz,password=xyzp //win-ip-addr/main_folder /mnt/winstuff/
$ cd /mnt/winstuff/
$ ls
main_folder
$ cd main_folder
$
$ ls -l
ls: reading directory .: Permission denied
total 0
$
Dec 4 '09 #2
tvnaidu
365 100+
tried to munt cifs type instead smbfs, but kernel doesnot support cifs type.
Dec 4 '09 #3
AmberJain
884 Expert 512MB
Finally mounted, I was not pass username/password earlier, now I can access folder, but if I tried to go inside folder, getting "permission denied"

$ mount -t smbfs -o username=xyz,password=xyzp //win-ip-addr/main_folder /mnt/winstuff/
$ cd /mnt/winstuff/
$ ls
main_folder
$ cd main_folder
$
$ ls -l
ls: reading directory .: Permission denied
total 0
$
You need to give the user read privileges for main_folder. Try changing permissions using chmod.
Dec 9 '09 #4
tvnaidu
365 100+
Thanks, on windows side, I changed permission, still I am getting this error
Dec 9 '09 #5
tvnaidu
365 100+
also I changed using chmod on Linux for main_folder, once I go inside, I can't see anything
Dec 9 '09 #6
AmberJain
884 Expert 512MB
I misread one of your previous post. Try using chmod to change permissions on main_folder with -R (recursive) option.
Dec 9 '09 #7
AmberJain
884 Expert 512MB
Alternatively, when you are inside main_folder, use chmod with -R on all files using * wildcard.
Dec 9 '09 #8
tvnaidu
365 100+
I did with -R option, no luck, I am getting "permission denied", also I added ,rw,exec,umask=000, still samething

mount -t smbfs -o username=xyz,password=xyzp,rw,exec,umask=000 //win-ip-addr/main_folder /mnt/winstuff/
Dec 9 '09 #9
AmberJain
884 Expert 512MB
What happens when you do:
Expand|Select|Wrap|Line Numbers
  1. sudo ls -al
inside main_folder.


Also, goto parent directory of main_folder, and from terminal:
Expand|Select|Wrap|Line Numbers
  1. sudo ls -l
and paste here the line that corresponds to main_folder.
Dec 9 '09 #10
AmberJain
884 Expert 512MB
Also, post output of:
Expand|Select|Wrap|Line Numbers
  1. mount
Dec 9 '09 #11
tvnaidu
365 100+
[root@localhost /]# cd /mnt/winstuff/
[root@localhost winstuff]# sudo ls -l
total 4399
drwxr-xr-x 1 root root 4096 Dec 8 16:03 vma22_linux
[root@localhost winstuff]# ls vma22_linux
ls: reading directory vma22_linux: Permission denied
[root@localhost winstuff]# cd vma22_linux
[root@localhost vma22_linux]# sudo ls -l
ls: reading directory .: Permission denied
total 0
[root@localhost vma22_linux]#
[root@localhost vma22_linux]# cd ..
[root@localhost winstuff]# pwd
/mnt/winstuff
[root@localhost winstuff]# chmod -R 755 vma22_linux
chmod: `vma22_linux': Permission denied
[root@localhost winstuff]# cd vma22_linux
[root@localhost vma22_linux]# sudo ls -l
ls: reading directory .: Permission denied
total 0
[root@localhost winstuff]#


[root@localhost winstuff]# mount
/dev/hda2 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
//win-ip-addr/main_folder on /mnt/winstuff type smbfs (0)
[root@localhost winstuff]#
Dec 9 '09 #12
tvnaidu
365 100+
It is working now, what I did was I copied this main_folder into different dir on windows machine, earlier folder is VSS checkout folder, may be because of perm it is not working?.

after I copy that foder into diff new folder, I can access all files.

thanks for help
Dec 9 '09 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Luca T. | last post by:
Hello, i need a way to find the home folder of the current user no matter if i am in Linux or Windows for instance: * Linux: /home/username * Windows: C:\Documents and Settings\username Is...
5
by: tshad | last post by:
I am trying to access my log files and am running into a permissions problem. I am doing the following: ****************************************************************** private void...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
18
by: pankajit09 | last post by:
Hello , I want to mount Windows in Debian Linux so that I can use Wine. Please tell me how to do ?
2
by: GNoter | last post by:
We've a Windows 2003 server; 2 of them in a webfarm (network load balanced, or NLBs). We have a 3rd server which has an Access database to which the NLBs need access to. Is there any way to...
3
by: tguclu | last post by:
Hi there, I hope this is the right place for my question if not please accept my apologies. In my application I want to mount/umount file system. From GNU C Library Reference Manual, for...
34
by: Anthony Irwin | last post by:
Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas...
5
by: John Ladasky | last post by:
Hi folks, Running Python 2.5 on both a Windows XP laptop, and an Ubuntu Linux 7.04 desktop. I've gotten tired of maintaining multiple copies of my personal modules that I use over and over. ...
1
Nepomuk
by: Nepomuk | last post by:
In most modern distributions of Linux and Unix (at least ones with graphical environments like KDE, Gnome or XFCE), you get to mount your partitions easily from the desktop. In some cases however, it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.