Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a small home network consisting of two computers. One is running Windows 7 and the other Ubuntu 10.04. Neither computer is permanently on.

I am trying to set up file sharing between the two. Ideally the Windows files will be mounted whenever the Windows machine is on, and unmounted when it is not.

Currently I have added an entry to /etc/fstab to mount the share. This appears to vaguely work. However, I have noticed that it takes considerably longer to login to the Ubuntu computer if the Windows computer is not turned on. It exhibits bizarre behaviours if the Windows machine is not turned on, including not being able to interact with the desktop.

Is there a way to remove this delay, or should I set up the share in a different way?

share|improve this question
add comment

3 Answers

You could use autofs to mount the share only when it's needed. There is even some documentation for Ubuntu about this.

share|improve this answer
add comment

In the Gnome file manager Nautilus you can directly access windows shares like this: Hit Ctrl+L so that the Location buttons turn into an edit filed. There you write smb://192.168.1.1 and hit enter. (Replace 192.168.1.1 with IP or hostname of your Windows computer.) It should ask for your windows Password and then show all shares.

For accessing your Linux files from Windows, you can use WinSCP.

share|improve this answer
add comment

Isn't simpler to mount-as-needed? Most applications does not deal with appearing/disappearing mountpoints and mounting in Gnome/Ubuntu/... Windows Share is as easy as filling several fields in dialog box.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.