LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-04-2003, 05:18 AM   #1
agarnier
LQ Newbie
 
Registered: Sep 2003
Location: Paris
Distribution: Redhat 7.3
Posts: 4

Rep: Reputation: 0
Question Auto-mount a network drive


Hello all
I'm quite new using Linux, and I've got the following problem to deal with :

How can I automatically mount a network drive on startup ?
Is the fstab file used after the initialisation of the eth0 device ? I so, what is to be added inside the fstab file to correctly mount the network drive ?
If not so, how can I do that ? Do I have to run a script on startup ? How can I do that ?

I'm using Redhat 7.3 Distro on a Sony Vaio Laptop, DHCP network, the network drive is on a Windows 2k server, FAT32 format

Thx for your help

Regards

 
Old 09-04-2003, 05:53 AM   #2
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 620

Rep: Reputation: 30
Hi

u are looking in the right place. u must edit the /etc/fstab and place the following entry for it to work

//server/share /mnt/dir smbfs username=user,password=xxx 0 0

Cheers
 
Old 09-04-2003, 07:00 AM   #3
agarnier
LQ Newbie
 
Registered: Sep 2003
Location: Paris
Distribution: Redhat 7.3
Posts: 4

Original Poster
Rep: Reputation: 0
Great !!!

It works perfectly, thx a lot

Well, as I'm quite a boring guy, I've got another question :

Same way, is it the same way to connect a network printer ?
 
Old 09-04-2003, 10:06 AM   #4
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 620

Rep: Reputation: 30
Yip u can do it LINUX does everthing

For your solution i am going to consider that u have the printer connected to your windoze oops box, try the following

share your printer with a IP connection (jetdirect). when the printer asks you what port the printer is on creat one using a IP

under X goto system settings -> printing it will then ask you for roots password.
Add new printer
queue type= networked jetdirect with printer= ip address and the port number= 9100

This should sort u out if u plan to connect the printer to your linux box then u need to setup a samber server

hope this helps
cheers
 
Old 10-29-2003, 08:09 AM   #5
blurhappy
LQ Newbie
 
Registered: May 2003
Location: CA
Distribution: Redhat 9.0
Posts: 8

Rep: Reputation: 0
can't mount more than one

I had the same problem. I have two physical HDs in one W2K box. The problem is I can only mount one at a time. Does anyone have a work around.

Here is my fstab exerpt:

//server/disk1 /mnt/disk1 smbfs username=xxx,password=xxx 0 0
//server/disk2 /mnt/disk2 smbfs username=xxx,password=xxx 0 0

If I # one out I can mount the other, but again, not both at the same time. When my laptop boots up it get to the smb portion and hangs.

What do I do???
 
  


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
how do I auto-mount a drive at boot warkrime Linux - Newbie 7 08-03-2013 05:56 AM
auto mount a network drive at boot Dr Gutiemouth Linux - Newbie 14 02-27-2005 02:32 PM
cdrom and floppy drive auto mount problem shams Fedora 1 02-27-2005 08:43 AM
Auto Mount a Network Drive thebutler4 Linux - Newbie 3 06-23-2004 10:56 PM
auto mount of novell drive saavik Linux - Networking 7 08-07-2003 04:12 PM


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