Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
04-05-2006, 06:40 PM
|
#1
|
Senior Member
Registered: Sep 2004
Distribution: slackware
Posts: 4,754
|
Autofs Rocks.
You know what its like discovering something you've had for many years, but not known about?
Well, I've been using Slackware as my full time OS at home since 1998. Since then, I've toyed with many different tools & add-ons which are supposed to make mounting CDs and USB devices easier.
I ran supermount for about 6 months, but was never truly happy with it - you had to apply kernel patches, which sorta tainted my otherwise stock system. I spent about a day (about a year ago) trying to get DBUS & HAL working.
In the end, I just gave in. I added a few lines to my /etc/fstab file and continued using mount & umount to do things.
Fast forward to 3rd April 2006. I read something about this thing called "autofs" and how easy it was to configure in Slackware. All I had to do was download a file called "rc.autofs" and copy some files from /usr/doc/autofs-3.1.7/samples/auto.* to /etc and modify them to suit my needs. I also had to re-compile the kernel to include autofs support.
But it was worth it. One word: SLICK.
Now, CDs, DVDs, USB sticks & memory card readers auto mount when I change into their mount point directory. And un-mounting is as simple as "cd .."
I set up some simple symlinks to make it a bit easier for myself. And it works well with KDE too. I set up some "Links to URL" pointing to my symlinks. All I have to do is insert random media, and click its icon in KDE to mount it. Unmounting is as simple as closing the Konqueror window for that device. Press the button on the CD drive AND THE DISC COMES OUT!!
I love it. This should be the default behaviour on Slackware.
So simple, yet so elegant.
If you're still reading, sorry for the above babbling, but I just can't believe how I've overlooked this for so long.
Ciao,
|
|
|
04-05-2006, 07:38 PM
|
#2
|
Senior Member
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348
|
Quote:
You know what its like discovering something you've had for many years, but not known about?
|
I've often said that learning linux is like going on vacation someplace really cool, but not having a map or a guide or anything that tells you where to find all the "good" stuff.
More often than not you end up finding things by accident. Hiding in plain sight.
That's the main reason I read forums and newsgroups. Other peoples problems and solutions teach me as much about linux as anything.
I agree tho - none of the mount solutions out there have really thrilled me either. I haven't explored this one yet. I do need to build a new kernel so perhaps I'll play.
|
|
|
04-06-2006, 01:37 AM
|
#3
|
Member
Registered: Mar 2006
Distribution: Slackware
Posts: 63
Rep:
|
Quote:
Originally Posted by rkelsen
So simple, yet so elegant.
|
Personally I do everything manually. Only when it gets boring I automate things. This way I know what I have to do when an automated thing doesn't work for some reason. This is why I'm using Slackware and not some other "user-friendly" *cough* distro.
|
|
|
04-06-2006, 02:53 AM
|
#4
|
Senior Member
Registered: Sep 2004
Distribution: slackware
Posts: 4,754
Original Poster
|
Quote:
Originally Posted by wchild
Personally I do everything manually. Only when it gets boring I automate things. This way I know what I have to do when an automated thing doesn't work for some reason. This is why I'm using Slackware and not some other "user-friendly" *cough* distro.
|
Oh, I know what to do alright. Been mounting & unmounting CDs, DVDs, USB sticks, etc manually for 8 years now. It is very nice to be able to automate the procedure in a manner that suits me.
The things I like about autofs:
1. It only requires 3 text files under /etc to work. The rest of it is installed as a part of standard Slackware. The package name is autofs-3.1.7.
2. I don't have to use it. I can still mount things the old way if I choose.
3. It auto unmounts CDs & DVDs. So, when you press the eject button, the tray opens. Full stop.
4. It doesn't automatically pop things up on my desktop. Things happen when I say they can.
5. It integrates so nicely with the Slackware philosophy.
Even if you like mounting/unmounting removable media by hand, give it a shot. I guarantee you'll be impressed.
|
|
|
04-06-2006, 03:45 AM
|
#5
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep: 
|
I know and use autofs features for years but only on desktop. I would never automount a device on a server.
|
|
|
04-06-2006, 07:50 AM
|
#6
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
One of the biggest problems with automounting is that this often interferes when a program needs to install. Say UT2004 with multiple CDs.
Automounting in SUSE kept interfering like hell and I couldn't mount and unmount properly in the end. I gave up installing UT 2004 on SUSE, but in Debian, with the manual mount and unmount, it worked smoothly. Also sometimes it's necessary to have a device or a drive unmounted while performing certain operations for security.
Autofs may be a boon to some people, but not to everybody in all situations.
Hope I haven't dampened your enthusiasm. Linux is not designed to work like windows and personally it makes a lot of sense to manually mount and unmount media after years of irritation with that stupid Windows "autorun" popups.
Last edited by vharishankar; 04-06-2006 at 07:52 AM.
|
|
|
04-06-2006, 08:34 AM
|
#7
|
Member
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345
Rep:
|
Quote:
Linux is not designed to work like windows and personally it makes a lot of sense to manually mount and unmount media after years of irritation with that stupid Windows "autorun" popups.
|
Automounting != Autorunning.
Autorunning is one of the worst ideas ever and is a huge security risk (as Sony recently demonstrated so perfectly with their invasive root-kits).
Quote:
It auto unmounts CDs & DVDs. So, when you press the eject button, the tray opens. Full stop.
|
Does this still work if you have a terminal open who's current directory is on the CD's mount point?
One of my biggest pet peeves is when you have to hunt through a dozen terminals scattered across four work spaces to find which one is still "using" the device when all I want to do is quickly eject my CD.
|
|
|
04-06-2006, 08:44 AM
|
#8
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
geeman, I have to disagree. Automounting is very similar to autorunning and its annoyances far outweight any minor convenience of automounting. Manual mount is 100 times better...
In many cases, mounting is just as simple as a single right-click to mount (from a desktop environment say) and so it's not even that big a problem to mount and unmount if you're a gui user.
Why distros want to implement auto-detecting and mounting (like SUSE does) is beyond me. Unless it wants to imitate Windows which is a very bad idea.
|
|
|
04-06-2006, 08:54 AM
|
#9
|
Member
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345
Rep:
|
Quote:
In many cases, mounting is just as simple as a single right-click to mount (from a desktop environment say)
|
What about us fluxbox users who don't believe in desktops?
Quote:
Automounting is very similar to autorunning and its annoyances far outweight any minor convenience of automounting
|
But automounting doesn't actually execute anything off of the mounted volume unless you tell it to. It just prepares the volume in case you'd later want to access it (which 99% of the time is what you want to do after inserting a non-blank CD/DVD)
I'm just curious what you think the annoyances of automounting are?
I'm not saying there aren't any, but I can't think of any and would be interested to hear what they might be.
|
|
|
04-06-2006, 09:06 AM
|
#10
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
Quote:
What about us fluxbox users who don't believe in desktops?
|
Use gkrellm and set it up to show mount points.
|
|
|
04-06-2006, 09:10 AM
|
#11
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
Quote:
I'm just curious what you think the annoyances of automounting are?
|
Like I mentioned before, 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. This conflict resulted in the problem of not being able to install it at all even when it was mounted because the automounter in SUSE messed up user permissions while mounting.
There are other potential problems of having automount. Like this might interfere with the CD burning or DVD burning process (I'm just assuming since many distros warn against mounting a drive when CD writing is in progress).
Last edited by vharishankar; 04-06-2006 at 09:11 AM.
|
|
|
04-06-2006, 09:13 AM
|
#12
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Quote:
Originally Posted by Harishankar
There are other potential problems of having automount. Like this might interfere with the CD burning or DVD burning process (I'm just assuming since many distros warn against mounting a drive when CD writing is in progress).
|
It would be only your fault if you would try to eject a cd while it is being written and it would get corrupted.
|
|
|
04-06-2006, 09:25 AM
|
#13
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
Alien_Hominid, it would not be my fault when a computer program decides when to mount or umount or eject a drive...
The point is, I would prefer to be 100% in control, not depend on the "AI" of a computer script to decide what's good for me.
Last edited by vharishankar; 04-06-2006 at 09:26 AM.
|
|
|
04-06-2006, 09:41 AM
|
#14
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Automounting is not random mounting or unmounting. It only takes action when command is passed from user sphere or low-level interface (like cdrom button). And I really believe that it's not possible for automount to unmount a drive which is being written into. However, not tried and of course can be wrong. If automount has some bugs, it is not the bad conception (like automount is bad, don't use automount) but a bug in the program which could be fixed. It's the same as udev in Slackware, which also has some drawbacks but we all try to get it working despite of some constant problems. Issue with ut2004 installation could be fixed and there would be one cons less.
|
|
|
04-06-2006, 09:47 AM
|
#15
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
Is manual mounting so difficult that you need a program to do it every time? Look at the relatively small advantages of automounting... and compare it with potential issues that might arise out of it.
Linux developers weren't so stupid. They have a reason why users should mount and unmount devices manually. Some things are designed to work in that situation. Just because automounting might work well for some users, doesn't make it a good feature.
I am not very experienced, but I can still see problems in this area if a system bypasses certain design constraints just to make it more "user-friendly".
|
|
|
All times are GMT -5. The time now is 05:28 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|