LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2005, 05:49 PM   #1
sjr
Member
 
Registered: Oct 2002
Location: Maryland
Distribution: SUSE 10.1 and 10.2
Posts: 44

Rep: Reputation: 15
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.
 
Old 11-17-2005, 10:51 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
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
 
Old 11-17-2005, 05:02 PM   #3
sjr
Member
 
Registered: Oct 2002
Location: Maryland
Distribution: SUSE 10.1 and 10.2
Posts: 44

Original Poster
Rep: Reputation: 15
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.
 
Old 11-18-2005, 02:26 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
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)
 
Old 11-18-2005, 05:41 PM   #5
sjr
Member
 
Registered: Oct 2002
Location: Maryland
Distribution: SUSE 10.1 and 10.2
Posts: 44

Original Poster
Rep: Reputation: 15
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.
 
Old 11-19-2005, 10:40 PM   #6
sjr
Member
 
Registered: Oct 2002
Location: Maryland
Distribution: SUSE 10.1 and 10.2
Posts: 44

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
permission problems with mounted smb shares mackayr Linux - Networking 3 12-29-2004 11:48 PM
cant connect to smb shares murray_linux Slackware 3 02-02-2004 11:35 AM
SMB shares to OS X MadTurki Linux - Networking 6 12-02-2003 06:59 PM
making smb shares viewable from smb client via web browser scottpioso General 3 11-10-2003 04:25 PM
Problems connecting to samba shares from w2k or XP systemafter configuring smb.conf f marvc Linux - Software 0 06-09-2003 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration