mounting problem when not connected to home LAN

xSauronx

Lifer
Jul 14, 2000
19,582
4
81
pretty straightforward, i may be off on the error but its close enough

i mount 2 directories over my home LAN to my laptop

here are my fstab entries:

192.168.1.5:/home/xsauronx /home/xsauronx/actium nfs rsize=1024,wsize=1024 0 0
192.168.1.5:/multimedia /var/multimedia nfs rsize=1024,wsize=1024 0 0

when Im attached to my lan, i have no problems. when im away, or not connected the 1st entry gives 0 errors

however, i get a "waiting for..." as per the thread title for the second when I boot up. it can take a while to stop waiting and continue loading. this is on Ubuntu 7.10

any ideas why this is happening?

 

skyking

Lifer
Nov 21, 2001
22,705
5,829
146
I'm thinking DNS. The server can't resolve the client and you get the classic hang.
Try making a hostfile entry at the server for your remote wan IP to test.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
NFS mounts default to 'hard' which means they'll try an operation indefinitely until the server comes back up so both should give you problems. My guess would be for some reason it's mounting the second first which is why it's the one you're seeing as problematic.
 

xSauronx

Lifer
Jul 14, 2000
19,582
4
81
Originally posted by: Nothinman
NFS mounts default to 'hard' which means they'll try an operation indefinitely until the server comes back up so both should give you problems. My guess would be for some reason it's mounting the second first which is why it's the one you're seeing as problematic.

after reading this i decided to comment out the second and see if i got an error from the first

no error. just an oddity?

is there a way i could have them automatically mount if theyre detected (like a USB flash drive) instead of putting them in fstab and having it cause me a problem?

it seems like ive read about such a possibility, but its been a while and i may just be confusing it with something else.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
The only thing I can think of is that something is touching /var/multimedia early on forcing it to try and find the server.

To get on demand mounting you could try to setup an automounter but I have no idea how well that would work with your home directory.
 

Netopia

Diamond Member
Oct 9, 1999
4,793
4
81
Why not just make a script and "buttonize" it on your taskbar? When you are home, push the button when you log in. When you are away, no worries.

Just a thought.

Joe
 

xSauronx

Lifer
Jul 14, 2000
19,582
4
81
Originally posted by: Netopia
Why not just make a script and "buttonize" it on your taskbar? When you are home, push the button when you log in. When you are away, no worries.

Just a thought.

Joe

good idea. ubuntu has some software for this in one of the repos, as it turns out, ill play with it sometime this weekend, im not sure why i didnt think of it before :)
 

Netopia

Diamond Member
Oct 9, 1999
4,793
4
81
I know why... because you know more than I do about this stuff. Therefore, I've done a lot with lower level things, like writing a scripts and then making buttons on my task bar. BTW, you don't need any special software to do it, just add a new program manually, point to your script, and then choose an icon for the button and you're done.

Joe
who is glad he can give back for a change!
 

xSauronx

Lifer
Jul 14, 2000
19,582
4
81
Originally posted by: Netopia
I know why... because you know more than I do about this stuff.

not likely, i dont know anywhere near as much as i wish i did, and i have yet to toy around with any scripting whatsoever

*shrug* probably a good time to start :)