View previous topic :: View next topic |
Author |
Message |
fezz n00b
Joined: 20 May 2005 Posts: 4
|
Posted: Wed Jun 01, 2005 11:00 pm Post subject: |
|
|
I followed everything up to the the reboot.
After reboot I tried to start autofs but got the following error:
# /etc/init.d/autofs start
* Starting automounter...
* No autofs support available
I have the automounter has been added to the kernel exactly as in the steps.
I am using 2.6.11-r9 version of the kernel.
any thoughts?
thanks. |
|
Back to top |
|
|
jsosic Guru
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Sat Jun 04, 2005 10:39 pm Post subject: |
|
|
Have you copied your new kernel bzImage over the old one which is places in /boot dir? autofs must be turned on, either as a builtin kernel option <*>, or as a module <M>. You've messed up something with the kernel configuration, or you forgot some step. |
|
Back to top |
|
|
random-feed n00b
Joined: 12 May 2005 Posts: 20
|
Posted: Fri Jun 24, 2005 8:52 am Post subject: |
|
|
I am having a problem with autofs, and I could not find any threads, posts or any other documents discussing a similar situation, so here it is:
I use autofs to automount the cdrom drive on my home router, a PII 350Mhz box. I want to share the mounted device with samba. Mounting works fawlessly, and I am able to access the share. However, once accessed via smb:// , the device will NEVER unmount. I read about a bug with autofs unmounting, but this is not the case -- if I stop or restart samba, the cdrom gets unmounted, i have the --timeout=1 option, so this is very easy to diagnose. I am certain no other clients are hooked to the share.
So, my question is: is there a way to make samba leave the shared dir alone when no activity is present, so that it can be umounted?
PS: My first Linux was Gentoo, installed 2 months ago. I used XP before that, so please excuse my ignorance. I did a lot of reading, but it never seems to be enough
-----------------
I got it - all it took was sharing the autofs mountpoint, not the dir of the mounted device. That was an easy one _________________ If in doubt, mumble.
Last edited by random-feed on Tue Aug 16, 2005 5:35 am; edited 1 time in total |
|
Back to top |
|
|
jsosic Guru
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Fri Jun 24, 2005 10:07 am Post subject: |
|
|
That's more like a Samba question I'm not familiar with it so I wouldn't know... |
|
Back to top |
|
|
jsosic Guru
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Sun Aug 14, 2005 12:32 am Post subject: |
|
|
I've been playing with NFS, so I'm thinking about changing sections 4 & 5 of this howto. Local filesystems description would stay the same, only that few more lines would be added, and a little bit more explanation for NFS volumes. Do you think that would be ok, or should I write completely new Howto for NFS? |
|
Back to top |
|
|
kamikaze04 Guru
Joined: 28 Mar 2004 Posts: 366 Location: Valencia-Spain
|
Posted: Sun Aug 14, 2005 5:11 pm Post subject: |
|
|
I like the howto as it is. It is clear and easy to understand. I would write a howto for non-local systems, and put a link from this howto.
But it is only my opinion.... _________________ Todo lo que quisiste saber sobre google en: www.noticiasgoogle.es |
|
Back to top |
|
|
kernelcowboy Guru
Joined: 14 Feb 2004 Posts: 391 Location: New Plymouth, New Zealand
|
Posted: Tue Dec 06, 2005 4:02 am Post subject: |
|
|
I had automounter support for both versions v4 and v3 compiled into the kernel. the "why" isn't important.
automounting worked, but --ghost did not.
i was about to post to this forum and ask why --ghost isn't working. when i thought, oh, may be i have v3 compiled in too. i checked, and indeed I did. I disabled v3, recompiled. --ghost works fine now.
So, instead of writing to ask, I'm writting to hopefully help someone else out.
cheers |
|
Back to top |
|
|
Braempje l33t
Joined: 31 Jan 2003 Posts: 748
|
|
Back to top |
|
|
kernelcowboy Guru
Joined: 14 Feb 2004 Posts: 391 Location: New Plymouth, New Zealand
|
Posted: Tue Dec 13, 2005 9:40 am Post subject: |
|
|
I have finally set it all up; I think the HOWTO was awesome, and got me almost all the way there. As a sanity check, here's what i did. Comments?
I have a small lan in my home office. I run gentoo on all my machines. samba. the desktop can mount a cd, floppy and usb mp3 mem stick.
i wanted to have permissions set for all users on my system. i'm behind a NAT. i'm assuming there's little threat, so i didn't need to lock it down too much. here's what i did.
/etc/autofs/auto.master
Code: |
/mnt/network /etc/autofs/auto.network --timeout 60 --ghost
/mnt/removable /etc/autofs/auto.removable --timeout 2 --ghost
|
/etc/autofs/auto.network - wanted this to hold any mounts to things on the network. mounts that can have a longer timeout
guest stopped the password from being asked. man smbmount for all the options
Code: |
tib -fstype=smbfs,rw,fmask=770,dmask=770,gid=users,guest ://tib/public
|
/etc/autofs/auto.removable - removable stuff needs to get unmounted fast, so i can yank them out. but notice how the fmask and dmask is different for the network mount above and stick mount here.
Code: |
stick -fstype=auto,rw,fmask=007,dmask=007,gid=users,sync :/dev/sdb1
cdrom -fstype=iso9660,ro,sync,nodev,nosuid :/dev/cdrom
floppy -fstype=auto,sync,nodev,nosuid :/dev/fd0
|
then, i sym linked to the ghosted directories (i know you don't have too with v4.) so i can get in easy from the home dir.
cheers |
|
Back to top |
|
|
^Tomahawk^ n00b
Joined: 27 Aug 2003 Posts: 54
|
Posted: Thu Dec 15, 2005 8:37 pm Post subject: |
|
|
thanks a lot, works very well for me
2.6.14-gentoo-r2
autofs 4.1.3-r4
together with udev rules this really rocks _________________ on #gentoo, trying to find sense of life =) |
|
Back to top |
|
|
thoffmeyer Apprentice
Joined: 11 Apr 2004 Posts: 208 Location: GMT -5 Hours
|
Posted: Sun Dec 18, 2005 12:23 am Post subject: |
|
|
Great how-to! _________________ Conrad Guide, Current Maintainer
Join us on IRC
Server: irc.freenode.net
Channel: #conrad |
|
Back to top |
|
|
jsosic Guru
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Thu May 03, 2007 1:11 pm Post subject: |
|
|
^Tomahawk^ wrote: | together with udev rules this really rocks |
Do you think I should expand my how to with udev rules for devices? Cause I use autofs with udev too _________________ I avenge with darkness, the blood is the life
The Order of the Dragon, I feed on human life |
|
Back to top |
|
|
|
|
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 vote in polls in this forum
|
|