Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-28-2002, 01:21 AM   #1
Registered: May 2002
Posts: 113

Rep: Reputation: 15
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
Old 05-28-2002, 04:24 AM   #2
Registered: May 2002
Posts: 179

Rep: Reputation: Disabled
of /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


**finally a i can go to bed**
Old 05-28-2002, 07:49 AM   #3
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
Old 05-28-2002, 07:59 AM   #4
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971
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.
Old 05-28-2002, 10:53 PM   #5
Registered: May 2002
Posts: 113

Original Poster
Rep: Reputation: 15
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


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
keep having to load network driver at bootup Dswissmiss Linux - Software 2 04-20-2004 04:55 AM
Activating network interface at bootup B1TW1SE Linux - Networking 4 08-22-2003 05:40 AM
Problems trying to get Network running on bootup jimmilly Linux - Networking 1 08-02-2003 02:42 PM
Network Interface Config at Bootup lyew Linux - Networking 1 05-03-2003 09:57 PM
Mounting network drives on bootup manderso Linux - Networking 3 12-17-2001 06:16 AM

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration