View Full Version : This should be an easy samba question.
Muahdib
2008-02-24, 08:01 AM CST
so.. I have installed fc8.. most every thing is working, but on my list of problems is my buffalo drive or nas drive.
I have this nas drive set with really simple settings and only one share on it until I get everything working. so heres my problem. I have all the samba software installed and when I manually mount the drive as root like this
mount //192.168.1.150/share /media/nas/ -o username=xxx,password=xxx
everything is ok.. everything is seen and my music player sees all the mp3s on that drive. but when i reboot, I have to run this mount command again.
so where do i put this so that it just works on boot? for all users at this time. I will fix the groups later.
thanks
pete_1967
2008-02-24, 08:21 AM CST
http://fedoraforum.org/forum/search.php?
nick.stumpos
2008-02-24, 09:09 AM CST
you can ass an entry to the /etc/fstab file
Muahdib
2008-02-24, 09:54 AM CST
that I already did nick.. but im missing something im sure.
when used the search function on this web site to try to find the answer.. I found some threads but none of them as actually worked as of yet.. so I posted the question. thanks pete for a link to the search button. really helpful.
my /etc/fstab file looks like this
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
mount //192.168.1.150/share /mnt/nas/ -o username=xxx,password=xxx
is this not correct? or am i doing something wrong?
jazzfan
2008-02-24, 01:33 PM CST
You don't put commands in /etc/fstab. You should put in this format:
path to device mount point drive filesystem options 0 0
path to device should be: //192.168.1.150/share
mount point: /mnt/nas
drive filesystem: for samba it's smbfs
options are: userid=xxx,passwd=xxx
0 0: I don't know about this 2 numbers..... put two 0, it should work
and you don't need to restart to see if this works: just run:
su -c "mount -a"
Muahdib
2008-02-24, 01:37 PM CST
thanks jazzfan,
so your saying that I dont need the mount key word? something like this?
//192.168.1.150/share /mnt/nas username=xxx,password=xxx 0 0
jazzfan
2008-02-24, 01:40 PM CST
well, I'm had never worked with network devices, so I can't tell you if the path to device is correct (that //192.168....). Try it, and if won't work google for fstab network drives.
EDIT: you haven't put drive format
this would look like if you're using samba
//192.168.1.150/share /mnt/nas smbfs userid=xxx,passwd=xxx,rw 0 0
Muahdib
2008-02-24, 01:49 PM CST
thanks man,
believe it or not when I pass the filesystem option, it doesnt work.. when I leave it out it does..
//192.168.1.150/share /mnt/nas/ -o username=xxx,password=xxx
but thanks for your time
GrapeShot
2008-02-25, 12:46 AM CST
Since there was some confusion about the 5th and 6th columns, I thought I'd offer a quick explanation...
The last two columns are for the dump utility and fsck (filesystem check) order, respectively. The dump column will always be wither 1 or 0 and the fsck colum will be 0 for don't check or a number representing the order in which fsck should run on the drive.
Both should be zero for network drives of any type (NFS, Samba, etc.)
The root drive should have dump selected and be the first drive for fsck to operate on - the last two columns are thus 1 1 for /. The /boot partition is 1 2 meaning that dump should operate on the drive and that it is second drive the fsck will check.
Muahdib
2008-02-25, 12:32 PM CST
dude that is some great stuff.. I have no idea whatsoever what you just said tho.
its all good .. its working and thanks to those here who are actually helpful. thank you thank you.
Muahdib
2008-02-26, 12:13 PM CST
ok, im eating crow..
this line I thought worked.. doesn't
//192.168.1.150/share /mnt/nas/ -o username=xxx,password=xxx
so what am I doing worng? and please dont point me to the search button as I have already done that.
pete_1967
2008-02-26, 12:30 PM CST
[IP#]:/[remote_mountpoint] /[local_mountpoint] [filesystem] [options]
e.g. 192.0.0.2:/mnt/disk /mnt/disk nfs defaults 0 0
Or if you want to use smbmount:
mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test
`man smbmount` for more details
If neither of above doesn't work, following should:
//[IP#]/[remote_mountpoint] /[local_mountpoint] cifs username=username,password=password
e.g. //192.168.1.10/nas /media/nas cifs username=username,password=password
Muahdib
2008-02-26, 01:04 PM CST
thanks I will try when I get home and get back to you.
thanks thanks
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.