SlackwareThis 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.
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.
Hi, I have been looking for awhile a better way to mount my removable media (cd's, usb sticks). The bad part about USB jump drives is that I can't really put it in fstab, it is not always the /dev/sd* I say it is.
I have not had any luck finding any programs to take care of this. Does anybody know of any thing that sounds like what I'm looking for? I'd prefer it to be GUI, and the program able to take care of itself without me telling it to manually mount it every time.
Hi ive heard about a program called automount but ive never used it.
I think slack 12 will do a much better job at this so im just waiting paitiently ;-)
The problem lies in something called hal (I think) wich isnt compiled into kde on slac but im not 100% certain of this.
HAL is hardware abstraction layer. It is used for automounting. It is included both in Gnome and Kde. You need 2.6 kernel for that. Check this link: http://wiki.kde.org/tiki-index.php?page=DBUS for KDE.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644
Rep:
Quote:
Originally Posted by davidguygc
Hi, I have been looking for awhile a better way to mount my removable media (cd's, usb sticks). The bad part about USB jump drives is that I can't really put it in fstab, it is not always the /dev/sd* I say it is.
Hi David,
if you are using a 2.6 kernel then it's possible to change the udev rules so that the same device will get a constant symlink (I have for example a symlink /dev/usbhd-trekstor, it doesn't matter if my device is connected as sda or sdb or sdc ...). http://reactivated.net/writing_udev_rules.html is the point where you should look if you're interested in this solution.
I forgot to say that if you use KDE automounting, your devices will show in media://. Don't use this link to play films with kplayer (no rewind, forward in my KDE version, maybe it was fixed), test java applets. Go directly to /mnt/hda and watch/start them there.
Just plug in your usb stick run dmesg and
find what your stick is called.It should be called
/dev/sda1.Then just add the line to fstab.
If you don't want to use cmd line to mount your
usb sticks, you can also use kdiskfree in KDE
if you want to. I don't really know about automount
but I have used it in vector linux before and it worked fine.
Creating udev rules is the nicest way to go for that. I had the same feelings recently so I took the time to add rules for all of my removable devices - mp3 player, cameras, SD cards, external hard drives, etc.
Now when I plug in, that device is automatically assigned to the /dev item I specified in my rule. Then my entry in fstab works.
But I agree, the default scheme is really annoying!
Just plug in your usb stick run dmesg and
find what your stick is called.It should be called
/dev/sda1.Then just add the line to fstab.
The problem with that is, as mentioned, each device won't necessarily be the same /dev/sd* each time you plug it in. As a matter of fact, it _definitely_ won't always get assigned the same /dev.
OK, I had heard about udev taking over hotplug, but I never really heard anybody talk about how they use it. I gotta say, I'm really suprised there aren't a lot of GUI programs out there to set it up, I know a few people one of the main reasons they don't use Linux is because it is such a pain for someone to access media if they are new to Linux.
Thanks for all the input, really appreciate it. BTW, any word on the ETA of Slack 12? Exciting stuff lol.
It is approaching; how fast is anybody's guess. :-)
The only answer that anyone can honestly give is "When It's Ready"
Great news, rworkman:-) I'm looking forward to Slack 12!
I'm enjoying using your site, rworkman:-) You have a great collection of build scripts. I compiled sylpheed 2.3.0 yesterday.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.