View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Autofs samba issues
PostPosted: Tue Aug 08, 2006 10:18 pm 
Offline
Joined: Sat Jan 07, 2006 7:21 pm
Posts: 24
I've been trying all night to get autofs working with samba using this guide: http://www.knoppmythwiki.org/index.php? ... +and+samba

...and haven't had any luck.

This is my /etc/auto.master file:
Code:
# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(5).
# /var/autofs/misc      /etc/auto.misc
# /var/autofs/net               /etc/auto.net
# KNOPPIX automounts for floppy and cdrom(s), see knoppix-autoconfig
/mnt/auto     /etc/auto.mnt   --timeout=2
/var/autofs/usb /etc/auto.usb   --timeout=2
#/mnt/auto       /etc/automount.sh       --timeout=2
/myth /etc/auto.samba.mnt --timeout=2 --ghost

This is my /etc/auto.samba.mnt file:
Code:
music -fstype=smbfs,credentials=/home/mythtv/.smbpassword ://xpBox/Music


This is my /home/mythtv/.smbpassword file:
Code:
username=myth
password=myth


Lastly I have done:
Code:
/etc/init.d/autofs start
update-rc.d autofs defaults

as well as restarting the computer multiple times.
Now, this line works fine for me (after creating the /myth/music folder):
Code:
smbmount '\\xpBox\Music' /myth/music -o username=myth,password=myth

Does anyone have any ideas? (and is there any way to view a log file of some sort for autofs?)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 09, 2006 5:26 am 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
1 Issue.

autofs won't mount if a directory already existing (/myth in this case)

Change in auto.master

Code:
/myth /etc/auto.samba.mnt --timeout=2 --ghost

to
Code:
/myth/music/network /etc/auto.samba.mnt --timeout=2 --ghost


Do not create network directory, autofs will automatically create /myth/music/network/music directory.

Personally what I do is automount my shares to /mnt/ and them symlink to mounts.


/etc/auto.master

Code:
mnt/network /etc/auto.samba.mnt --timeout=2 --ghost

/etc/auto.samba.mnt
Code:
win-media fstype=smbfs,credentials=/home/mythtv/.smbpassword ://192.168.0.100/My_Media

Code:
#Add username/password to /home/mythtv/.smbpassword
echo username=mythtv >> /home/mythtv/.smbpassword
echo password=mythtv >> /home/mythtv/.smbpassword

#Stop & Start autofs
/etc/init.d/autofs stop
/etc/init.d/autofs start

#Create links in appropiate directory for media shares
ln -s /mnt/network/win-media/pictures /myth/gallery/win-media-pictures
ln -s /mnt/network/win-media/music /myth/music/win-media-music
ln -s /mnt/network/win-media/video /myth/music/win-media-video


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 09, 2006 6:19 am 
Offline
Joined: Sat Jan 07, 2006 7:21 pm
Posts: 24
Actually, I only created that music folder when testing that last manual mount command. For most of the time that I spent banging my head I had the music folder removed.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 09, 2006 8:47 am 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
Quote:
Actually, I only created that music folder when testing that last manual mount command. For most of the time that I spent banging my head I had the music folder removed.


It is the /myth folder that cannot exist given your auto.master file. Which probably is not a good idea to delete /myth as it holds the media and more for MythTV.

make your auto.master file

Code:
/myth/music/network /etc/auto.samba.mnt --timeout=2 --ghost


specify any directory that does NOT exist.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 09, 2006 10:29 am 
Offline
Joined: Sat Jan 07, 2006 7:21 pm
Posts: 24
:oops: I gotya, I think I will go the symlink route. Thanks for all of your help :)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu