Mouting over a network (bootup)
Is there anyway to mount over a network at bootup?
mount -t smbfs //host/shared /mnt/shared You have to enter a passwd to mount the file. Is there a way to write a script that would load at bootup and do this? - Thank you |
of course...in /etc/fstab...your example would look like this:
//host/shared /mnt/shared smbfs username=xx,password=xx 2 0 you might want to play around with the '2 0' to change the attributes for your system verigoth **finally a member...now i can go to bed** |
ha ha ha ha, at least on your "graduating" reply it was very useful to the person you helped, and not something like a new post called "I am now a member".
Since you mentioned it, I was wondering what the "2 0" or "0 0" or whatever stands for. Thanks |
the two numbers define what checks should be made on the drive on mounting and unmounting. the first is used by "dump" to say wether or not it should be dumped. the second is used by "fsck" to defined the mount order and type of cehck to perform. both will default to 0 if not included tho. 0 0 is most common for non system mounts like cdrom or samba.
|
Thanks, verigoth. I did the following...just used smb and 0 0 and it works fine. I'll probably play around with it more when I get some time.
//host/shared /mnt/share smb username=me,password=pass 0 0 |
All times are GMT -5. The time now is 05:13 AM. |