LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-06-2009, 04:09 PM   #1
CapnStank
Member
 
Registered: Oct 2009
Distribution: Fedora, HPUX
Posts: 31

Rep: Reputation: 2
Mount Network share on boot


Hi Everyone,

I'm running Fedora 11 and need to have a cifs share mount on boot. What do I need to do?

I can mount the drive through command line by typing
Code:
mount.cifs //192.168.1.249/xserve/shared /home/sasktel/mnt -o username="guest"
What do I need to edit to allow this to mount on boot?

I've used Fedora for a little while now but my workplace has asked that I develop a BitTorrent tracker service to demonstrate how it works to a few departments in our company and I'll be diving into a bit more in depth things. If ya got any questions for me just ask!

-Capn
 
Old 10-06-2009, 04:23 PM   #2
tobias_r33per
Member
 
Registered: Aug 2003
Location: Sydney
Distribution: Fedora Core 21, Arch, Ubuntu MATE 15.04
Posts: 49

Rep: Reputation: 17
login as root:

Quote:
su
modify "vim /root/.smbcredentials"

Add the following lines (change winusername and winpassword to the correct username and password for the samba/windows server you want to connect to):

Quote:
username=winusername
password=winpassword
SAVE THE FILES:

Quote:
chmod 700 /root/.smbcredentials
modify the "vim /etc/fstab" to include your share

insert share name and server where appropriate


Code:
//192.168.1.249/xserve/share /home/sasktel/mnt cifs  credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 1

Last edited by tobias_r33per; 10-06-2009 at 04:31 PM.
 
Old 10-06-2009, 05:03 PM   #3
CapnStank
Member
 
Registered: Oct 2009
Distribution: Fedora, HPUX
Posts: 31

Original Poster
Rep: Reputation: 2
I've added what you posted above but get a blank /home/sasktel/mnt folder. Here's my /etc/fstab
Code:
#
# /etc/fstab
# Created by anaconda on Mon Oct  5 15:30:28 2009
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=6e50cf4c-132e-4b66-bd33-849a04fe902a 	/boot                   ext3    defaults        			1 2
/dev/mapper/vg_tracker-lv_root 			/                       ext4    defaults        			1 1
/dev/mapper/vg_tracker-lv_swap 			swap                    swap    defaults        			0 0
tmpfs                   			/dev/shm                tmpfs   defaults        			0 0
devpts                  			/dev/pts                devpts  defaults        			0 0
sysfs                   			/sys                    sysfs   defaults        			0 0
proc                    			/proc                   proc    defaults        			0 0
//192.168.1.249/xserve/share 			/home/sasktel/mnt 	cifs  	credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 1
And the .smbcredentials file:
Code:
username="guest"
password=""
This is where I assume I've messed up. Should I remove the quotes? If so, what do I need to replace password with to imply that no password is set?
 
Old 10-06-2009, 07:19 PM   #4
tobias_r33per
Member
 
Registered: Aug 2003
Location: Sydney
Distribution: Fedora Core 21, Arch, Ubuntu MATE 15.04
Posts: 49

Rep: Reputation: 17
try this instead:

modify /etc/fstab to use this instead to see if this works better

Quote:
//192.168.1.249/xserve/share /home/sasktel/mnt cifs username=guest,iocharset=utf8,file_mode=0777,dir_mode=0777 0 1
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount windows share export to samba share -> improve network performance tuning newuser77 Linux - Server 1 07-23-2008 11:28 AM
Unable to mount NFS share through network IP hot_wired13 Linux - Server 1 09-02-2007 07:29 PM
FSTAB: My Win Share Wont Mount @ Boot, but will when I sudo mount -a...please help! TruANTOlogy Ubuntu 8 06-20-2006 08:00 AM
Cannot mount an NT network share pharpe Linux - Networking 3 04-29-2002 07:58 AM
Mount network share at startup. Ge0ph Linux - Networking 3 10-17-2001 08:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:21 AM.

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