LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mouting over a network (bootup) (https://www.linuxquestions.org/questions/linux-general-1/mouting-over-a-network-bootup-21973/)

robeb 05-28-2002 12:21 AM

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

verigoth 05-28-2002 03:24 AM

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**

MasterC 05-28-2002 06:49 AM

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

acid_kewpie 05-28-2002 06:59 AM

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.

robeb 05-28-2002 09:53 PM

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 03:36 PM.