Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-16-2005, 06:49 PM
|
#1
|
Member
Registered: Oct 2002
Location: Maryland
Distribution: SUSE 10.1 and 10.2
Posts: 44
Rep:
|
Problems with SMB shares after suspend/restore
I'm having a problem on a laptop running SUSE Linux 10.0: After doing a suspend to disk and then a restore, the SMB shares, which are automounted from /etc/fstab, don't work. I have to unmount and then remount them, which doesn't always work -- for example, if Konqueror was showing a directory in one of the shares, I have to kill Konqueror after the restore, and then I can't unmount the share.
Is there a way around this problem that anyone knows of? Are there some fstab parameters that I need? Here are the entries in fstab:
Code:
//linkstation/Pictures /Pictures smbfs auto,password= 0 0
//linkstation/steve /home/steve/mnt/linkst_steve smbfs auto,rw,credentials=/home/steve/linkstcreds,uid=steve,gid=users,nomand 0 0
BTW, these shares are on a NAS drive, which gives practically no options for these -- so it's not like I can change some options in /etc/samba/smb.conf.
|
|
|
11-17-2005, 11:51 AM
|
#2
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
From man hibernate.conf:
UnmountFSTypes <fs type> : Unmounts any filesystems of the given types. This is most useful for network filesystems such as smbfs and nfs.
so try to add this in /etc/hibernate.conf:
Code:
UnmountFSTypes smbfs
Mount //linkstation/steve //linkstation/steve
|
|
|
11-17-2005, 06:02 PM
|
#3
|
Member
Registered: Oct 2002
Location: Maryland
Distribution: SUSE 10.1 and 10.2
Posts: 44
Original Poster
Rep:
|
Thanks for the tip; I'll try it. Strange, though, I don't have /etc/hibernate.conf and "man hibernate.conf" didn't show anything either.
|
|
|
11-18-2005, 03:26 AM
|
#4
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
So it means you are using suspend1 and not suspend2.
I don't if there is an option or a configuration file for suspend1. If there is not, you have to do it yourself (umount them before, remount after)
How do you launch the hibernation?
By pressing a button, by calling a script? like swsusp (man swsusp)
|
|
|
11-18-2005, 06:41 PM
|
#5
|
Member
Registered: Oct 2002
Location: Maryland
Distribution: SUSE 10.1 and 10.2
Posts: 44
Original Poster
Rep:
|
There are several ways to hibernate, e.g. close the lid, select "Suspend Computer" from the KDE log out menu. I'm not sure what script is called to do so. "man swsusp" and "info swsusp" did work, but didn't have much information. I'll look around on the system and online for more.
|
|
|
11-19-2005, 11:40 PM
|
#6
|
Member
Registered: Oct 2002
Location: Maryland
Distribution: SUSE 10.1 and 10.2
Posts: 44
Original Poster
Rep:
|
Fixed. The suspend scripts for my machine are in /usr/lib/powersave/scripts; the key one was sleep_helper_functions, which has a function to unmount FAT and NTFS drives before suspending. I added "smbfs" as a type to unmount. Had to fiddle a little bit with the remounting logic, but got it to work.
I don't know how specific these scripts are to SUSE, but if anyone wants to see what I did, let me know and I can post the revised script.
|
|
|
All times are GMT -5. The time now is 12:00 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|