LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-11-2005, 02:08 PM   #1
YaAqoB
LQ Newbie
 
Registered: Dec 2004
Location: Glendene, Auckland, New Zealand
Distribution: Ubuntu 5.04
Posts: 18

Rep: Reputation: 0
Help required!!!! Mounting a network drive at Boot up


Hello.
I have a file server running Ubuntu and a workstation dual booting with XP Pro and Ubuntu.
With XP i have mapped the network drives & and can read/write no worries what so ever. Easy...
With Ubuntu I have added the mount info into my fstab file........but when ever I boot into Ubuntu none of my icons appear, it does not mount the network drive and after about 3 minutes Ubuntu slows down to the point where I have to hit the reset button.
Now if I start ubuntu, edit the fstab file and comment out the network drive line and then save/restart the computer starts Ubuntu sweet as no worries.
It runs fine.
I then edit the fstab file, uncomment the network drive entry, save and then go:
sudo mount -a
it mounts the network drive and every thing runs mint as...... untill I have to restart where I have to do the above process again.
I can't see why it fails on bootup but then runs fine if you manually mount it after boot.
Below is my fstab contents:
Please Help!!!

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda2 / ext3 defaults,errors=remount-ro 0 1
/dev/hdc /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
/dev/hda1 /mnt/WindowsDrv ntfs umask=0222 0 0
/dev/hdb1 /mnt/WindowsApps ntfs umask=0222 0 0
//192.168.1.2/ServerStorage /mnt/networkdrive smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0
 
Old 08-11-2005, 02:20 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Try this(from mount man page):
Code:
_netdev
                     The  filesystem  resides  on  a  device that
                     requires network access (used to prevent the
                     system   from   attempting  to  mount  these
                     filesystems  until  the  network  has   been
                     enabled on the system).
and see what happens....
 
Old 08-11-2005, 02:23 PM   #3
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Try this(from mount man page):
Code:
_netdev
                     The  filesystem  resides  on  a  device that
                     requires network access (used to prevent the
                     system   from   attempting  to  mount  these
                     filesystems  until  the  network  has   been
                     enabled on the system).
and see what happens....

edit: eg:
Code:
//192.168.1.2/ServerStorage /mnt/networkdrive smbfs _netdev
edit2: don't know how I posted 2 times times

Last edited by Tuttle; 08-11-2005 at 02:25 PM.
 
Old 08-11-2005, 02:35 PM   #4
YaAqoB
LQ Newbie
 
Registered: Dec 2004
Location: Glendene, Auckland, New Zealand
Distribution: Ubuntu 5.04
Posts: 18

Original Poster
Rep: Reputation: 0
So if I make it look like this....

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda2 / ext3 defaults,errors=remount-ro 0 1
/dev/hdc /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
/dev/hda1 /mnt/WindowsDrv ntfs umask=0222 0 0
/dev/hdb1 /mnt/WindowsApps ntfs umask=0222 0 0
//192.168.1.2/ServerStorage /mnt/networkdrive smbfs _netdev credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0

It will not mount the network drive untill the network has been established??
Wicked I'll give it a go when I get home.
 
Old 08-11-2005, 09:45 PM   #5
YaAqoB
LQ Newbie
 
Registered: Dec 2004
Location: Glendene, Auckland, New Zealand
Distribution: Ubuntu 5.04
Posts: 18

Original Poster
Rep: Reputation: 0
I get an error in that line when I put _netdev in there.
Where abouts inthe line am I supposed to put it?
 
Old 08-12-2005, 08:13 AM   #6
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
hmm, I thought that would work, what's the error exactly? it may be that you need all the fields filled in (see man fstab) or that the credentials field _is_ the options field ie. put "_netdev" at the end of the credentials field.... just a guess really!

edit: yeah, thinking about it, the "credentials" field is the first option, the final fields (the two zeros on the end) are the fs check options for the line above. So, try:
Code:
//192.168.1.2/ServerStorage /mnt/networkdrive smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777,_netdev 0 0
edit2: it doesn't show very clearly but the last options read:

credentials=/root/.smbcredentials,dmask=777,fmask=777,_netdev 0 0

ok.

Last edited by Tuttle; 08-12-2005 at 08:18 AM.
 
  


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
Mounting a network Drive ruslombia Linux - Networking 1 08-28-2005 04:17 AM
mounting drive over network spideywebsling Linux - Networking 7 07-20-2004 10:27 PM
mounting network drive viper52b Linux - Networking 2 03-10-2004 12:59 PM
mounting network drive on boot Acidwarp01 Linux - Networking 5 08-30-2003 08:58 AM
mounting a network drive... Sonny Linux - Security 6 01-24-2002 12:08 PM

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

All times are GMT -5. The time now is 12:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration