Fedora :: Where Do CIFS Network Shares Get Mounted?
Jan 21, 2011
I have mounted a windows network share using the gnome desktop environment, using Places -> Connect To server.The network share is OK, and I have the icon on my desktop and can see all the files.I want to be able to use this network as well in the console, so I need the mount point.What is the location on the filesystem were this networkdrive gets mounted? I find nothing in /mnt and nothing in /media also using mount to look at the registered mounts, there is no entry for the networkdrive.Nevertheless, I have this networkdrive now open in my desktop, and have an option to unmount it.I know that using the mount.cifs command you can specify the mounting point.
The shares get mounted correctly and you can navigate through the directories and open files.The only problem is that it randomly starts going really slow taking 30 seconds or longer to open a directory that has 2 or 3 files in it.I have tried quite a few things to try and fix this without any luck. Its getting to the point where I am having to consider recommending that we use windows instead, which I would rather not do as I think its good for students to experience different operating systems during school.
I have a line in the fstab file which automatically mounts a network drive every time I start up Ubuntu. I browse to a text file on the network drive and open it using gEdit and make changes to it. Then, when I hit the save button, a bright red warning appears:
Could not save the file [path here] gedit cannot handle file: locations in write mode. check that you typed the location correctly and try again. This also happens if I do save as. Then, after this error appears, the file actually disappears (gets deleted) from the network drive and in order to save it, I have to select save as again and type in the original filename. The line in my fstab file is:
I'm not sure if this has something to do with the file permissions or gEdit itself or using cifs to mount. When I use the "ls -l" command on the file, I get
After booting, the sda5 and sda8 mounts work fine, but the Windows shares haven't been mounted. If I enter the command: mount -a everything works fine. I don't know if this a timing issue, or something to do with the new systemd stuff, but it has happened in previous Fedora releases from time to time.
I am attempting to set up autofs on Ubuntu 10.04 so that it can automatically mount cifs shares when wifi is connected. For some reason, it isn't working. First of all, I know the share is accessible because doing this works fine:
Code: sudo mount.cifs //192.168.0.12/share /cifs -o credentials=/etc/samba/credentials This is in my /etc/auto.master Code: /cifs /etc/auto.home --timeout=60 --ghost And this is /etc/auto.home
this subject seems to have been touched a hundred times, but after following all the advice google could provide, i'm still unable to mount cifs shares as user, here's the fstab line
<server> <mountpoint> cifs rw,noauto,credentials=/etc/gattonauth,uid=1000,gid=1000,dir_mode=0770 0 0 i've chowned the mountpoint to the user, ive tried chmod +s /sbin/mount.cifs /sbin/mount.cifs suggested by http://www.linuxquestions.org/questi...-lenny-711337/
Since upgrading to 10.04 I have had constant CIFS errors in /var/log/syslog
Eg - May 1 10:33:46 eclair kernel: [ 933.789217] CIFS VFS: No response for cmd 50 mid 32895 May 1 10:33:46 eclair kernel: [ 933.794567] CIFS VFS: No response for cmd 50 mid 32900 May 1 10:33:48 eclair kernel: [ 935.721371] CIFS VFS: No response to cmd 46 mid 37294
[code]....
All shares mount and I can open them etc, but always those errors appear whenever I try and browse to it, read them etc. These shares are mount from a Windows 2003 Server and no other machine has a problem reading or writing to this machine. I have changed the network cable and network cards in both machines, with no success. If I copy a file from a local drive to a CIFS drive, the file on the CIFS drive becomes corrupted.
We recently had an issue with "cat /proc/mount" telling us that a CIFS file system was mounted, even though the mount was not working correctly. So we're not sure if we can trust linux to report malfunctioning mounts, so we're planning on adding a specific file on the mounted file system, and verify the mount by reading this file from the client side (linux). If linux fails to read it, we know that the mount have failed. But before we go ahead doing this I thought I'd just hear how others are doing this sort of thing - how do you make sure that mount points are up and working?
- kenneho
EDIT: I just saw that I've posted in the security area, not in the server area. How do I move it?
I would like to be able to test that a network mounted cifs(samba) share is actually mounted in a script file to do backups. I want to do this so that when my automatic backups run they actually go to the remote location or fail. Currently, if there is a network problem that prevents the network share from mounting, the files simply get copied to the folder (e.g. /media/backupmount) and end up filling up my small local hard drive.
I have a Hitachi SimpleNET adapter (entry-level NAS device) on a Seagate FreeAgent 1TB external HDD (formatted ext3). The NAS device is connected over 100MB/s ethernet to a Netgear Wireless G router. All other devices connect using Wireless G. The NAS runs embedded Linux on an ARM processor and it runs vsftpd and Samba for file transfers.
If I transfer a large file using an FTP client the transfer maxes out at around 2.5MB/s. For my purposes that's good enough, especially considering the Wireless G bottleneck. If I transfer a file from a Windows 7 client (using samba) I get around 2.2MB/s. I know the CIFS protocol has more overhead than FTP and the difference in speed isn't that noticeable.Any combination of Ubuntu and Samba results in me getting less than 1MB/s. I've tried mounting it through Nautilus (GVFS) and /etc/fstab. FTP from this same Ubuntu client gets around 2.5MB/s.
I don't have root access on the SimpleNET to change the smb.conf. I've made a few adjustments to the mount options with no success. how to either speed up 10.04 as a Samba client or mount a folder on an FTP server locally? I've tried both curlftpfs and FUSEFTP. With curlftpfs any write operation results in an I/O error and it crashes intermittently. With FUSEFTP I never got that far and couldn't even browse the folder.
When using the following cifs mount command, mount -t smbfs -o username=username,password=password //srv/shr /usr/localfolder/and the cifs share does not exist, localfolder is mounted like d????????? ? ? ? ? ? localfolderafter a number of time , when umounting we get a kern <soft lock>Is there any way to fail the mount if the destination share does not exist, ive had a quick look through man mount but can not see a solution.
The problem arises when I try to create a sub-directory inside the mounted directory. All the newly created sub directories become write protected.
I am accessing this file system from R software and it needs to write/create directories in side this mounted directory.
how can newly created sub-directories will become automatically writable, so that R can create new sub-directories and write data inside those directories.
I use the following to mount a share from one NAS to another NAS (both runing Linux based on Ubuntu):mount -t cifs //rmthost/rmtshare -o username=id,password=pw mntdir/ lcldir...It mounts fine and I can access the files with no problems except when I access a directory or file that is a link. When I do that it links me back to the local drive and not the mounted share. How do I get the remote links to stay remote? Is it even possible?
I have used Linux on and off over the past 15 years. Linux has been the solution to a lot of my networking problems over the years. I work in a school and I am keen to setup Linux labs for the students. Users can logon with their active directory [Micoroft accounts] and can access their files off server drives. All this is made easy with the help of CentrifyDC. I can simply access a network share and CentrifyDC handles the authentication.
My issue is that some applications will see mounted samba shares and some applications won't. For example I can open and save files to my Windows servers using applications such as Openoffice, Gnumeric, Abiword. However apps like DIA will only show local drives. Maybe some applications use the default file manager where the mounts are bookmarked whilst other use their own file manager?
When I used the find command, I almost always need to search the local drives. But, I almost always have super large network shares mounted and these are included in the search. Is there an easy way to exclude those in the find command, grep and other similar commands? Example:
This is the first time I have run into issues mounting windows shares but I really can't figure this out. Can someone put me out of my windows misery please.
First off, last week I rebuilt my work PC fromWIN7 32bit to WIN7 64bit since then I can no longer mount the window share on my ubuntu server:
I recreated my windows share called "Linux" and used the properties, advanced sharing and added everyone, full access and my domain account full access.
If I browse to \ipaddress I can see my share and access it. From a XP machine I can see the share and access it.
From linux I use the same mount point as before, /linux I use the same fstab and it fails
Code:
I try this manually now:
Code:
Next I try to mount it:
Code:
I looked at my firewall rules and they seem ok.
Next test was connecting to my 2nd pc on windows XP no probs mounted first time.
I have a little problem with my RHEL5.5 IA64. I mounted a Windows directory with 'mount -t cifs'. After a little while someone else mounted the same windows directory in the same mountpoint. The output from 'mount -v' shows me that the same directory is mounted twice in the same mountpoints. I cannot unmount it, not even with the force option. The error is "Device or resource busy". There are no open files in the shared directory and no one using the directory or subdirectories.
Currently I am trying to get some fedora shares to simply connect to each other to access a read-only shared folder on a host machine (no security/encryption even required for these files!). I've tried to get a smb network share going but that didn't work (can't connect with nautilus), I've tried a quick fix with daap and rhythmbox so that they can at least access the music, but rhythmbox fails very miserably trying to connect/create that (and mt-daapd didn't help much) - Basically I get errors saying the host is unreachable.
I haven't even set up a firewall yet for this network and already I'm running into these fundamental problems. Currently I'm using Fedora 15. On a whim I tried the "public" folder and had sharing of the public folder over the network enabled - yep, didn't work (and I certainly didn't expect it to). I would be trying some more advanced CLI stuff, setting up an ssh server or something, but the computer-challenged people who have to access these files just want to be able to click something and have it work.For the operational requirements of this setup, a file synchronisation system would work (although highly inefficient since it would mean gigabytes sent over the network).
I am giving 10.04RC a try instead of Windows 7, so far so good. I can connect to my network shares fine using "Connect to a Server" & bookmark with the file browser, however when I use OpenOffice writer Spreadsheet to open/save files the shares disappear in the"Open/Places". Is this a bug in Ubuntu or Open Office? Is there an update/fix?
I have an Acer EasyStore NAS which I can access fine in Nautilus, but a server which I have been trying to mount via command line refuses to even let me view the contents of the folder. The mount command appears to work, a password is requested when connecting to the shared folder.
sudo mount -t cifs --verbose -o user=jason //nas/media /mnt/nas mount.cifs kernel mount options: unc=//nasmedia,ver=1,rw,user=jason,ip=192.168.0.250,pas s=********
But I cannot even view the folder contents, as even a simple ls returns:
ls: cannot open directory /mnt/nas: Permission Denied
Even on my laptop which is able to access all the shared folders under Nautilus I am unable to mount shares from the command line.
1. 11.4 x64. 2. Solaris SMB server. 3. Gigabit LAN 4. mounted shares from that server (fstab entries)
write speed: 80-90-100 MB/s read speed extremely slow: 3-4-5 MB/s (really funny - our administrator shoked, but i'm not fun, i need fast lan for work)But when i reboot to windows 7 - i have 60-70-80 MB/s in both directions. Read and Write - nice.What happened? kernel updated and all last updates is applied (exclude kopete-because i use old kopete with animated tray icon).I have to tried many tunes like: "noatime" "directio" and also in /etc/modprobe.d - put conf file with: options cifs CIFSMaxBufSize=130048
I mount the share on my Windows server with following command:
Code: mount -t cifs -o username=Administrator,password='mypassword',rw,dir_mode=0777,file_mode=0777,nobrl,uid=1000,gid=100 //10.8.0.1/users /mnt/
In my 11.3 computer it works well. I opening, copying files like I do in local filesystem. At the same time it's not working well on my 11.4 computer: the share mounts without errors, I see all files, can copy them from server to local computer. But when I'm trying to make copies to server, sometimes I receive messages like "Error writing file ...". Not always, but in the most part of my attempts. find the part of my /var/log/messages file:
So after having spent the past half year preparing to abandon Windows and come over to Debian I finally made the switch last night only to realize I forgot one important thing... I didn't figure out how to map the network drive on my Windows server (currently learning to replace this with Debian as well) to my Debian system.
I have read about 15 links but keep getting the following error: Mount Error (6): No such device or address
Here is what I'm trying to enter into my terminal (with important bits removed for security of course)
mount -t cifs //xxx.xxx.xxx.xxx/Network_Storage/ -o username=xxx,password=xxx /mnt/cifs
I used command as followings. nothing special. mount -t cifs //192.168.55.53/windows$/Home /mnt/ -o user=username%password It works well after mounted. But mounting itself takes 1-2 minutes terribly. After mounted successfully, file transfer speed looks to be normal.
i'm trying to setup a permanent CIFS share from my nas, but it keeps prompting for a password dispite GUEST access set on the share.FStab is as follows:
Code: //192.168.0.253/media/ /mnt/nas1_media/ cifs guest,_netdev 0 0 if i do
I am interested in turning my home server into something that I can store backups on. I do photography and therefore have a lot of photos. I use Mac OS X for my photo editing, so it must be accessible from my Macbook. I am new when it comes network storage servers, so what would be the best solution for me to be able to backup my photos seamlessly? I would like it easy enough so others can backup files without any terminal commands and such. What would you suggest? CIFS? RAID? iSCSI?
I use Suse 11.2. I mounted 5 folders from fstab. 2 of them work but 3 do not. The 3 folders that do not work let me enter them, and they let me see everything. I can even create or delete a folder on them, if I am just browsing with konqueror. The problem is that I have a program that will not read them. It's a program made for my company and apparently it will only read folders that have all of their permissions set to read and write. The program will read the first two because their permissions are set to Owner, Group, and Others, can view and modify content. (The network folders are all windows server 2003 computers). The 3 folders the program will not read are set to Owner can view and modify content, but Group and Others are "can view content" If I try to change those permissions even in root, it tells me that access is denied.
I just made a fresh install of OpenSUSE 11.4-Tumbleweed and have the latest updates. However fstab lines I've used in the past are not working.
Here's an example of two: //IPADDRESS/share /home/user/mount cifs credentials=/home/user/.scripts/.creds,_netdev,uid=client_user,gid=users 0 0 //IPADDRESS/share /home/user/mount cifs guest,_netdev,uid=client_user,gid=users
I can execute a command
Code: sudo mount /home/user/mount and it works, but I'm wanting all my fstab lines to automount at boot as on other machines.