LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-06-2006, 09:55 AM   #16
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53

You may be right, but I believe that Linux is not Windows and everything can be solved here making system not only secure and stable but also user-friendly too. That's why I have chosen Slackware - to configure (somebody can say tweak) it to work how I want without losing stability.

BTW, each person has a right to his own opinion and that's very good. It makes difference in this world.I respect you for having it.

Last edited by Alien_Hominid; 04-06-2006 at 09:57 AM.
 
Old 04-06-2006, 09:58 AM   #17
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 139Reputation: 139
That's why so many distros, with so many different levels of configurability, configured differently for different kinds of users.

Agreed on that.
 
Old 04-06-2006, 10:04 AM   #18
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
P.S. One point why I like automounting. I constantly use my camera, so it's quite boring for me each time I connect it run mount blah blah. Especially, when it is being disconnected (unknown reason for me) after 15 minutes of idleness.
 
Old 04-06-2006, 07:00 PM   #19
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,837

Original Poster
Blog Entries: 7

Rep: Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908
Quote:
Originally Posted by Harishankar
when I was installing ut2004 from a CD, this annoyed me so much because the CD kept automounting while the installer wanted to do it manually and then when it was asking for the next CD, I couldn't unmount the damn thing or eject it.
YUCK. Autofs DOES NOT work this way at all.

It doesn't mount anything until you want it to. Here's an example:

1. Insert CD
2. $ cd /mnt/auto/cdrom
3. CD automounts & you can do whatever you have to
4. $ cd ~
5. CD auto unmounts. You can eject it now, or leave it in the drive until you want/need to access it next.

With Autofs, you can still leave your old mountpoints alone and mount your media manually if you wish. It doesn't get in the way at all, as long as you make a new mountpoint for the automounter. In my case, I made it /mnt/auto.

And Geeman is right. Automounting & autorunning are two very different animals. Autorunning is the work of the devil. AFAIK, Autofs doesn't support autorunning out of the box. Autorunning turned me away from DBUS & HAL. Autofs is great.

Quote:
Originally Posted by geeman2.0
Does this still work if you have a terminal open who's current directory is on the CD's mount point?
No, it won't allow you to eject if something is still using the device. But in this situation, "umount" won't work either, so this is a moot point. You can still use the "fuser" command to work out which process is using the device.

Last edited by rkelsen; 04-06-2006 at 07:07 PM.
 
Old 04-06-2006, 07:35 PM   #20
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Has anyone tried autofs 4.2?

Peace...
 
Old 04-06-2006, 07:41 PM   #21
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,837

Original Poster
Blog Entries: 7

Rep: Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908
Quote:
Originally Posted by tomdkat
Has anyone tried autofs 4.2?
Sorry, I should point out that all the above is in reference to the version of autofs which ships with Slackware (autofs-3.1.7 IIRC) and the autofs kernel module (not the autofs4 version).

I haven't tried the later version because I only really wanted to use it for removable media. By my understanding, the features added in version 4 are better suited to people using Autofs in distributed networks. But I'm probably wrong.
 
Old 04-06-2006, 09:28 PM   #22
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Quote:
Originally Posted by rkelsen
Sorry, I should point out that all the above is in reference to the version of autofs which ships with Slackware (autofs-3.1.7 IIRC) and the autofs kernel module (not the autofs4 version).

I haven't tried the later version because I only really wanted to use it for removable media. By my understanding, the features added in version 4 are better suited to people using Autofs in distributed networks. But I'm probably wrong.
That's cool. I haven't used autofs and noticed 4.2 is newer (by 4-5 years) and wanted to know if anyone here had used it.

Peace...
 
Old 04-07-2006, 04:07 AM   #23
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Has anyone here tried running automounting together with LDAP (under the NIS schema) to automatically mount users home-directories when they log in? This is _very_ useful for laptop users who want to bring their data with them locally, but still have their data available when working on a server or desktop in the same network..

Anyone?

-Y1
 
Old 04-07-2006, 11:20 AM   #24
b3rx
Member
 
Registered: Mar 2006
Distribution: Slackware 13.0
Posts: 75

Rep: Reputation: 15
how you you guys do the autounmounting.. mine only works for mounting but when i type cd .. it wont auto unmount. please help.
 
Old 04-08-2006, 02:06 AM   #25
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,837

Original Poster
Blog Entries: 7

Rep: Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908Reputation: 2908
Quote:
Originally Posted by b3rx
how you you guys do the autounmounting.. mine only works for mounting but when i type cd .. it wont auto unmount. please help.
It should. You must make sure that there is nothing accessing to the device's mount point.

Use the "fuser" command to see which process is accessing the device:

$ fuser /dev/hdd
 
Old 04-08-2006, 09:35 AM   #26
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 68
I can see the potential uses, and pifalls, of autofs. While, for me, it may come in handy for my usb media, I won't even THINK of using it for automounting remote media. Security.....
 
Old 04-08-2006, 10:35 AM   #27
b3rx
Member
 
Registered: Mar 2006
Distribution: Slackware 13.0
Posts: 75

Rep: Reputation: 15
Quote:
Originally Posted by rkelsen
It should. You must make sure that there is nothing accessing to the device's mount point.

Use the "fuser" command to see which process is accessing the device:

$ fuser /dev/hdd
thanks... that fixed things out.
 
Old 04-08-2006, 04:41 PM   #28
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Rep: Reputation: 242Reputation: 242Reputation: 242
My 2 Cents: I think you all are right.

dunric: I guess you say it all. Unix/Linux have a strong history as server systems, where you definately don't want something like autofs, except for some very special, non-standard purposes (thinking of a CD copy cluster and things like that). On desktop systems, however, the opposite is true, and some more comfort is quite welcome.

Harishankar: Linux developers' reason to think users should mount and unmount devices manually is obviously that they wanted (and still want) to build a valid free Unix clone. BSD on the other hand *is* Unix, and the Automounter was invented there.
I think the philosophy here is not to have every user do everything manually, but to provide options for choice. You want to (un)mount by hand? Well, that's fine. You like the comfort of autofs? Then just use it.
Let me add a note about SuSE: It's my other favourite distribution, and I have been using it much longer than Slackware, and am still using it on some machines. But exactly the Automount/Autoplay things are points of constant criticism in recent SuSE versions, just like the USB device management. I *love* SuSE, but I'd not be surprised if your problems were distribution specific, in parts.

Geeman2.0: When you have dozens of terminal open with PWDs on media that you would like to unmount the system will prevent you from doing so, no matter if you mounted the media manually or with the aid of autofs. The result is that the device is mounted, and as long as some applications are using it, it cannot simply be unmounted. Which is correct, and just fine. Any system that behaves differently is Microsoft Windows... Or did I get you wrong?

gargamel
 
Old 04-17-2006, 03:04 PM   #29
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
[EDIT: SOLVED! - turns out I had a permission mismatch. With the rc.autofs pointed out in the initial post it works perfectly with the file entries as pointed out below /EDIT]

Hi all,

I am trying to get autofs to work for my home directory and created an auto.master and auto.home map which contains the following:
PHP 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(8).
/home   /etc/auto.home 
and auto.home :

PHP Code:
# $Id: auto.misc,v 1.2 1997/10/06 21:52:04 hpa Exp $
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
yalla   -rw,intr        asterix:/home/yalla
user1   
-rw,intr        majestix:/home/user1 
asterix is my laptop where I keep my own home directory, and majestix is the server where the rest of the family has their home directories..

Then I loaded the module successfully
PHP Code:
modprobe autofs 
(and verified with lsmod)

My question is - how do I get this to mount the directories properly? Having read a bit too many contradictary howto's I'm a bit confused at the moment, so any pointers will be greatly appreciated..
Do I need to add anything in /etc/fstab or not? I've seen various references to vfstab, but that's probably SVR4 and not Linux...

Thanks much!

-Y1

Last edited by Yalla-One; 04-17-2006 at 03:18 PM.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE 3.4 rocks all Thoreau SUSE / openSUSE 23 05-28-2005 09:58 PM
Ms Rocks!! Hexadecimal Linux - Networking 7 01-19-2005 04:49 PM
My kitchen rocks acid_kewpie General 31 08-29-2004 12:23 PM
9.2 rocks but... hulkt Mandriva 5 10-30-2003 12:20 AM
Dropline Rocks!!! rdanda Slackware 15 04-17-2003 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:58 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