LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-06-2011, 04:28 PM   #1
kross301
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Rep: Reputation: 0
NFS mount


I dont think this is an uncommon issue as far as linux goes.. But i searched and couldnt find the exact fix for my issue. Basically I can mount my nfs shares, mount -a, but, they wont mount after a reboot automatically. I had the same problem with samba. So i figured maybe a permission issue, reinstalled. Same thing. My fstab entry is the same on another laptop I have that works. But the other one is 64 bit. So the images i used to install them is different. Wondering if that might have something to do with it. So where can i put this mount -a in the startup sequence? that would fix my issue. Any help would be appreciated.

im thinking its mounting before the network is up, so it fails. Where would i put _netdev in the fstab? How would that look exactly?
 
Old 02-06-2011, 05:03 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
_netdev in the options sections. e.g.
Code:
192.168.0.11:/mnt/NFS /NFS nfs _netdev 0 0
 
Old 02-07-2011, 01:56 PM   #3
kross301
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Original Poster
Rep: Reputation: 0
No, same thing it didnt mount properly. How would i launch mount -a after the network starts. Is there a file i could easily drop this into? Or a shell script that starts as root. How would you su in a shell script? like putting the password in kind of thing.
 
Old 02-07-2011, 04:47 PM   #4
darkduck
Member
 
Registered: Jan 2011
Location: Cyprus
Distribution: Kubuntu, OpenSuSE
Posts: 502

Rep: Reputation: 26
Post

I have similar issue in Ubuntu (CIFS, not NFS). Ended up by just adding this folder into Places. Just click it when I need - it automatically mounts that time.
I also have Kubuntu and things are little bit easier there: I added a script there which mounts the network drive.
To do this, I put script into ~/.kde/Autostart
Script should be set as executable (chmod +x) and root should have permissions. It's easier to create it via sudo kate

Code:
#! /bin/sh 
#reset counter and file
counter=0
file="/tmp/file.txt"
echo $counter > $file

until ping -w 1 fnd | grep 'icmp'
do
  sleep 1
  let "counter += 1"    #or counter=`expr $counter + 1`
#get ipconfig replies and counter into file
  ping -w 1 fnd | grep 'icmp' >> $file
  echo "$counter" >> $file
done

#main part
mkdir -p /mnt/fnd >> $file
mount -t cifs //fnd/public /mnt/fnd -o guest,nolinux,iocharset=utf8 >> $file
#check script has worked
google-chrome
Unfortunately, similar approach in Ubuntu (GNOME) does not work. Don't know why.
 
  


Reply



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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
[SOLVED] mount.nfs: mount to NFS server 'rpcbind' failed w1k0 Slackware 4 03-30-2010 03:45 PM
mount.nfs: mount to NFS server 'jesse' failed: timed out, retrying keupie Linux - Networking 3 06-05-2009 07:03 PM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:07 PM.

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