LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux PlugnPlay in MP3 player? (https://www.linuxquestions.org/questions/linux-newbie-8/linux-plugnplay-in-mp3-player-431932/)

zener 04-05-2006 06:31 AM

Linux PlugnPlay in MP3 player?
 
Is there a way to auto-mount removable device such as mp3 players, USB flash drives or digital cameras?

What I mean is instead of, after plugging it in, typing:


#fdisk -l
#mount /dev/sde /home/billy/flash

(something else: how can I set a specific user to do this without needing root access?)

what changes must I apply to the system (from console) in order just to plug the device in and then being able to access it with rwx priviledges from KDE?

I saw this in a PC using Gentoo with GNOME

gloomy 04-05-2006 07:04 AM

In KDE you generally require hal and dbus deamons to run in your preferred runlevel. You may check this, e.g., by running

Code:

ps -e | grep hal
ps -el | grep dbus

You also require some application for the automatic mounting (Ivman is one) but if you're using Mandrake, I might assume that all of these are included in the default install. For mp3 players the new Amarok (1.4 beta) could be useful as it can handle mounting of these devices.

Something else: edit your /etc/fstab file and add the device with appropriate options. Thus, your fstab might look like this for an instance:

Code:

/dev/sda1  /mnt/usb  vfat  noauto,user  0 0
"Man mount" says that the option 'user' allows an ordinary user to mount the file system (it implies also the options noexec, nosuid, and nodev).


All times are GMT -5. The time now is 12:18 AM.