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 :newbie: |
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 |
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 ? |
Yip u can do it LINUX does everthing :D
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 |
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??? |
All times are GMT -5. The time now is 09:12 PM. |