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.
OK I'm a bit lost on this one. I made sure that I'm in the standard groups (including 'plugdev') and that the newly plugged in device is owned by the group plugdev but simply typing "mount /dev/sda1 /media/flash0" does not work (even tried group owning /media/flash0 to plugdev)
so do I really need to install a package or make udev rules/scripts to add lines to /etc/fstab in order to mount the device as a regular user?
I didn't try with KDE tools (I use blackbox and xterm)
If I didn't own an iPod I probably would add a ton of lines in fstab all dealing with /dev/sd?? derivatives... but that would be messy. BUT I like what I did with my ipod by having udev rules to sym link /dev/ipod to /dev/sd?2 (whatever it happens to be) then fstab contains a line in it for /dev/ipod to /media/ipod
I was playing with writing a script already to automatically create sym links in /dev named after the partition labels and then creating directories in /media and mounting it (didn't finish yet)
I guess in addition to that script (run by udev when the device is plugged in/ejected) I will have to make it add lines into the fstab??
That just seems messy. It doesn't seem like I should have to add lines in the fstab (regardless of custom names... I realize for custom names I would probably have to do it.)
###
So Is this right or is there an easier way that slackware already supports?
I plan on creating a script flashhandler.sh
###
plug in device
udev handels some stuff
udev rules run /lib/udev/flashhandler.sh $device start
flashhandler does some safty checks, creates sym links, (adds fstab lines???), mounts the drive
user 'ejects' the device
udev rules run /lib/udev/flashhandler.sh $device stop
flashhandler cleans everything up
With the stock Slackware 12.1 the USB drive should be recognized automatically. Before you manually mount:
Are rc.hald, rc.udev, and rc.messagebus all executable?
From the command line, before and after you insert a USB drive, as root run the lsusb and lsscsi commands. If the three mentioned services are running, you should see the drive added.
If the problem you are experiencing is KDE only, then in the Control Center, in KDE Components, Service Manager, ensure both KDED Media Manager and Media Notifier Daemon are enabled.
If you want to mount devices as a regular user, aside from using sudo, you can install pmount, which should do the trick (I've also heard of ivman, which does more automated stuff I think). I am pretty sure that blackbox doesn't have automounting tools that utilize HAL, so you will definitely have to install pmount if you want to use HAL to mount devices as a regular user.
Of course, sudo is an option if you just need access to the `mount` command.
Thought so.... I did see reference to pmount somewhere on my searches but I was looking for a non install option... I especially don't want to use pmount if it is 'set uid' to root.
I'll probably finish up my script to see how well it works I think the only problem I'll have is inserting lines into and deleting lines from /etc/fstab
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.