OpenSUSE Network :: Error Mounting NFS Shares Ato Boot Time?
May 20, 2011
I'm using Opensuse 11.4 updated from 11.3, update from 11.2 updated from. I'm mounting at boot time (in fstab) some shares from an opensuse 11.2 server. Mounting worked fine in 11.2, 11.3 and also in 11.4 but suddenly (maybe an automatic update?) It stopped working.... sometimes.
Sometimes they are mounted properly but sometimes they aren't. When mount fails I get a log error: "rpc.statd is not runninf but is required for remote locking. Either use '-o nolock' to keep locks local or start statd"
If I run manually (as root) mount -a the shares mount properly always, so I thought it was a problem of timing (the service starting late) so I tried to get a script to run after the network initialitation, the script does: "mount -a". But it doesn't work either.
I've got a mostly Debian Lenny network but I've set one machine up with Squeeze. One the Squeeze machine I can mount my NFS shares manually but can't get them to mount at boot time. Here's my /etc/fstab file:
Code: # /etc/fstab: static file system information. # # Use 'vol_id --uuid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass>
I've been having terrible trouble with my 64bit Desktop v10.04 ever since I upgraded it. Has been a long battle - but I think I have it down to just one remaining issue which I suspect is more related to the network than to the upgrade. So I'll ask here also... The old system always used grub as the bootloader, and has always worked just fine. I have now had to do a complete fresh install, which incorporated a change to grub2 (first time I have used it).
It would seem now, that grub2 is unable to deal with mounting the samba shares on my lan at boot time. The boot always fails, dumping the user to the cli rather than the gui desktop. The error given indicates that the network is unreachable. Most users of the system have given up on Ubuntu altogether because of this, and fallen back into the clutches of the evil empire (the machine dual boots XP). If I log in, and manually startx to open the desktop, the network is there, and the shares are mounted just fine. Everything seems to be working ok - but for crashing out of the boot process with network errors. The fstab file follows, in case there is some cause there I'm not seeing (I have edited names and passwords prior to posting)...
I am posting this as I have tried several times to work this out. I have read article after article, post after post and tutorial after to tutorial to sort this issue. I have an Ubuntu 10.04 machine running as the LDAP and NFS server with two Opensuse 11.3 desktop machines. Both of the Opensuse machines can login using the LDAP server for authentication and this works fine. The server also exports the NFS Shares no problem but I am unable to mount the shares from the Opensuse machines. I have been using Yast, NFS Client to mount them.
Yast NFS Client can see the shares and lists them however when I apply the settings it states:
'Unable to mount entries in etc/fstab' I need to mount the shares according to the LDAP details as I want the users to be able to access their files no matter which machine they login at. Can anyone shed any light on the issue. Any help would be great and I would be enternally grateful as I am now beginning to pull my hear out slightly.
opesnSuse 11.1, linux 2.6.27.45-0.1-default x86_64 This host has two samba shares that are located on an OS/2 server. Neither mount at boot time but they do mount from the command line.
There are 5 other client computers that mount the same shares at boot time using almost (different user/pass info) identical data. I do not see what is different about this host.
i have 2 partitions on dmraid. I am not able to configure them to mount with yast; yast partitioner gives an error stating that it can't mount a file system of unknown type. I am able to start the dmraid devices manually and mount them manually.
See bug:
https://bugzilla.novell.com/show_bug.cgi?id=619796 for more detailed info.
Tested with diffrent parameters. And another problem also with samba shares, when I edit file from editor (eclipse) after save i got 'file changed dialog'. seems like file is written with some delay ? and timestamp dont agree (its my blind quess). On 9.04 no problems. Tested with 2 instances of Eclipse. One copied from 9.04 and second fresh install. Other editors raport the same problem. Its anoying as hell.
Using Xubuntu 10.04 to connect to some Windows XP shares by adding lines to fstab. The network shares are not mounted at boot, but can be mounted from the command line, after the OS has booted and everything is up. I am suspecting the network isn't up yet, when fstab is processed. I tried adding the option "_netdev" to the relevant network share lines in fstab, but the shares still don't mount automatically at boot up. I read that this option only works for NFS and I am using CIFS. Can someone confirm that _netdev only works for NFS ?
I've seen solutions involving running a mount script after the OS is fully loaded, or running a cron job to periodically check the status of the share and mount if needed. Good workaround but doesn't address the root cause. Is there any other way (besides the _netdev option) to delay mounting of network shares that appear in fstab until the network interface is up ?
Using OpenSUSE 11.4 on a backup server. At boot, it needs to connect to the main server's NFS share. Watching the text scroll up the screen, it's obvious that the system waits for anything up to several minutes showing 'mounting NFS...'. Once it (eventually) passes that point, the rest of the boot procedure is as fast as expected.
If NFS is disabled at boot, normal boot times are restored. If the NFS client is restarted via 'rcnfs restart' once the system is up and running, it's instant. If NFS is disabled at boot and started manually afterwards, it start instantly. Once running, NFS behaves normally. The backup server has two ethernet ports, connected via a switch to the main server, which also has two ethernet ports. All ports are configured via DHCP from a router, with all addresses reserved on the router so that all important devices are kept at the same locations.
We recently moved to a new home and I am trying to get my home file/print server set up again. Thanks to swerdna's excellent website, I got my server box (just upgraded from 11.0 to 11.2) running Samba and serving my shares over the network, and my "client" machines can access them without a problem.However, I'm not having much luck setting up CIFS mounts on my Linux desktop. I have my all-purpose user added to the Samba auth list (via smbpasswd), and configured my client as swerdna's howto's specify, and I can access the files just find. However, when I try to mount the shares with this command:
Code: mount -t cifs -o username=klein,password=klein //192.168.1.70/sharedmedia /home/zak/SharedMedia/ I get the following error:
I wrote a little script that will automatically mount two Samba shares to my home directory and I was wondering if a) You guys/gals had any input as to how I could improve on this script and b) Tell me how I would go about having this script automatically execute when I log on via SSH.
Code:
#!/bin/sh mount -t smbfs -o username=Myuser,password=Thepassword //192.168.1.102/Data1 /home/user/Data1 mount -t smbfs -o username=Myuser,password=Thepassword //192.168.1.102/Data2 /home/user/Data2
Am in the process of upgrading from an ancient OpenSuSE release (7.2) to 11.2. One thing I have been unable to do that worked fine under 7.2 is remotely mounting a compact flash drive from an XP machine. Worked fine for many moons on 7.2:
# mount -t cifs -o rw //xpbox/'cf (H)' /cf0 I get: mount error(12): Cannot allocate memory Other cifs mounts of hard disks work fine.
I found a posting that says this means the memory allocation error is from the XP side. It says to fiddle with the XP registry, specifically IRPStackSize. I was not confident this fix would work since there should not be anything significantly more consuming with 11.2 compared to 7.2, and indeed, I got the same error after changing the parameter to 18 and rebooting the XP machine. Any ideas? I have some suspicion that the space and parenthesis in the share name might be fouling up someone. XP forces the share name to this for some reason.
I run a mediaserver on Archlinux, working perfectly (or almost). I have set up NFS v3 and that worked for me on these clients:
- Debian Lenny - Archlinux 64bit
Now I've upgraded my Lenny-box to squeeze and I see that 2 of my 3 shared folders (tdone and twatch) are mounted like they should and the third one (media) doesn't come up. A 'mount -a' as root gives this error: mount.nfs4: access denied by server while mounting (null) My relevant fstab-lines:
I'm trying to find a way to auto-mount a couple of NTFS volumes at login (or even earlier if possible), not by editingfstab or running the (currently buggy for Maverick) ntfs-config tool, but by simulating the way that Nautilus mounts volumes when you click or double click on one. The reasons for this are not important(just to make things a little mysterious).So, I checked the output of syslog when I click on an unmounted volume in Nautilus. It seems very useful, but I can't make much out of it. So I need your help I need to make something like a script to do this thing at startup.
Code: Feb 16 20:52:28 UBUNTU-BCM-P5Q-DELUXE ntfs-3g[3701]: Version 2010.8.8 external FUSE 28 Feb 16 20:52:28 UBUNTU-BCM-P5Q-DELUXE ntfs-3g[3701]: Mounted /dev/sdb1 (Read-Write, label
My DVD drive start working bad recently in KDE 4.4.3 - openSUSE Forums , but this is another very annoying thing happening in my openSUSE box. I have several flash drives, from several sizes and all have the same problem: When I plug them, the drive simply takes a LOT of time mounting and showing the data, but really, a LOT, and meanwhile the flash light blinks the desktop environment its FREEZE, until it shows the mounted drive. Some output from a recently plug that takes again a lot of time:
Code:
[ 4685.082027] usb 1-6: new high speed USB device using ehci_hcd and address 5 [ 4685.579461] usb 1-6: New USB device found, idVendor=0325, idProduct=ac02 [ 4685.579480] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Was enjoying my new experiences until I tried to access/see my OpenSuse 11.4 install (Within VirtualBox on Windows 7)I can surf the net and download packages etc but from Windows 7 the Virtual OpenSuse7 does not show up.I know the windows network works because I also have Ubuntu10.4 on VirtualBox and that I can see and access fine.Change to OpenSuse and it all goes down the tubes, doesnt even show up in the Network on Winsows 7With Ubuntu I have etho setup to use DHCP automatically.I've tried numberous settings unsuccessfully on Suse and I think in the process have probably changed something incorrectly, but it didnt show up in Network places even before I started fiddling.Settings within Network Settings are:
1) Global options Network Setup method: Tradional with ifup IPv6 Protocol - Enabled
I wonder how to get Samba share access working well...Dolphin supports Samba but it doesn't really mount anything, it seems... Non-KDE Applications therefor can't access samba that way. In Gnome there was a workaround for the same problem. You could simply go to ~/.gvfs in any application and find the samba mounted there.Is there anything like that in KDE? I set up a Samba mount via /etc/fstab for now but that is quite annoying because it fails after each Suspend, changing WLAN Access Points, etc. Then I have to go to the console and manually launch sudo mount -a to get it working again. How can I make things more comfortable?
P.S.: I'm even up for using something else than Samba to talk to my fileserver. However I don't know of anything that would work better in this regard. (NFS would have the exactly same problem for example)
I followed samba setup per thread Samba and Suse: HowTo Set up an openSUSE-Windows Home Office LAN/Network. Versions 11.x and then upgraded my samba from the special repository per advice at Samba broken after latest security update 11.2 - openSUSE Forums I can now see all my boxes on the network from either an XP or linux box and I can access my linux shares from any XP box but I can't access any XP share from my linux box (openSUSE 11.2). I get an error that reads "The file or folder smb://SharedDocs does not exist"I can see the SharedDocs folder under the XP box in samba shares though. And it really does exist on the XP box.
Using SuSE 11./4 on two machines. Successfully set up a server to share a folder. The client is able to read files from the folder, but not write to them.the client perspective, the shared folder permissions are read and write if owner, read only for all otherHowever, the server shared folder has been set up for sharing, and the permissions are set for read and write to all.
One more thing. When the client goes into the samba share, it sees the workgroup. Clicking into that, it sees the name of the server computer. Clicking into that,it sees two folders: "profiles" and "users". Clicking into "users" goes into the shared folder. I tried setting the permissions from the client side on the "users" folder using root privileges to allow reading and writing without any success
I have a Thecus NAS with nfs support running. Now I switched from OpenSUSE 10 to 11.2 on the client side and aren't able to mount my nfs shares. With SuSe 10.0 I didn't have any problems.
The /etc/exports: /raid/home_nas1 192.168.0.24/31(rw,no_root_squash,sync,anonuid=99,anongid=99,no_subtree_check) /raid/soundandmore 192.168.0.24/31(rw,no_root_squash,sync,anonuid=99,anongid=99,no_subtree_check)
On the client side I'm able to see the shares: showmount -e nas1 Export list for nas1: /raid/home_nas1 192.168.0.24/31 /raid/soundandmore 192.168.0.24/31
The client address: inet addr:192.168.0.27
I'm using nfs-3: mount -t nfs nas1:/raid/soundandmore/mnt mount.nfs: access denied by server while mounting nas1:/raid/soundandmore
I can't for the life of me figure out why I cannot browse my own shares from my linux boxes. both run OpenSuSE 11.3 I follow swerdna's tutorials and reboot several times but don't have a clue as to whats going on to prevent me from viewing localhost shares or 2nd linux box shares. I get 'unable to mount location, Failed to retrieve share list from server' error when I click on my workgroup icon in nautilus.
Having a bit of a minor issue with samba on Opensuse 11.4 64 bit. My problem is that I can't view my samba shares in Dolphin although I know they are there. If I bring up dolphin using the Opensuse shortcuts to samba I get this
My computers / drives attached to my network should be viewable here yet they are not. However, if I type in the address directly I can view and access my shares.e.g.
Here is a copy of my smb.conf
Code: [global] workgroup = farcusnet netbios name = ThinkPad passdb backend = tdbsam name resolve order = bcast host lmhosts wins printing = cups
I was playing with my debian server when something went totally wrong while i was editing something on my network interface,i removed those crap that i wrote and left the network interface configuration as it was
Like for example after re-editing my network interface,it was like :
As i did a network restart, i get this error saying :
There is already a pid file /var/run/dhclient.eth0.pid with pid 2802 killed old client process, removed PID file.
What is this error and how can i fix it,because every time im re booting my server i lost my network config.
I have some NFS shares on a server (say Desktop) to which the client (Notebook) is not always connected to. Even the server is not always up. To mount an NFS share in the past, I had some Device-Link icons on my KDE3 desktop. That worked fine. Now, SUSE 11.2 comes with KDE4. The NFS shares are properly configured in /etc/fstab as usual (including 'users' option). And now the big question: What is the official way to mount my NFS share on demand as an ordinary user?
Desktop icons are not KDE4ish. And the Device-Link method doesn't work either, because it apparently doesn't take care of /etc/fstab (i.e. the users option) and insists on root privileges. Also Dolphin is not able to mount NFS shares when I need it because it simply does not show them. The only way to mount my shares is to perform the mount command in a terminal session. But this couldn't be the truth with KDE4, isn't it?
Since OpenSuse 11.2 doesn't reconnect samba shares upon a resume from suspend, I wrote a small, ugly script to do so. It's placed in /etc/pm/sleep.d/66samba-remount
#!/bin/bash case $1 in hibernate) echo "Hey guy, we are going to suspend to disk!" /etc/init.d/smbfs stop ;; suspend) /etc/init.d/smbfs stop ;; thaw) echo "oh, suspend to disk is over, we are resuming..." sleep 15 /etc/init.d/smbfs restart ;; resume) sleep 15 /etc/init.d/smbfs restart ;; *) echo "somebody is calling me totally wrong." ;; esac
and made it executable (as root) chmod +x /etc/pm/sleep.d/66samba-remount
The 15 seconds sleep time is useful to me to postpone the remount after WiFi is back online. Perhaps there are way more elegant ways to do so (check for x times if WiFi is on, for example), but I'm no good at bash, and this serves me well. How do I file a wishlist for 11.3? If someone puts a samba share in fstab, I'd assume he wants it connected mostly everytime (at startup for sure... so why not over a standby?) I hope 11.3 just reconnects in-fstab samba shares in a polished way, out of the box.
I am using the mount command to mount Windows shared folders are another machine on my LAN, to have them show up in the Linux filesystem. The command mounts the folders just fine, however the access is read-only.
In the command, I am also using the -o option to specify a username and password that should have full access. Also, I have used this identical command on my other distros and it seems to work fine. I've Googled high and low, trying to find a way to specify a Samba user/password for authentication. I know one of the other distros had a program that I could specify a Samba user/password to simulate a Windows login.
I installed 11.2 a couple weeks ago on a machine at work, and thru YaST connected to the domain. I was then able to add a printer, and thru nautilis browse to windows computers with shares. Something changed about a week ago and I've played with everything I can think of, read lots of tutorials, and still can't make it work. I'm about ready to format and reinstall from scratch and try again, as I'm out of ideas.
So the way it was before, in nautilus if I clicked on network it would give me a list of all sorts of computers on my domain, and if I clicked on one of the windows machines it would ask me my username/password, and after I entered them, I'd be in.
Now, in nautlis if I click on network it shows me "windows network" and if I click on that it gives me a list of all sorts of workgroups and domains (or something like that). If I click on the one with my domain name, it asks username/password but it doesnt work.
I've tried leaving the domain and rejoining, I've enabled and disabled kerberos, ldap, samba, everything I can think of - although I dont think I had to change those at all from default the first time.
I dont know what I could have done between when it worked and now. I did allow some installation of updates. Shortly thereafter I noticed ssh no longer worked, and after playing with it forever I couldnt make it work, I uninstalled openssh and then reinstalled it from the repository, and it worked again. No idea why it stopped working, but maybe it's related to this domain problem, I dunno.
My main goal at this time is to be able to access windows shares from the linux machine. I don't care if I have to login to linux with my windows domain account or a local account (although all the documentation I've followed said that I should be able to login with a domain username/password too).
To workaround the kio_smb madness, I set up shares to be mounted via /etc/fstab. It works flawlessly until I suspend my laptop. Coming back from suspend, samba mounts are not being re-mounted automatically. Since I'm new to opensuse, I wish to ask you: Is there a polished way to make this happen, in opensuse approach? Or shall I just go and toy with scripts in the init.d (or what is it in suse)? As much as I could figure, I checked in yast, and smbfs service is signed as "Yes".
i want to know what are all possible ways of mounting network drive during boot up.
I want to mount a remote drive which contains some config file of several process,the drive should be mounted at boot up so that all the configuration files are available during boot up.