OpenSUSE Network :: Samba Shares Stay Unmounted After Resume From Suspend
Mar 15, 2010
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".
The good news: 11.4 seems to have much better support for my radeon graphics driver which makes many of my workarounds for 11.3 unnecessary
The bad news: whereas previously for 11.2, 11.3 using traditional ifup meant that I could easily restore internet (either wlan0 or eth0) with ifdown/ifup now this seems to have no effect. I haven't investigated further yet since without internet on hibernate or suspend 11.4 is not my grub of choice at the moment
There seem to be quite a few glitches with the 'stable' release of 11.4 but this seems to be the main problem for me. (Minimizing the beta 4 Firefox windows closing them is another...)
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 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
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.
Lately I upraded my Debian using aptitude update/aptitude upgrade - including installing a new kernel (3.0). Since this upgrade I have strange problem with networking. When I suspend my computer and resume it, I do not have connectivity with network:
$ ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. From 192.168.1.1 icmp_seq=1 Destination Host Unreachable
I've upgraded 4 boxes (32- and 64-bit) from Suse 11.1 to 11.2 with no unresolvable issues. Now I'm stuck with my 5th box, a Dell Dimension 8400 desktop box (yes, an old brick, 32-bit). I can suspend to RAM ("suspend") and to disk ("hibernate") fine, but resume seems to fail. In Suse 11.1 I used kpowersave (GUI in the sys tray) to suspend to RAM. For some reason, it couldn't suspend to disk but that didn't bother me. kpowersave relies on the powersaved running.
Note I had upgraded my 11.1 installation to all shiny and new KDE 4.3 stuff, and while KDE 4.3 seems not to use powersaved (and thus kpowersave) all worked fine. Upgrading to 11.2 has removed kpowersave and powersaved. I don't mind switching to another way if only I could find documentation what's being used on KDE 4.3 (and/or Suse 11.2). All I find by googling is that the daemon used is powerdevil, and that I should use a GUI for suspending (this battery monitoring plasma app).
Well, if I do that on this box it simply does -- nothing. So I tried s2ram and a2disk directly:Running s2ram with the --force option works, but the box doesn't resume. Goes on, screen stays blank, mouse and keyboard don't work. s2disk complains about not being able to "stat the resume device file". I gave it the --resume_device /dev/sda6 option, and it hibernated fine. But it doesn't resume. Pressing the power on button just starts Suse anew (and recovers the file system journals, so I assume it thinks it has crashed before).
So I think I have 2 questions: What the heck does Suse 11.2 use for suspend/hibernate and resume? Is there any how-to available to learn what I need to configure? Why can't I resume from successful s2ram or s2disk operations? /var/log/pm-suspend-log or pm-powersave-log don't provide any clues.
There is an intermittent problem with resuming from s2ram. Occasionally, the power button is pressed to resume, the screensaver comes on but the animation is frozen along with the mouse and KB. Sometimes the desktop will show although with the same frozen condition. My swap parition is 2GB. I read in the forums that a small swap partition may cause a somewhat similar condition. I also read a recommendation to disable powersaving and screensaver, again not for my exact symptoms. I would like to find the root cause even if it takes some doing. Otherwise, the system rocks (except Amarok never worked but Kaffeine works for sound). Here are the system specs:
openSUSE 11.3 x86_64 KDE 4.4.4. rel 3 HP xw9400 Workstation AMD 64 Opteron OCZ Vertex 60GB (dedicated system drive-single boot)
I've set up a media box for mythtv based on OpenSUSE 11.3 and LXDE. By default, the screen gets locked prior to a suspend. On resume, therefore, the screen is locked and requires a password to unlock. I need to disable this action. In KDE4, I can do that by going to the power management settings and un-selecting the appropriate check box. In LXDE, however, I can find no such settings. There must be a config file somewhere that I can tweak to turn off the screen lock prior to suspend, but I have no idea what it is.
My ThinkPad X32 doesn't shut off the backlight when I suspend it. It also doesn't resume properly. Shutdown works normally. I'm using OpenSuse 11.3 Gnome. Had the same issue with an install of Linux Mint Debian Edition (201101). It is a well-known Debian issue that has evidently trickled down through Ubuntu to Mint. It also exists in Fedora. In search of a distro that would handle suspend/resume without problems, I first tried Scientific Linux. Suspend/resume worked flawlessly, but I was not happy with the package manager in SL, which leaves it to the user to resolve dependency issues that are automatically handled by Synaptic in Mint/Ubuntu/Debian and by the Package Manager in OpenSuse.
OpenSuse 11.3 Gnome had the same problem - the backlight remained on upon suspend, and resume didn't work at all. I solved this issue by making a simple change in a start-up file in OpenSuse. I'm hoping the solution will work in Mint as well, as it is my favorite distro which I have used for three years. The solution:
1. With OpenSuse: open a terminal and type gnomesu gedit /etc/grub/menu.lst. When prompted, type your root password and click OK.
2. Gedit opens with the menu.lst file displayed. Down the page a bit, you'll see several sections that begin with "###Don't change this comment"
3. The first section gives details for the default boot operating system. Somewhere in this long spec, you'll find "vga=0x314" or vga=(something different for your system).
4. Just before or after this part, type "nomodeset" separated from the vga spec by a space.
5. Save the file and reboot. In OpenSuse, suspend/resume now works normally.
someone could let future readers know where the menu.lst file is located under Linux Mint. In the past, I've found it frustrating to try to edit the menu spec with Mint 10 versions, which use Grub2.
When I resume my system after choosing the "Suspend to RAM" option, the login prompt appears but the keyboard doesn't work at all. (Caps/Num/Scroll don't light up either) The mouse, however, works fine and I'm able to click on the on-screen elements. Since I'm not able to login, I'm forced to reboot and abort the session. Note that this does NOT happen with the "Suspend to Disk" feature. (ie, it works fine).
openSUSE 11.2 KDE4.3 x86_64 (updated) Sony VAIO VGN-CS17G
I've just started using OpenSuse 11.2 KDE. I have KDE4.4 installed. I had this issue with KDE 3.4 as well. My HP Multimedia DV3065 laptop is encountering an issue with suspend/restore. After restoring, the mouse is frozen. I have already tried a few things.
1. Dropping to init 1 and then back up to init 5 did not provide a temporary fix. So this is probably hardware related in some sense (kernel?) 2. I tried a grub option (cant remember what it is now). i8500-reset something like that. It made no difference. 3. I tried modifying my 99ZGrub file per another posts suggested solution. That actually locked up my laptop and I could not reboot (even after a cold boot). I pulled the battery and let it sit for a bit and it booted again
So I have several issues.. 1. I would like suspend to restore my mouse. 2. I have not figured out how to program my Sleep button to Sleep. My menu bar icon has Log Out / Restart / Turn Off. The ALT+F1 menu tab Leave has those plus Sleep and Hibernate.
The PC is a Toshiba laptop model# x205-s9359 running 11.2, KDE 4.3.5. Its video card is an nVidia 8700 GT. For two years now I've been plagued by random flashes, flickers and even missing scan lines on my screen when I use the nVidia drivers (up to and including 195.36.15), so lately I've been using the nv drivers. I miss the effects, etc. but I can live with that. At least I can get my work done, even if the display isn't as fancy as I'd like.
- When I run the nv drivers I can't suspend the PC to RAM or Disk. This means a lot of wasted time waiting for the machine to shut down and reboot every time I leave my desk for any length of time. If I try to suspend to RAM the only thing that happens is that the network connection disconnects then reconnects immediately. Here's the log file.... - If I try to suspend to Disk the PC appears to suspend as expected, but when it resumes it hangs before restarting X, and there's no keyboard or power button response. I have to use alt-prtsc-reisub to reboot. When the reboot is complete the screen shows all the windows, etc that were present before the suspend. Here's that log file.... -When I run the nVidia drivers the suspend/resume functions work perfectly, but I have to put up with all the problems described above. Here's the log file for Suspend to RAM with nVidia, and here's the one for Suspend to Disk.
I've spent hours searching for clues in these forums, on the openSUSE.org site in general, at KDE.org and with Google and I'm sorry to say that most of I've found is horribly out of date, and/or it's way over my head. or (worst of all) not even dated, so I've no idea whether it's current info relevant to my situation or so out of date that I might do real harm if I were to trust it. (RANT: Is it too hard to put a date on an article?... end of RANT) I'd be quite content to use the nv drivers if I could solve the power management issues, but I'd be equally happy to solve the flickering etc. with nVidia drivers.
I'm trying to share some folders over the network, but the shared folders are not visible on another computer. This is through double clicking my computer from the Network list in Nautilus. However, I can access the share by typing the full address(<computer name>/<share name>) in "File > Connect to Server...".Since I can't type the address manually from my blu-ray drive, I need to get the shares to show on the network. What is wrong with my settings?
I often see DBus errors when I unmount network shares (samba). In every instance, they unmount fine. In every instance, I notice no weirdness. Yet these errors randomly come up. There's no pattern to it whatsoever.
I've, for years, been using a little script, as user, to mount network shares, like this: mount.cifs //server/Data ~/Data -o username=robertw Previously it used to be smbmount, but that changed. Anyway, the latest updates have stopped me be able to run this as a user. I tried running it as root and that just won't let me get access to the shares, tells me permission denied. I thought I'd try using fstab. This gives varying degrees of success.
Here are two of the entries: //server/CAD /mnt/CAD cifs credentials=/etc/samba/auth.server.robertw 0 0 //server/Data /mnt/Data cifs credentials=/etc/samba/auth.server.robertw 0 0 The auth.server.robertw clearly shows my correct username and password.
Now, I can't get into the /mnt/Data directory at all, just says permission denied and I can only read from, but not write to, the /mnt/CAD directory. My /mnt directory is like this. drwxr-xr-x 20 500 505 0 2010-05-11 06:21 CAD/ drwxr-x--x 170 500 501 0 2010-04-09 23:18 Data/ I'm on Mandriva 2010 if that's important.
I am working as a Linux administrator in a very small data centre with 5 servers with following routine tasks.
1. Managing SAMBA shares and giving user specific access for the shares. 2. Scheduling backup of some mount points with rsycn to store data in remote hard disk 3. User and group administration, with sudo access. 4. Creating and Managing Xen Virtual machines and giving access to other project teams. 5. Automating some tasks with Shell Scripting. 6. Managing FTP server for user uploads.
I have practiced a lot in my home laptop without RHEL training, Cleared RHCE and LPIC1. I want to do some advanced system admin tasks, but do not have option in my current data centre. With Above skills is it possible to get a job ?
From Konqueror/Dolphin is possible to access samba shares. If your computer is joined to a Active Directory domain and you use a domain user, you can access samba shares with smb://server.domain/share and you are not ask for user/pass (you use a kerberos tiquet). Kde programs as Amarok, K3b, ... can access files in samba shares without problem. But other programs, specially gnome programs (including the popular OpenOffice), are unable to use files in a samba share. If instead of using Konqueror/dolphin you use Nautilus, there is no problem because it maps the share to a local folder ($HOME/.gvfs/share in sever/) and the program are able to access files in samba shares without problems as the folder is mounted locally (as if you use cifs.mount). Its a problem to use konqueror/dolphin and have to change to nautilus to access samba shares.
If you use Windows you can mount it in an easy way. That's what I try to do from konqueror, not having to open a konsole and be able to mount the share in an easy way. I've tried with smb4k, but is has not worked for me (tried in 2 OpenSuse 11.3 and 1 opensuse 11.2). What Nautilus does when accessing a samba shares like smb://server.domain.dom/share is to execute the command: [URL]... What I try is to do the same, but just form Konqueror/Dolphin. I'd like to add a button to Konqueror/dolphin that pressing the button and if the URL points to a samba share, the share is mounted in $HOME/LocalNetwork/server/share. As I say, it can be as easy as executing the gvfs-mount, but don't know how.
I have an Asus EeePc 1001PX and on resume I have "Network Management disabled", neither wired nor wireless interface can be configured, the NM icon is greyed out. running ifconfig shows eth0 and wlan0 have disappeared completely.
I found 2 options: 1. https://bugs.launchpad.net/ubuntu/+bug/555571 2. Network management disabled after start on 11.2 - openSUSE Forums
but I don't have the /var/lib/NetworkManager folder at all
My laptop won't resume after it suspends. It works fine under win 7 so it's not the hardware. The light says it's on and it's pretty much a blank screen. I'm not sure whether it's operational but the screen is off. It has exactly the same resault a waiting for the blank screen except it won't go back on.
I've just upgraded from 9.10 to 10.04 via the upgrade manager. Prior to the upgrade I was able to suspend and hibernate without any problems. Now that I have upgraded to 10.04, I can suspend however when I resume I am back at the gdm login prompt, logging in again with a new session.Having just done another test whilst writing this, it actually appears that if I select suspend from the top right I am suspended and can resume my session. If I close the lid on my laptop (which is supposed to suspend) I am logged out and suspended.Also, Hibernate doesn't work as well - sometimes it never actually hibernates (just sits on a black screen) and sometimes it doesn't resume (it's never hibernated and resumed correctly since the upgrade)
I'm evaluating OpenSUSE and have installed 11.3 with Gnome (from the latest liveCD) and have it all running fine in a VM at the moment. We are looking at using it for an iSCSI/NFS/Samba server and have it allrunning and it is all configurable from Yast. However I can't seem to get Nautilus to play ball and allow sharing of Samba/NFS shares under folder properties (I'm fairly positive I've done this fine in Ubuntu). All I ever get is Usershare/Gnome sharing (which I believe is Webdav).
I must say I am so impressed with OpenSUSE, the partition manager is just a dream to use and everything works really well it would just be really nice to be able to share NFS/Samaba shares from the file manager. There doesn't seem to be any other file managers in the repositories so I'm a bit stuck now.