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.
First, I understand the security reasons for mounting and umounting on a multiuser system, BUT on a standalone, single user system is there anyway to not have to mount and umount each and every time you want to use a cd/dvd drive or a plug-in USB memory card reader, camera, etc., etc., etc.
Thanks.
Last edited by cwizardone; 03-20-2007 at 03:33 PM.
other distributions use hal,dbus,udev for this. udev and dbus are already in current(i don't know, if there are plans to include hal). i don't think just adding hal would help, as afaik kde would have to be recompiled to let it work.
adding the users or group option to the fstab entry could help. don't forget to add yourself to the relevant groups.
First, in /etc/fstab, add the user option to the devices you want to mount as a user.
Code:
#Example
/dev/cdrom /mnt/cdrom auto noauto,ro,user 0 0
Then create a file called cdrom (or whatever you want to call it) on your desktop containing this:
Code:
#!/bin/bash
# This script mounts the device then automatically unmounts it when konqueror closes.
#replace /mnt/cdrom with the mount point for your cd
mount /mnt/cdrom
#replace konqueror with your favorite file manager
konqueror /mnt/cdrom
umount /mnt/cdrom
Then make it executable.
Code:
$ chmod +x /home/${USER}/Desktop/cdrom
Now you'll just need to click on the file to access the cdrom.
You don't even have to go through that much to accomplish it. You can just make a shortcut to a cdrom or whatever device on your desktop. You will have to still edit the fstab and add the user option.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,152
Original Poster
Rep:
I could live with mount and umount on a limited basis, but, as now, I can't figure out how to mount USB devices.
I've read through many of the questions on it and ran "lsusb" and "dmesg | tail" and it hasn't been much help.
I'm running kernal 2.6.18 and using a SATA hard drive which occupies the sda configuration instead of hda, etc.
Every time I plug in the same USB device to the same USB port and run "lsusb" I get a different address, but in a format that is not helpful to me.
Running "dmesg | tail" tells me one of the two ports I've tried and sd 5 and the other sd 6 and that corresponds to their positions on the motherboard. Note "dmesg | tail" reports a black space between sd and the number of the USB port.
How can I get these ports mounted so I can use any USB device I might plug into them?
Thank you very much.
Last edited by cwizardone; 03-21-2007 at 10:12 PM.
First, I understand the security reasons for mounting and umounting on a multiuser system, BUT on a standalone, single user system is there anyway to not have to mount and umount each and every time you want to use a cd/dvd drive or a plug-in USB memory card reader, camera, etc., etc., etc.
Thanks.
What distribution are you using. Both Suse and Mandriva ask to open CDs and they can be ejected when all access to them is closed. Powering up my connected digital camera also brings up a dialog box.
I could live with mount and umount on a limited basis, but, as now, I can't figure out how to mount USB devices.
I've read through many of the questions on it and ran "lsusb" and "dmesg | tail" and it hasn't been much help.
I'm running kernal 2.6.18 and using a SATA hard drive which occupies the sda configuration instead of hda, etc.
Every time I plug in the same USB device to the same USB port and run "lsusb" I get a different address, but in a format that is not helpful to me.
Running "dmesg | tail" tells me one of the two ports I've tried and sd 5 and the other sd 6 and that corresponds to their positions on the motherboard. Note "dmesg | tail" reports a black space between sd and the number of the USB port.
How can I get these ports mounted so I can use any USB device I might plug into them?
Thank you very much.
I assume you are trying to mount a usb flash drive.
First you can check the flash drives partition number which is assigned by the system. You can do this by
$cat /proc/partitions , it gives something like this
major minor #blocks name
when you plugged your usb device it'll get something like this "sdb1" in another added line.
After that use this command to mount you device.
#mount /dev/sdb1 /mnt/flash
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,152
Original Poster
Rep:
Thank you, hasitha9!
"cat/proc/partitons" told me what I needed to know.
Actually I was mounting a camera and a memory card reader.
Two of the many USB ports in my computer are on the front of the case. I plugged in one device, entered "cat/proc/partitons" and it told me there was a sdb and sdb1. I tried mounting sdb1 and it work. Just for chuckles I plugged another device into the other available port and it was reported as, sdf and sdf1. I removed them both and plugged the one reported to be sdf1 back in and ran "cat/proc/partitons" again. This time it was reported as, sdb1.
I guess this means each and everytime I want to use a USB device I have to run "cat/proc/partitons" to find it's ID and then mount it..
Would this be correct?
Thanks, again, for your help.
Last edited by cwizardone; 03-22-2007 at 12:42 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.