Find the answer to your Linux question:
Results 1 to 4 of 4
Nothing happens when ordinary users plug in a USB thumb drive or insert a CD into CDROM drive. Works fine for root. After root mounts the drives then all users ...
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Posts
    2

    Only root can automount CD drive and USB thumb drive

    Nothing happens when ordinary users plug in a USB thumb drive or insert a CD into CDROM drive. Works fine for root. After root mounts the drives then all users can use them. How can I enable mounting/unmounting by all users?

  2. #2
    Linux User Felarin's Avatar
    Join Date
    Mar 2007
    Location
    Brazil or Singapore
    Posts
    314
    What version of Linux are you using?
    "A graphical user interface is just a mask. What lies beneath is what matters."

  3. #3
    Just Joined!
    Join Date
    Dec 2004
    Posts
    2
    I'm using CentOS 5. A recent version. CD's made about 3 months ago. Now let me see, there must be some command to find the exact version. Hmmm.

  4. #4
    Just Joined!
    Join Date
    Apr 2009
    Posts
    1
    To find out the version try

    cat /etc/redhat-release
    CentOS release 5.2 (Final)



    Only root can automount CD drive and USB thumb drive
    Nothing happens when ordinary users plug in a USB thumb drive or insert a CD into CDROM drive. Works fine for root. After root mounts the drives then all users can use them. How can I enable mounting/unmounting by all users?

    you only get a popup notifying you of new media if you are logged in as root ?

    I've just tried this on my centos server and as a user I was getting an error mounting the drive, although there is a chance this is because I am logged on via remote desktop but I dont think so.

    Looking at /etc/fstab I couldnt see any entry for the cdrom drive, so I edited my /etc/fstab file to include the line

    /dev/hdb /media/cdrom udf,iso9660 user,noauto,exec,utf8 0 0

    you probably want to check that /media/cdrom exists and if it doesnt

    mkdir /media/cdrom


    if you dont know what device the cdrom drive is on you could try
    dmesg | grep CD

    which should return something like

    hdb: AOPEN COM5232/AAH, ATAPI CD/DVD-ROM drive
    hdb: ATAPI 52X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)

    which shows mine on hdb.

    Please be very very careful you dont change anything else in fstab or you may find your system will not boot, I dont know for sure that this is the suggested way to get the functionality you want under centos but it should work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...