From: John Bowling on
My system does not auto-mount optical drives or usb drives, so I created a
script to do it:

---------------
#!/bin/bash
# Fix for a flunking system auto-mount!!!
# When it won't auto-mount CD/DVD/USB

echo "Fix for a flunking system auto-mount!!!"

if [[ $UID -ne 0 ]]; then
echo "$0 Must be run as root"
exit 1
fi

echo ""
echo "Current mounts under /media :"
ls /media

echo ""
echo "Current mountable devices :"
ls /dev/cd*
ls /dev/sd*

echo ""
echo "Which device to manually mount?"
echo "O - Optical - CD or DVD"
echo "b - /dev/sdb1"
echo "c - /dev/sdc1"
echo "d - /dev/sdd1"

read mDev
case $mDev in
"O")
echo "Mounting the CD or DVD"
mkdir /media/cd/ 2> /dev/null
mount -t auto /dev/cdrom1 /media/cd/ 2> /dev/null
ls /media/cd/
;;
"b")
echo "Mounting the usb device /dev/sdb1/ on /media/usb1"
mkdir /media/usb1/ 2> /dev/null
mount -t auto /dev/sdb1 /media/usb1/ 2> /dev/null
ls /media/usb1/
;;
"c")
echo "Mounting the usb device /dev/sdc1/ on /media/usb2"
mkdir /media/usb2/ 2> /dev/null
mount -t auto /dev/sdb1 /media/usb2/ 2> /dev/null
ls /media/usb2/
;;
"d")
echo "Mounting the usb device /dev/sdd1/ on /media/usb3"
mkdir /media/usb3/ 2> /dev/null
mount -t auto /dev/sdd1 /media/usb3/ 2> /dev/null
ls /media/usb3/
;;
esac
-----------------
It may not be optimal or pretty, but it works!

John
From: J G Miller on
On Wed, 12 May 2010 14:13:50 -0700, John Bowling wrote:

> My system does not auto-mount optical drives or usb drives

Have you installed autofs?
From: John Bowling on
J G Miller wrote:

> On Wed, 12 May 2010 14:13:50 -0700, John Bowling wrote:
>
>> My system does not auto-mount optical drives or usb drives
>
> Have you installed autofs?

autofs has been installed since the 11.2 installation, and it worked for a
while.

Now cfn autofs does not find it anywhere, and ls /bin or /sbin or /usr/bin
does not show it.

Yast lists it under software management as installed. I uninstalled it and
then reinstalled it, and then even rebooted, and none of that makes it work.

From: graham on
On Fri, 14 May 2010 22:28:27 -0700, John Bowling wrote:

> J G Miller wrote:
>
>> On Wed, 12 May 2010 14:13:50 -0700, John Bowling wrote:
>>

>
> Now cfn autofs does not find it anywhere, and ls /bin or /sbin or
> /usr/bin does not show it.
>

rpm -qf autofs will give you the list of files provided.
The binary are:
/usr/sbin/automount
/usr/sbin/rcautofs
From: John Bowling on
graham wrote:

> On Fri, 14 May 2010 22:28:27 -0700, John Bowling wrote:
>
>> J G Miller wrote:
>>
>>> On Wed, 12 May 2010 14:13:50 -0700, John Bowling wrote:
>>>
>
>>
>> Now cfn autofs does not find it anywhere, and ls /bin or /sbin or
>> /usr/bin does not show it.
>>
>
> rpm -qf autofs will give you the list of files provided.
> The binary are:
> /usr/sbin/automount
> /usr/sbin/rcautofs

rpm -qf autofs
returns: "No such file or directory"

The files you list are present in /usr/sbin
/usr/sbin/rcautofs start
will return 'done'.

Still no mount for either dvd or usb dongle.
var/log/messages has [sdc] Attached SCSI removable disk
Nothing new in /media/

rpm -qf automount
returns: "autofs-5.0.4-6.2.1.i586"