Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Samba mount and hostname issues, Getting Samba to mount a drive with hostname
Arj
post Aug 31 2006, 03:44 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 31-August 06
Member No.: 7,111



Guys

I have a simple setup. WinXP machine, Mandriva Linux box and a 300Gb Maxtor NAS which I use for backups. Netgear firewall/router hooks it all up acts as a DHCP server.

I am using Samba to see the windows machines and NAS. I'm trying to have the NAS mount automatically when the Linux box boots. It works fine when I have this in the /etc/fstab file:

//192.168.88.6/linux /mnt/mss smbfs credentials=/.smbpasswd,uid=ahagop 0 0

(the ip address is the NAS - statically allocated by DHCP server)

I then added an alias in the /etc/hosts file:

192.168.88.6 backupdrive backupdrive

and change the fstab to

//backupdrive/linux /mnt/mss smbfs credentials=/.smbpasswd,uid=ahagop 0 0

But the drive does not mount. I can ping backupdrive and it resolves the ip address.

I think that when the system boots it tries to mount the samba drives before it loads the hostname. Just a guess.

How do I resolve this. I don't want to hard code IP addresses everywhere.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 11th December 2017 - 04:02 PM